aboutsummaryrefslogtreecommitdiff
path: root/grumpy/static-files/templates/deployment.yaml
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2019-09-22 09:23:20 -0700
committerMax Resnick <max@ofmax.li>2019-09-22 09:23:20 -0700
commit479a617193774e2fe88279caa34ae3ff56a35fba (patch)
tree6e42c80583e877bb58fda360bc1e17d626c1ba82 /grumpy/static-files/templates/deployment.yaml
parent11d2384be92b00b830f4a0e4fdc9a8bf86b76d31 (diff)
downloadgrumpy-charts-479a617193774e2fe88279caa34ae3ff56a35fba.tar.gz
add static files
Diffstat (limited to 'grumpy/static-files/templates/deployment.yaml')
-rw-r--r--grumpy/static-files/templates/deployment.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/grumpy/static-files/templates/deployment.yaml b/grumpy/static-files/templates/deployment.yaml
new file mode 100644
index 0000000..da9d3c8
--- /dev/null
+++ b/grumpy/static-files/templates/deployment.yaml
@@ -0,0 +1,53 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "static-files.fullname" . }}
+ labels:
+{{ include "static-files.labels" . | indent 4 }}
+spec:
+ replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ app.kubernetes.io/name: {{ include "static-files.name" . }}
+ app.kubernetes.io/instance: {{ .Release.Name }}
+ template:
+ metadata:
+ labels:
+ app.kubernetes.io/name: {{ include "static-files.name" . }}
+ app.kubernetes.io/instance: {{ .Release.Name }}
+ spec:
+ {{- with .Values.imagePullSecrets }}
+ imagePullSecrets:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ serviceAccountName: {{ template "static-files.serviceAccountName" . }}
+ containers:
+ - name: {{ .Chart.Name }}
+ image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
+ imagePullPolicy: {{ .Values.image.pullPolicy }}
+ ports:
+ - name: http
+ containerPort: 8080
+ protocol: TCP
+ livenessProbe:
+ httpGet:
+ path: /
+ port: http
+ readinessProbe:
+ httpGet:
+ path: /
+ port: http
+ resources:
+ {{- toYaml .Values.resources | nindent 12 }}
+ {{- with .Values.nodeSelector }}
+ nodeSelector:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- with .Values.affinity }}
+ affinity:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
+ {{- with .Values.tolerations }}
+ tolerations:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}