longhorn nummer 2

This commit is contained in:
baschno
2025-04-21 21:18:23 +02:00
parent 12546a9669
commit 0e4ddcefdf
6 changed files with 96 additions and 21 deletions

View File

@@ -0,0 +1,28 @@
apiVersion: v1
kind: Pod
metadata:
name: longhorn-pod
namespace: default
spec:
nodeName: k8s-worker3
restartPolicy: Always
containers:
- name: nginx
image: nginx:stable-alpine
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- ls
- /data/lost+found
initialDelaySeconds: 5
periodSeconds: 5
volumeMounts:
- name: volv
mountPath: /data
ports:
- containerPort: 80
volumes:
- name: volv
persistentVolumeClaim:
claimName: longhorn-pvc