summaryrefslogtreecommitdiffstats
path: root/charts/aai-data-router/templates
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-02-25 10:24:23 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-25 10:24:23 +0000
commit28c2643a31109f19b54dbf3e7f6594eafdb50b52 (patch)
tree68f7a297035403673c9d10412a41d8c63af07f82 /charts/aai-data-router/templates
parent53a6d1d6fc536117536f1a70a8a909370524c110 (diff)
parent03078568415225f5ab1b32e4f40063dca520f600 (diff)
Merge "Fix nodeSlector and Affinity for aai charts"
Diffstat (limited to 'charts/aai-data-router/templates')
-rw-r--r--charts/aai-data-router/templates/deployment.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/charts/aai-data-router/templates/deployment.yaml b/charts/aai-data-router/templates/deployment.yaml
index a7ecbce..5c0d9b2 100644
--- a/charts/aai-data-router/templates/deployment.yaml
+++ b/charts/aai-data-router/templates/deployment.yaml
@@ -35,6 +35,14 @@ spec:
release: {{ .Release.Name }}
name: {{ include "common.name" . }}
spec:
+ {{- if .Values.nodeSelector }}
+ nodeSelector:
+{{ toYaml .Values.nodeSelector | indent 8 }}
+ {{- end -}}
+ {{- if .Values.affinity }}
+ affinity:
+{{ toYaml .Values.affinity | indent 8 }}
+ {{- end }}
initContainers:
- command:
- /bin/sh
@@ -120,7 +128,7 @@ spec:
initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
resources:
-{{ include "common.resources" . | indent 12 }}
+{{ include "common.resources" . }}
# side car containers
- name: filebeat-onap
@@ -136,6 +144,8 @@ spec:
name: {{ include "common.fullname" . }}-logs
- mountPath: /usr/share/filebeat/data
name: aai-filebeat
+ resources:
+{{ include "common.resources" . }}
volumes:
- name: localtime
hostPath: