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
31 fieldPath: metadata.namespace
32 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
33 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
35 - name: {{ include "common.name" . }}
36 image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
37 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
39 - containerPort: {{ .Values.service.internalPort }}
40 - containerPort: {{ .Values.service.internalPort2 }}
41 # disable liveness probe when breakpoints set in debugger
42 # so K8s doesn't restart unresponsive container
43 {{- if eq .Values.liveness.enabled true }}
46 port: {{ .Values.service.internalPort }}
47 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
48 periodSeconds: {{ .Values.liveness.periodSeconds }}
52 port: {{ .Values.service.internalPort }}
53 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
54 periodSeconds: {{ .Values.readiness.periodSeconds }}
57 value: {{ .Values.global.env.name }}
61 fieldPath: status.podIP
65 - name: {{ include "common.fullname" . }}-environments
66 mountPath: /root/chef-solo/environments/
67 - name: {{ include "common.fullname" . }}-localtime
68 mountPath: /etc/localtime
70 - name: {{ include "common.fullname" . }}-logs
71 mountPath: /var/log/onap
72 - name: {{ include "common.fullname" . }}-logback
73 mountPath: /tmp/logback.xml
77 command: ["/bin/sh", "-c", "export LOG=wait_logback.log; touch $LOG; export SRC=/tmp/logback.xml; export DST=/var/lib/jetty/config/catalog-fe/; while [ ! -e $DST ]; do echo 'Waiting for $DST...' >> $LOG; sleep 5; done; sleep 2; /bin/cp -f $SRC $DST; echo 'Done' >> $LOG"]
79 {{ toYaml .Values.resources | indent 12 }}
80 {{- if .Values.nodeSelector }}
82 {{ toYaml .Values.nodeSelector | indent 10 }}
84 {{- if .Values.affinity }}
86 {{ toYaml .Values.affinity | indent 10 }}
90 - name: {{ include "common.name" . }}-filebeat-onap
91 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
92 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
94 - name: {{ include "common.fullname" . }}-filebeat-conf
95 mountPath: /usr/share/filebeat/filebeat.yml
97 - name: {{ include "common.fullname" . }}-logs
98 mountPath: /var/log/onap
99 - name: {{ include "common.fullname" . }}-data-filebeat
100 mountPath: /usr/share/filebeat/data
102 - name: {{ include "common.fullname" . }}-localtime
105 - name: {{ include "common.fullname" . }}-filebeat-conf
107 name: {{ .Release.Name }}-sdc-filebeat-configmap
108 - name: {{ include "common.fullname" . }}-data-filebeat
110 - name: {{ include "common.fullname" . }}-logback
112 name : {{ include "common.fullname" . }}-logging-configmap
113 - name: {{ include "common.fullname" . }}-environments
115 name: {{ .Release.Name }}-sdc-environments-configmap
117 - name: {{ include "common.fullname" . }}-logs
120 - name: "{{ include "common.namespace" . }}-docker-registry-key"