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 }}
19 sidecar.istio.io/inject: "{{.Values.istioSidecar}}"
21 serviceAccountName: msb
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" . }}-readiness
38 - name: {{ include "common.name" . }}
39 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
40 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
42 - containerPort: {{ .Values.service.internalPort }}
43 # disable liveness probe when breakpoints set in debugger
44 # so K8s doesn't restart unresponsive container
45 {{- if eq .Values.liveness.enabled true }}
48 port: {{ .Values.service.internalPort }}
49 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
50 periodSeconds: {{ .Values.liveness.periodSeconds }}
54 port: {{ .Values.service.internalPort }}
55 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
56 periodSeconds: {{ .Values.readiness.periodSeconds }}
59 value: msb-consul.{{ include "common.namespace" . }}
61 - mountPath: /etc/localtime
64 - mountPath: /usr/local/discover-works/logs
65 name: {{ include "common.fullname" . }}-logs
67 {{ toYaml .Values.resources | indent 12 }}
68 {{- if .Values.nodeSelector }}
70 {{ toYaml .Values.nodeSelector | indent 10 }}
72 {{- if .Values.affinity }}
74 {{ toYaml .Values.affinity | indent 10 }}
77 # Filebeat sidecar container
78 - name: {{ include "common.name" . }}-filebeat-onap
79 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
80 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
82 - name: {{ include "common.fullname" . }}-filebeat-conf
83 mountPath: /usr/share/filebeat/filebeat.yml
85 - name: {{ include "common.fullname" . }}-data-filebeat
86 mountPath: /usr/share/filebeat/data
87 - name: {{ include "common.fullname" . }}-logs
88 mountPath: /var/log/onap/msb/msb-discovery
89 - mountPath: /opt/ajsc/etc/config/logback.xml
90 name: {{ include "common.fullname" . }}-log-conf
93 - name: {{ include "common.fullname" . }}-log-conf
95 name: {{ include "common.fullname" . }}-log
96 - name: {{ include "common.fullname" . }}-filebeat-conf
98 name: {{ .Release.Name }}-msb-filebeat-configmap
99 - name: {{ include "common.fullname" . }}-data-filebeat
101 - name: {{ include "common.fullname" . }}-logs
107 - name: "{{ include "common.namespace" . }}-docker-registry-key"