45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: symcrest-web
|
|
namespace: {{ .Values.namespace }}
|
|
spec:
|
|
revisionHistoryLimit: 3
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: symcrest-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: symcrest-web
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: forgejo-registry
|
|
containers:
|
|
- name: symcrest-web
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- name: http
|
|
containerPort: {{ .Values.service.targetPort }}
|
|
protocol: TCP
|
|
env:
|
|
- name: HOST
|
|
value: "0.0.0.0"
|
|
- name: PORT
|
|
value: "{{ .Values.service.targetPort }}"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: http
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 20
|
|
resources:
|
|
{{ toYaml .Values.resources | indent 12 }}
|