DaemonGloom
57c125d3dd
All checks were successful
Docker image build / Build docker image (push) Successful in 1m25s
33 lines
742 B
YAML
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 }}
|