Richard Jankowski | d074dc7 | 2017-12-21 11:00:35 -0500 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
2 | kind: Deployment | ||||
3 | metadata: | ||||
4 | name: etcd-operator | ||||
5 | spec: | ||||
6 | replicas: 1 | ||||
7 | template: | ||||
8 | metadata: | ||||
9 | labels: | ||||
10 | name: etcd-operator | ||||
11 | spec: | ||||
12 | containers: | ||||
13 | - name: etcd-operator | ||||
14 | image: quay.io/coreos/etcd-operator:v0.7.2 | ||||
15 | command: | ||||
16 | - etcd-operator | ||||
17 | env: | ||||
18 | - name: MY_POD_NAMESPACE | ||||
19 | valueFrom: | ||||
20 | fieldRef: | ||||
21 | fieldPath: metadata.namespace | ||||
22 | - name: MY_POD_NAME | ||||
23 | valueFrom: | ||||
24 | fieldRef: | ||||
25 | fieldPath: metadata.name | ||||
26 |