diff --git a/helm/softplayer-backend/templates/extra/dragonfly.yaml b/helm/softplayer-backend/templates/extra/dragonfly.yaml index c0d0b3f..76a4140 100644 --- a/helm/softplayer-backend/templates/extra/dragonfly.yaml +++ b/helm/softplayer-backend/templates/extra/dragonfly.yaml @@ -7,11 +7,8 @@ metadata: spec: imagePullPolicy: Always networkPolicyEnabled: true - replicas: 1 + replicas: {{ .Values.dragonfly.replicas }} + {{- with .Values.dragonfly.resources }} resources: - limits: - cpu: 20m - memory: 256Mi - requests: - cpu: 20m - memory: 128Mi + {{- toYaml . | nindent 4 }} + {{- end }} diff --git a/helm/softplayer-backend/values.yaml b/helm/softplayer-backend/values.yaml index 30fb444..129405a 100644 --- a/helm/softplayer-backend/values.yaml +++ b/helm/softplayer-backend/values.yaml @@ -35,7 +35,7 @@ resources: {} # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following # lines, adjust them as necessary, and remove the curly braces after 'resources:'. -# limits: +# limit # cpu: 100m # memory: 128Mi # requests: @@ -75,3 +75,13 @@ volumeMounts: [] nodeSelector: {} tolerations: [] affinity: {} + +dragonfly: + replicas: 1 + resources: + limit: + cpu: 100m + memory: 128Mi + requests: + cpu: 100m + memory: 128Mi