aboutsummaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/etcd-cluster/etcd-basic.yaml
diff options
context:
space:
mode:
authorRajamohan Raj <rajamohan.raj@intel.com>2020-08-04 00:18:16 +0000
committerRitu Sood <Ritu.Sood@intel.com>2020-08-21 00:12:44 +0000
commite3e6c103f6e1cd1431ddacd23d500f39fbd1bcee (patch)
tree25ab66ea5bca905d3251f830a8b7183b1ae8ba1e /kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/etcd-cluster/etcd-basic.yaml
parent38ed3fbf85636ad5f73538c2de07cce72499f5bf (diff)
Updating m3db & m3db operator charts
In this patch, updated all the charts related to m3db. Developed scripts for deployment m3db stack through orchestrator. Issue-ID: MULTICLOUD-1112 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I42677809709fc4d12f16a156e563d6618a8f8437
Diffstat (limited to 'kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/etcd-cluster/etcd-basic.yaml')
-rw-r--r--kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/etcd-cluster/etcd-basic.yaml86
1 files changed, 86 insertions, 0 deletions
diff --git a/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/etcd-cluster/etcd-basic.yaml b/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/etcd-cluster/etcd-basic.yaml
new file mode 100644
index 00000000..485dd1db
--- /dev/null
+++ b/kud/tests/vnfs/comp-app/collection/operators-latest/helm/operator/templates/etcd-cluster/etcd-basic.yaml
@@ -0,0 +1,86 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: etcd
+ labels:
+ app: etcd
+spec:
+ ports:
+ - port: 2379
+ name: client
+ - port: 2380
+ name: peer
+ clusterIP: None
+ selector:
+ app: etcd
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: etcd-cluster
+ labels:
+ app: etcd
+spec:
+ selector:
+ app: etcd
+ ports:
+ - port: 2379
+ protocol: TCP
+ type: ClusterIP
+---
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: etcd
+ labels:
+ app: etcd
+spec:
+ serviceName: "etcd"
+ replicas: 3
+ selector:
+ matchLabels:
+ app: etcd
+ template:
+ metadata:
+ labels:
+ app: etcd
+ spec:
+ containers:
+ - name: etcd
+ image: quay.io/coreos/etcd:v3.3.10
+ command:
+ - "etcd"
+ - "--name"
+ - "$(MY_POD_NAME)"
+ - "--listen-peer-urls"
+ - "http://$(MY_IP):2380"
+ - "--listen-client-urls"
+ - "http://$(MY_IP):2379,http://127.0.0.1:2379"
+ - "--advertise-client-urls"
+ - "http://$(MY_POD_NAME).etcd:2379"
+ - "--initial-cluster-token"
+ - "etcd-cluster-1"
+ - "--initial-advertise-peer-urls"
+ - "http://$(MY_POD_NAME).etcd:2380"
+ - "--initial-cluster"
+ - "etcd-0=http://etcd-0.etcd:2380,etcd-1=http://etcd-1.etcd:2380,etcd-2=http://etcd-2.etcd:2380"
+ - "--initial-cluster-state"
+ - "new"
+ - "--data-dir"
+ - "/var/lib/etcd"
+ ports:
+ - containerPort: 2379
+ name: client
+ - containerPort: 2380
+ name: peer
+ env:
+ - name: MY_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: MY_POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: ETCDCTL_API
+ value: "3"