diff options
| author | James Munnelly <munnerz@users.noreply.github.com> | 2019-04-14 21:18:24 +0100 |
|---|---|---|
| committer | James Munnelly <james@munnelly.eu> | 2019-04-15 15:23:59 +0100 |
| commit | afce06a837f4f325af64b38c659c7073613f913f (patch) | |
| tree | 0a909118d769a6683d8461cc667aa89c5facb93a /deploy/example-webhook/templates/deployment.yaml | |
| download | cert-manager-webhook-hostinger-afce06a837f4f325af64b38c659c7073613f913f.tar.gz cert-manager-webhook-hostinger-afce06a837f4f325af64b38c659c7073613f913f.zip | |
Initial commit
Diffstat (limited to 'deploy/example-webhook/templates/deployment.yaml')
| -rw-r--r-- | deploy/example-webhook/templates/deployment.yaml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/deploy/example-webhook/templates/deployment.yaml b/deploy/example-webhook/templates/deployment.yaml new file mode 100644 index 0000000..4ae5220 --- /dev/null +++ b/deploy/example-webhook/templates/deployment.yaml @@ -0,0 +1,51 @@ +apiVersion: apps/v1beta2 +kind: Deployment +metadata: + name: {{ include "example-webhook.fullname" . }} + labels: + app: {{ include "example-webhook.name" . }} + chart: {{ include "example-webhook.chart" . }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: {{ include "example-webhook.name" . }} + release: {{ .Release.Name }} + template: + metadata: + labels: + app: {{ include "example-webhook.name" . }} + release: {{ .Release.Name }} + spec: + containers: + - name: {{ .Chart.Name }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 80 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + resources: +{{ toYaml .Values.resources | indent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: +{{ toYaml . | indent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: +{{ toYaml . | indent 8 }} + {{- end }} |
