Resource Limits for policy
[oom.git] / kubernetes / policy / charts / brmsgw / templates / deployment.yaml
index cd715e4..7b40dbe 100644 (file)
@@ -1,4 +1,5 @@
 # Copyright © 2017 Amdocs, Bell Canada
+# Modifications Copyright © 2018 AT&T
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -51,7 +52,7 @@ spec:
         - ./do-start.sh
         - brmsgw
         name: {{ include "common.name" . }}
-        image: "{{ .Values.global.repository | default .Values.repository }}/{{ .Values.image }}"
+        image: "{{ include "common.repository" . }}/{{ .Values.image }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         ports:
         - containerPort: {{ .Values.service.externalPort }}
@@ -71,8 +72,12 @@ spec:
         - mountPath: /etc/localtime
           name: localtime
           readOnly: true
-        - mountPath: /tmp/policy-install/config
+        - mountPath: /tmp/policy-install/config/brmsgw-tweaks.sh
           name: pe-brmsgw
+          subPath: brmsgw-tweaks.sh
+        - mountPath: /tmp/policy-install/config/brmsgw.conf
+          name: pe-brmsgw
+          subPath: brmsgw.conf
         - mountPath: /tmp/policy-install/config/base.conf
           name: pe
           subPath: base.conf
@@ -80,7 +85,7 @@ spec:
           name: pe-scripts
           subPath: do-start.sh
         resources:
-{{ toYaml .Values.resources | indent 12 }}
+{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
       {{- if .Values.nodeSelector }}
       nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 10 }}