init ci deployment for homelab k3s
This commit is contained in:
parent
1a166d0176
commit
b509e6ac8a
5 changed files with 60 additions and 0 deletions
21
helm/templates/deployment.yaml
Normal file
21
helm/templates/deployment.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "flask-hello.fullname" . }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
selector:
|
||||
matchLabels: { app: {{ include "flask-hello.name" . }} }
|
||||
template:
|
||||
metadata:
|
||||
labels: { app: {{ include "flask-hello.name" . }} }
|
||||
spec:
|
||||
{{- if .Values.imagePullSecrets }}
|
||||
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 6 }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: app
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
||||
ports: [{ containerPort: {{ .Values.containerPort }} }]
|
||||
readinessProbe: { httpGet: { path: "/", port: {{ .Values.containerPort }} } }
|
||||
livenessProbe: { httpGet: { path: "/", port: {{ .Values.containerPort }} } }
|
||||
Loading…
Add table
Add a link
Reference in a new issue