aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/readiness/dep-health-init.yaml
blob: 34bfbafdea3f992f9fa150a2a6a04d56541d90a3 (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.1.0
        imagePullPolicy: Always
        name: healthy
        env:
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace