devops-test-app/chart/templates/deployment.yaml

33 lines
742 B
YAML
Raw Normal View History

2020-07-07 14:12:13 +05:00
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 }}
2020-07-07 14:12:13 +05:00
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 }}