1 # Copyright © 2017 Amdocs, Bell Canada
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # Modifications copyright (c) 2018 AT&T Intellectual Property
17 apiVersion: extensions/v1beta1
20 name: {{ include "common.fullname" . }}
21 namespace: {{ include "common.namespace" . }}
23 app: {{ include "common.name" . }}
24 chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
25 release: {{ .Release.Name }}
26 heritage: {{ .Release.Service }}
28 replicas: {{ .Values.replicaCount }}
32 app: {{ include "common.name" . }}
33 release: {{ .Release.Name }}
46 fieldPath: metadata.namespace
47 image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
48 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
49 name: {{ include "common.name" . }}-readiness
51 - name: {{ include "common.name" . }}
52 image: "{{ .Values.global.loggingRepository| default .Values.loggingRepository }}/{{ .Values.image }}"
53 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
55 - name: dmaap_consumer_group
56 value: "{{ .Values.config.dmaapConsumerGroup }}"
57 - name: dmaap_consumer_id
58 value: "{{ .Values.config.dmaapConsumerId }}"
60 value: "{{ .Values.config.eventTopic }}"
61 - name: notification_topic
62 value: "{{ .Values.config.notificationTopic }}"
64 value: "{{ .Values.config.requestTopic }}"
65 - name: dmaap_base_url
66 value: {{ .Values.config.dmaapScheme }}://{{ .Values.config.dmaapHost }}.{{ include "common.namespace" . }}:{{ .Values.config.dmaapPort }}
67 - name: elasticsearch_base_url
68 value: "http://{{.Values.config.elasticsearchServiceName}}.{{.Release.Namespace}}.svc.cluster.local:{{.Values.config.elasticsearchPort}}"
70 - containerPort: {{ .Values.service.internalPort }}
71 name: {{ include "common.servicename" . }}
74 port: {{ .Values.service.internalPort }}
75 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
76 periodSeconds: {{ .Values.readiness.periodSeconds }}
77 # disable liveness probe when breakpoints set in debugger
78 # so K8s doesn't restart unresponsive container
79 {{- if eq .Values.liveness.enabled true }}
82 port: {{ .Values.service.internalPort }}
83 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
84 periodSeconds: {{ .Values.liveness.periodSeconds }}
87 - mountPath: /etc/localtime
90 - mountPath: /usr/share/logstash/config/logstash.yml
91 name: {{ include "common.fullname" . }}
93 - mountPath: /usr/share/logstash/pipeline/logstash.conf
94 name: {{ include "common.fullname" . }}
95 subPath: pipeline.conf
97 {{ toYaml .Values.resources | indent 12 }}
98 {{- if .Values.nodeSelector }}
100 {{ toYaml .Values.nodeSelector | indent 10 }}
102 {{- if .Values.affinity }}
104 {{ toYaml .Values.affinity | indent 10 }}
110 - name: {{ include "common.fullname" . }}
112 name: {{ include "common.fullname" . }}
119 - name: "{{ include "common.namespace" . }}-docker-registry-key"