1 apiVersion: extensions/v1beta1
4 name: {{ include "common.fullname" . }}
5 namespace: {{ include "common.namespace" . }}
7 app: {{ include "common.name" . }}
8 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
9 release: {{ .Release.Name }}
10 heritage: {{ .Release.Service }}
12 replicas: {{ .Values.replicaCount }}
16 app: {{ include "common.name" . }}
17 release: {{ .Release.Name }}
20 - name: {{ include "common.name" . }}-readiness
33 fieldPath: metadata.namespace
34 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
35 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
36 # - name: {{ include "common.name" . }}-job-completion
37 # image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
38 # imagePullPolicy: "{{ .Values.global.pullPolicy | default .Values.pullPolicy }}"
42 # - /root/readiness/sdc_check_job_completion.py
44 # - sdc-config-cassandra
50 # fieldPath: metadata.namespace
52 # - mountPath: /root/readiness
53 # name: sdc-check-job-completion
55 - name: {{ include "common.name" . }}
56 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
57 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
59 - containerPort: {{ .Values.service.internalPort }}
60 - containerPort: {{ .Values.service.internalPort1 }}
61 # disable liveness probe when breakpoints set in debugger
62 # so K8s doesn't restart unresponsive container
63 {{- if eq .Values.liveness.enabled true }}
66 port: {{ .Values.service.internalPort }}
67 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
68 periodSeconds: {{ .Values.liveness.periodSeconds }}
72 port: {{ .Values.service.internalPort }}
73 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
74 periodSeconds: {{ .Values.readiness.periodSeconds }}
77 value: {{ .Values.global.env.name }}
81 fieldPath: status.podIP
83 # - name: sdc-sdc-es-es
84 # mountPath: /usr/share/elasticsearch/data/
85 - name: {{ .Release.Name }}-sdc-environments-configmap
86 mountPath: /root/chef-solo/environments/
87 - name: {{ include "common.fullname" . }}-localtime
88 mountPath: /etc/localtime
90 - name: {{ include "common.fullname" . }}-logs
91 mountPath: /var/lib/jetty/logs
92 - name: {{ include "common.fullname" . }}-logs-2
93 mountPath: /var/log/onap
94 - name: {{ include "common.fullname" . }}-logback
95 mountPath: /tmp/logback.xml
99 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-be/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
101 {{ toYaml .Values.resources | indent 12 }}
102 {{- if .Values.nodeSelector }}
104 {{ toYaml .Values.nodeSelector | indent 10 }}
106 {{- if .Values.affinity }}
108 {{ toYaml .Values.affinity | indent 10 }}
111 # side car containers
112 - name: {{ include "common.name" . }}-filebeat-onap
113 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
114 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
116 - name: {{ include "common.fullname" . }}-filebeat-conf
117 mountPath: /usr/share/filebeat/filebeat.yml
118 subPath: filebeat.yml
119 - name: {{ include "common.fullname" . }}-logs-2
120 mountPath: /var/log/onap
121 - name: {{ include "common.fullname" . }}-data-filebeat
122 mountPath: /usr/share/filebeat/data
124 - name: {{ include "common.fullname" . }}-localtime
127 - name: {{ include "common.fullname" . }}-filebeat-conf
129 name: {{ include "common.fullname" . }}-filebeat-configmap
130 - name: {{ include "common.fullname" . }}-logs-2
132 - name: {{ include "common.fullname" . }}-data-filebeat
134 - name: {{ include "common.fullname" . }}-logback
136 name : {{ include "common.fullname" . }}-log-be-configmap
137 # - name: sdc-sdc-es-es
139 # path: {{ .Values.dataRootDir }}/{{ .Values.nsPrefix }}/sdc/sdc-es/ES
140 # - name: sdc-environments
142 name: {{ include "common.fullname" . }}-environments-configmap
144 - name: {{ include "common.fullname" . }}-logs
146 path: {{ .Values.dataRootDir }}/{{ include "common.namespace" . }}/sdc/logs
148 - name: "{{ include "common.namespace" . }}-docker-registry-key"