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
|
2024-08-06 09:03:12 +05:00
|
|
|
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:
|
2024-07-15 18:31:02 +05:00
|
|
|
claimName: {{ .Release.Name }}
|