devops-test-app/chart/templates/deployment.yaml
DaemonGloom 57c125d3dd
All checks were successful
Docker image build / Build docker image (push) Successful in 1m25s
Switch helm, container registry and workflow to local repo
2024-08-06 09:03:12 +05:00

33 lines
742 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
spec:
replicas: 1
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: my-app
image: daemongit.dyndns.info/just_a_test/test-app:{{ .Values.image.tag }}
imagePullPolicy: Always
env:
- name: PORT
value: "80"
- name: IMAGE_PATH
value: /data/image
ports:
- containerPort: 80
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
persistentVolumeClaim:
claimName: {{ .Release.Name }}