aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes
diff options
context:
space:
mode:
authorkiranya <kiran.yadav@amdocs.com>2017-11-23 07:28:50 +0000
committerkiranya <kiran.yadav@amdocs.com>2017-11-23 07:30:30 +0000
commit364b9ad1e3126df5c87804beab36441455aca0c1 (patch)
tree540dc4ed99cc3b1d8a6e5e65431c87adfad664de /kubernetes
parent1cee1a3eb985815da8d55ca7bcfa2bf3ac092d34 (diff)
Update annotations to spec for clamp
Issue-ID: OOM-457 Change-Id: Iff847c80ea1af0c9cfdc427fd23f4b310e12a72e Signed-off-by: kiranya <kiran.yadav@amdocs.com>
Diffstat (limited to 'kubernetes')
-rw-r--r--kubernetes/clamp/templates/clamp-deployment.yaml43
1 files changed, 16 insertions, 27 deletions
diff --git a/kubernetes/clamp/templates/clamp-deployment.yaml b/kubernetes/clamp/templates/clamp-deployment.yaml
index 493bb49b9e..0f3913ce91 100644
--- a/kubernetes/clamp/templates/clamp-deployment.yaml
+++ b/kubernetes/clamp/templates/clamp-deployment.yaml
@@ -15,33 +15,22 @@ spec:
labels:
app: clamp
name: clamp
- annotations:
- pod.beta.kubernetes.io/init-containers: '[
- {
- "args": [
- "--container-name",
- "clamp-mariadb"
- ],
- "command": [
- "/root/ready.py"
- ],
- "env": [
- {
- "name": "NAMESPACE",
- "valueFrom": {
- "fieldRef": {
- "apiVersion": "v1",
- "fieldPath": "metadata.namespace"
- }
- }
- }
- ],
- "image": "{{ .Values.image.readiness }}",
- "imagePullPolicy": "{{ .Values.pullPolicy }}",
- "name": "clamp-readiness"
- }
- ]'
spec:
+ initContainers:
+ - command:
+ - /root/ready.py
+ args:
+ - --container-name
+ - clamp-mariadb
+ env:
+ - name: NAMESPACE
+ valueFrom:
+ fieldRef:
+ apiVersion: v1
+ fieldPath: metadata.namespace
+ image: {{ .Values.image.readiness }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: clamp-readiness
containers:
- env:
- name: SPRING_APPLICATION_JSON
@@ -58,4 +47,4 @@ spec:
periodSeconds: 10
imagePullSecrets:
- name: {{ .Values.nsPrefix }}-docker-registry-key
-#{{ end }} \ No newline at end of file
+#{{ end }}