Resource Limit for Portal
[oom.git] / kubernetes / portal / charts / portal-cassandra / templates / deployment.yaml
index 45bbaf1..38c6028 100644 (file)
@@ -83,7 +83,7 @@ spec:
         - name: {{ include "common.fullname" . }}-data
           mountPath: /var/lib/cassandra/data
         resources:
-{{ toYaml .Values.resources | indent 12 }}
+{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
       {{- if .Values.nodeSelector }}
       nodeSelector:
 {{ toYaml .Values.nodeSelector | indent 10 }}