blob: 7df622a6b697b234dcbcde8c7df32e62b64a416b [file] [log] [blame]
Zack Williams41513bf2018-07-07 20:08:35 -07001# 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 Jankowskid074dc72017-12-21 11:00:35 -050014apiVersion: extensions/v1beta1
15kind: Deployment
16metadata:
17 name: etcd-operator
Richard Jankowskid4454382018-02-08 16:21:43 -050018 namespace: voltha
Richard Jankowskid074dc72017-12-21 11:00:35 -050019spec:
20 replicas: 1
21 template:
22 metadata:
23 labels:
24 name: etcd-operator
Richard Jankowskifefff3f2019-01-22 13:36:33 -050025 annotations:
26 cni: "calico"
Richard Jankowskid074dc72017-12-21 11:00:35 -050027 spec:
28 containers:
29 - name: etcd-operator
Richard Jankowskifefff3f2019-01-22 13:36:33 -050030 image: quay.io/coreos/etcd-operator:v0.9.2
Richard Jankowskid074dc72017-12-21 11:00:35 -050031 command:
32 - etcd-operator
33 env:
34 - name: MY_POD_NAMESPACE
35 valueFrom:
36 fieldRef:
37 fieldPath: metadata.namespace
38 - name: MY_POD_NAME
39 valueFrom:
40 fieldRef:
41 fieldPath: metadata.name
42