Add pod example
Gitea Actions Demo Training / Explore-Gitea-Actions (push) Failing after 13s

This commit is contained in:
2023-06-28 15:27:10 +02:00
parent cebf84eed5
commit 99ee90ac84
+29
View File
@@ -199,3 +199,32 @@ spec:
```
]
---
## Pod using PVC
.small[
```yaml
apiVersion: v1
kind: Pod
metadata:
name: task-pv-pod
spec:
volumes:
- name: task-pv-storage
persistentVolumeClaim:
claimName: task-pv-claim
containers:
- name: task-pv-container
image: nginx
ports:
- containerPort: 80
name: "http-server"
volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: task-pv-storage
```
]