aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-champ/templates
diff options
context:
space:
mode:
authorMichael Arrastia <MArrasti@amdocs.com>2018-09-17 15:12:45 +0100
committerMichael Arrastia <MArrasti@amdocs.com>2018-09-17 15:27:17 +0100
commit1149a06956120c94b6de419e8777eea0499dc217 (patch)
tree766de128539de01ceb6abf9bb1d656b3d1f51c57 /kubernetes/aai/charts/aai-champ/templates
parentbc7c2b8308105985d2807a1ddd94537b5b6bbbd3 (diff)
[Champ] Update to use DMaaP with SSL
- Reconfigure event publisher in champ-beans.xml to use DMaaP client. - Add property values to values.yaml file. - Update JKS trust store (tomcat_keystore) to accept the DMaaP certificate. - Additionally, to align with other microservices, update deployment.yaml to map logs to filebeat sidecar. Change-Id: I37da421b1cbf03a85fa19dda1e38955b17fa56ca Issue-ID: AAI-1597 Signed-off-by: Michael Arrastia <MArrasti@amdocs.com>
Diffstat (limited to 'kubernetes/aai/charts/aai-champ/templates')
-rw-r--r--kubernetes/aai/charts/aai-champ/templates/deployment.yaml37
1 files changed, 19 insertions, 18 deletions
diff --git a/kubernetes/aai/charts/aai-champ/templates/deployment.yaml b/kubernetes/aai/charts/aai-champ/templates/deployment.yaml
index 0e2bb90aa7..d2f7bca593 100644
--- a/kubernetes/aai/charts/aai-champ/templates/deployment.yaml
+++ b/kubernetes/aai/charts/aai-champ/templates/deployment.yaml
@@ -31,23 +31,6 @@ spec:
app: {{ include "common.name" . }}
release: {{ .Release.Name }}
spec:
- initContainers:
- - command:
- - /root/ready.py
- args:
- - --container-name
- - aai-resources
- - --container-name
- - message-router-kafka
- env:
- - name: NAMESPACE
- valueFrom:
- fieldRef:
- apiVersion: v1
- fieldPath: metadata.namespace
- image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
- imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
- name: {{ include "common.name" . }}-readiness
containers:
- name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
@@ -100,7 +83,7 @@ spec:
- mountPath: /opt/app/champ-service/bundleconfig/etc/logback.xml
name: {{ include "common.fullname" . }}-logback-config
subPath: logback.xml
- - mountPath: /logs
+ - mountPath: /var/log/onap
name: {{ include "common.fullname" . }}-logs
resources:
{{ toYaml .Values.resources | indent 12 }}
@@ -113,6 +96,19 @@ spec:
{{ toYaml .Values.affinity | indent 10 }}
{{- end }}
+ # side car containers
+ - name: filebeat-onap
+ image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}"
+ imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ volumeMounts:
+ - mountPath: /usr/share/filebeat/filebeat.yml
+ subPath: filebeat.yml
+ name: filebeat-conf
+ - mountPath: /var/log/onap
+ name: {{ include "common.fullname" . }}-logs
+ - mountPath: /usr/share/filebeat/data
+ name: aai-filebeat
+
volumes:
- name: localtime
hostPath:
@@ -140,5 +136,10 @@ spec:
items:
- key: logback.xml
path: logback.xml
+ - name: filebeat-conf
+ configMap:
+ name: aai-filebeat
+ - name: aai-filebeat
+ emptyDir: {}
imagePullSecrets:
- name: "{{ include "common.namespace" . }}-docker-registry-key"