summaryrefslogtreecommitdiffstats
path: root/kubernetes/readiness/dep-health-init.yaml
blob: d77127b2012ea73dfd382cca1ea95c67cb5a500c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    app: healthy
    version: 1.0.0
  name: healthy
spec:
  selector:
    matchLabels:
      app: healthy
      version: 1.0.0
  template:
    metadata:
      labels:
        app: healthy
        version: 1.0.0
      name: healthy
    spec:
      containers:
      - args:
        - --container-name
        - hbase
        command:
        - /root/ready.py
        image: oomk8s/readiness-check:1.0.0
        imagePullPolicy: Always
        name: healthy
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace