Zack Williams | 41513bf | 2018-07-07 20:08:35 -0700 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Richard Jankowski | d074dc7 | 2017-12-21 11:00:35 -0500 | [diff] [blame] | 14 | apiVersion: extensions/v1beta1 |
| 15 | kind: Deployment |
| 16 | metadata: |
| 17 | name: etcd-operator |
Richard Jankowski | d445438 | 2018-02-08 16:21:43 -0500 | [diff] [blame] | 18 | namespace: voltha |
Richard Jankowski | d074dc7 | 2017-12-21 11:00:35 -0500 | [diff] [blame] | 19 | spec: |
| 20 | replicas: 1 |
| 21 | template: |
| 22 | metadata: |
| 23 | labels: |
| 24 | name: etcd-operator |
| 25 | spec: |
| 26 | containers: |
| 27 | - name: etcd-operator |
| 28 | image: quay.io/coreos/etcd-operator:v0.7.2 |
| 29 | command: |
| 30 | - etcd-operator |
| 31 | env: |
| 32 | - name: MY_POD_NAMESPACE |
| 33 | valueFrom: |
| 34 | fieldRef: |
| 35 | fieldPath: metadata.namespace |
| 36 | - name: MY_POD_NAME |
| 37 | valueFrom: |
| 38 | fieldRef: |
| 39 | fieldPath: metadata.name |
| 40 | |