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}}"
32 fieldPath: metadata.namespace
33 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
34 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
35 name: {{ include "common.name" . }}-readiness
37 - name: {{ include "common.name" . }}
38 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
39 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
41 - containerPort: {{ .Values.service.internalPort }}
42 # disable liveness probe when breakpoints set in debugger
43 # so K8s doesn't restart unresponsive container
44 {{- if eq .Values.liveness.enabled true }}
47 port: {{ .Values.service.internalPort }}
48 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
49 periodSeconds: {{ .Values.liveness.periodSeconds }}
53 port: {{ .Values.service.internalPort }}
54 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
55 periodSeconds: {{ .Values.readiness.periodSeconds }}
58 value: msb-consul.{{ include "common.namespace" . }}
60 - mountPath: /etc/localtime
63 - mountPath: /usr/local/discover-works/logs
64 name: {{ include "common.fullname" . }}-logs
66 {{ toYaml .Values.resources | indent 12 }}
67 {{- if .Values.nodeSelector }}
69 {{ toYaml .Values.nodeSelector | indent 10 }}
71 {{- if .Values.affinity }}
73 {{ toYaml .Values.affinity | indent 10 }}
76 # Filebeat sidecar container
77 - name: {{ include "common.name" . }}-filebeat-onap
78 image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
79 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
81 - name: {{ include "common.fullname" . }}-filebeat-conf
82 mountPath: /usr/share/filebeat/filebeat.yml
84 - name: {{ include "common.fullname" . }}-data-filebeat
85 mountPath: /usr/share/filebeat/data
86 - name: {{ include "common.fullname" . }}-logs
87 mountPath: /var/log/onap/msb/msb-discovery
88 - mountPath: /opt/ajsc/etc/config/logback.xml
89 name: {{ include "common.fullname" . }}-log-conf
92 - name: {{ include "common.fullname" . }}-log-conf
94 name: {{ include "common.fullname" . }}-log
95 - name: {{ include "common.fullname" . }}-filebeat-conf
97 name: {{ .Release.Name }}-msb-filebeat-configmap
98 - name: {{ include "common.fullname" . }}-data-filebeat
100 - name: {{ include "common.fullname" . }}-logs
106 - name: "{{ include "common.namespace" . }}-docker-registry-key"