aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/so/charts/so-sdnc-adapter
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/so/charts/so-sdnc-adapter')
-rwxr-xr-xkubernetes/so/charts/so-sdnc-adapter/templates/deployment.yaml9
-rwxr-xr-xkubernetes/so/charts/so-sdnc-adapter/values.yaml15
2 files changed, 15 insertions, 9 deletions
diff --git a/kubernetes/so/charts/so-sdnc-adapter/templates/deployment.yaml b/kubernetes/so/charts/so-sdnc-adapter/templates/deployment.yaml
index d235545aa3..a69c189c5b 100755
--- a/kubernetes/so/charts/so-sdnc-adapter/templates/deployment.yaml
+++ b/kubernetes/so/charts/so-sdnc-adapter/templates/deployment.yaml
@@ -47,12 +47,7 @@ spec:
- name: {{ include "common.name" . }}
image: {{ include "common.repository" . }}/{{ .Values.image }}
resources:
- requests:
- memory: {{ index .Values.resources.requests.memory}}
- cpu: {{ index .Values.resources.requests.cpu}}
- limits:
- memory: {{ index .Values.resources.limits.memory}}
- cpu: {{ index .Values.resources.limits.cpu}}
+{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
env:
- name: DB_HOST
valueFrom:
@@ -141,4 +136,4 @@ spec:
configMap:
name: {{ include "common.fullname" . }}-app-configmap
imagePullSecrets:
- - name: "{{ include "common.namespace" . }}-docker-registry-key" \ No newline at end of file
+ - name: "{{ include "common.namespace" . }}-docker-registry-key"
diff --git a/kubernetes/so/charts/so-sdnc-adapter/values.yaml b/kubernetes/so/charts/so-sdnc-adapter/values.yaml
index 278d30287a..55b5965b3f 100755
--- a/kubernetes/so/charts/so-sdnc-adapter/values.yaml
+++ b/kubernetes/so/charts/so-sdnc-adapter/values.yaml
@@ -27,13 +27,24 @@ updateStrategy:
type: RollingUpdate
maxUnavailable: 1
maxSurge: 1
+# Resource Limit flavor -By Default using small
+flavor: small
+# Segregation for Different environment (Small and Large)
resources:
+ small:
+ limits:
+ memory: 4Gi
+ cpu: 2000m
requests:
memory: 1Gi
cpu: 500m
+ large:
limits:
- memory: 4Gi
- cpu: 2000m
+ memory: 8Gi
+ cpu: 4000m
+ requests:
+ memory: 2Gi
+ cpu: 1000m
livenessProbe:
path: /manage/health
port: 8086