From 8d867657bb452a55d9c29439dd4e943bd5b4e8dc Mon Sep 17 00:00:00 2001 From: Vic Iglesias Date: Tue, 25 Oct 2016 17:45:08 -0700 Subject: [PATCH] Add resources and probes --- pkg/chartutil/create.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkg/chartutil/create.go b/pkg/chartutil/create.go index 40d46bb2c..c413f27cc 100644 --- a/pkg/chartutil/create.go +++ b/pkg/chartutil/create.go @@ -59,6 +59,14 @@ service: type: ClusterIP externalPort: 80 internalPort: 80 +resources: + limits: + cpu: 100m + memory: 128Mi + requests: + cpu: 100m + memory: 128Mi + ` const defaultIgnore = `# Patterns to ignore when building packages. @@ -103,6 +111,16 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - containerPort: {{ .Values.service.internalPort }} + livenessProbe: + httpGet: + path: / + port: 80 + readinessProbe: + httpGet: + path: / + port: 80 + resources: +{{ toYaml .Values.resources | indent 12 }} ` const defaultService = `apiVersion: v1