diff --git a/petshop-chart/templates/deployment.yaml b/petshop-chart/templates/deployment.yaml index e8bba2c5ca3..38e8de3084a 100644 --- a/petshop-chart/templates/deployment.yaml +++ b/petshop-chart/templates/deployment.yaml @@ -52,13 +52,20 @@ spec: httpGet: path: / port: http + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 readinessProbe: httpGet: path: / port: http + initialDelaySeconds: 30 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 resources: - {{- toYaml .Values.resources | nindent 12 }} - {{- with .Values.nodeSelector }} + {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} diff --git a/petshop-chart/values.yaml b/petshop-chart/values.yaml index 26c7efa2812..e6e2b4d4690 100644 --- a/petshop-chart/values.yaml +++ b/petshop-chart/values.yaml @@ -56,17 +56,22 @@ ingress: # hosts: # - chart-example.local -resources: {} - # We usually recommend not to specify default resources and to leave this as a conscious - # choice for the user. This also increases chances charts run on environments with little +resources: + requests: + cpu: 200m + memory: 512Mi + limits: + cpu: 1000m + memory: 1Gi # 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: - # cpu: 100m - # memory: 128Mi - # requests: - # cpu: 100m - # memory: 128Mi + resources: + requests: + cpu: 200m + memory: 512Mi + limits: + cpu: 1000m + memory: 1Gi autoscaling: enabled: false