k8sall/blog/blog-deployment.yaml
2022-07-06 01:08:10 +02:00

29 lines
543 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: blog
name: blog
spec:
replicas: 1
selector:
matchLabels:
run: blog
template:
metadata:
labels:
run: blog
spec:
containers:
- image: nginx:latest
name: blog
imagePullPolicy: "Always"
volumeMounts:
- mountPath: /usr/share/nginx/html
name: blog
restartPolicy: Always
volumes:
- name: blog
persistentVolumeClaim:
claimName: blog