summaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/operators/helm/operator/charts/etcd-operator/templates/restore-operator-deployment.yaml
diff options
context:
space:
mode:
authorRajamohan Raj <rajamohan.raj@intel.com>2020-07-02 23:18:38 +0000
committerRajamohan Raj <rajamohan.raj@intel.com>2020-07-07 02:14:42 +0000
commit0003a52f4265c5cd879abebe1b8454206f0f2ff7 (patch)
treebc1b886363f7d988605e6d28fc9e98a7fcd45d91 /kud/tests/vnfs/comp-app/collection/operators/helm/operator/charts/etcd-operator/templates/restore-operator-deployment.yaml
parent1e083940563e5e4b996d0389c62771cfbdd74cf6 (diff)
Script for M3DB operator deployment through orchestrator
In this patch, wrote a script for auto deploy of M3DB operator through the orchestrator. Issue-ID: MULTICLOUD-1112 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: Ia1951c5ef0de20e9b47f6ab5330dec8db5a1c46f
Diffstat (limited to 'kud/tests/vnfs/comp-app/collection/operators/helm/operator/charts/etcd-operator/templates/restore-operator-deployment.yaml')
-rw-r--r--kud/tests/vnfs/comp-app/collection/operators/helm/operator/charts/etcd-operator/templates/restore-operator-deployment.yaml64
1 files changed, 64 insertions, 0 deletions
diff --git a/kud/tests/vnfs/comp-app/collection/operators/helm/operator/charts/etcd-operator/templates/restore-operator-deployment.yaml b/kud/tests/vnfs/comp-app/collection/operators/helm/operator/charts/etcd-operator/templates/restore-operator-deployment.yaml
new file mode 100644
index 00000000..ce27f6f8
--- /dev/null
+++ b/kud/tests/vnfs/comp-app/collection/operators/helm/operator/charts/etcd-operator/templates/restore-operator-deployment.yaml
@@ -0,0 +1,64 @@
+{{- if .Values.deployments.restoreOperator }}
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ template "etcd-restore-operator.fullname" . }}
+ labels:
+ chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
+ app: {{ template "etcd-restore-operator.name" . }}
+ heritage: {{ .Release.Service }}
+ release: {{ .Release.Name }}
+spec:
+ selector:
+ matchLabels:
+ app: {{ template "etcd-restore-operator.name" . }}
+ release: {{ .Release.Name }}
+ replicas: {{ .Values.restoreOperator.replicaCount }}
+ template:
+ metadata:
+ name: {{ template "etcd-restore-operator.fullname" . }}
+ labels:
+ app: {{ template "etcd-restore-operator.name" . }}
+ release: {{ .Release.Name }}
+ spec:
+ serviceAccountName: {{ template "etcd-operator.serviceAccountName" . }}
+ containers:
+ - name: {{ .Values.restoreOperator.name }}
+ image: "{{ .Values.restoreOperator.image.repository }}:{{ .Values.restoreOperator.image.tag }}"
+ imagePullPolicy: {{ .Values.restoreOperator.image.pullPolicy }}
+ ports:
+ - containerPort: {{ .Values.restoreOperator.port }}
+ command:
+ - etcd-restore-operator
+{{- range $key, $value := .Values.restoreOperator.commandArgs }}
+ - "--{{ $key }}={{ $value }}"
+{{- end }}
+ env:
+ - name: MY_POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ - name: MY_POD_NAME
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.name
+ - name: SERVICE_ADDR
+ value: "{{ .Values.restoreOperator.name }}:{{ .Values.restoreOperator.port }}"
+ resources:
+ limits:
+ cpu: {{ .Values.restoreOperator.resources.cpu }}
+ memory: {{ .Values.restoreOperator.resources.memory }}
+ requests:
+ cpu: {{ .Values.restoreOperator.resources.cpu }}
+ memory: {{ .Values.restoreOperator.resources.memory }}
+ {{- if .Values.restoreOperator.nodeSelector }}
+ nodeSelector: {{ toYaml .Values.restoreOperator.nodeSelector | nindent 8 }}
+ {{- end }}
+ {{- if .Values.restoreOperator.securityContext }}
+ securityContext: {{ toYaml .Values.restoreOperator.securityContext | nindent 8 }}
+ {{- end }}
+ {{- if .Values.restoreOperator.tolerations }}
+ tolerations: {{ toYaml .Values.restoreOperator.tolerations | nindent 8 }}
+ {{- end }}
+{{- end }}