christianlempa-boilerplates/kubernetes/templates/pv-and-pvc/local-web.yml

28 lines
516 B
YAML
Raw Normal View History

2021-11-05 10:37:42 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-web
spec:
replicas: 1
selector:
matchLabels:
app: local-web
template:
metadata:
labels:
app: local-web
spec:
containers:
- name: local-web
image: nginx
ports:
- name: web
containerPort: 80
volumeMounts:
- name: local
2021-11-05 11:46:50 +01:00
mountPath: /usr/share/nginx/html
2021-11-05 10:37:42 +01:00
volumes:
- name: local
hostPath:
path: /var/nginxserver