kubernetes pv and pvc

This commit is contained in:
xcad2k
2021-11-05 10:37:42 +01:00
parent 66d63709bd
commit 0a53867d87
6 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: civo-web
spec:
replicas: 1
selector:
matchLabels:
app: civo-web
template:
metadata:
labels:
app: civo-web
spec:
containers:
- name: civo-web
image: nginx
ports:
- name: web
containerPort: 80
volumeMounts:
- name: civo
mountPath: "/usr/share/nginx/html"
volumes:
- name: civo
persistentVolumeClaim:
claimName: civo