test: add default namespace in examples to fix e2e test failure
fix
This commit is contained in:
parent
2524d92ae0
commit
c28a080132
4
Makefile
4
Makefile
@ -131,8 +131,8 @@ endif
|
||||
.PHONY: install-nfs-server
|
||||
install-nfs-server:
|
||||
kubectl apply -f ./deploy/example/nfs-provisioner/nfs-server.yaml
|
||||
kubectl delete secret mount-options --ignore-not-found
|
||||
kubectl create secret generic mount-options --from-literal mountOptions="nfsvers=4.1"
|
||||
kubectl delete secret mount-options -n default --ignore-not-found
|
||||
kubectl create secret generic mount-options --from-literal mountOptions="nfsvers=4.1" -n default
|
||||
|
||||
.PHONY: install-helm
|
||||
install-helm:
|
||||
|
||||
@ -3,6 +3,7 @@ kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginx-nfs-restored-cloning
|
||||
namespace: default
|
||||
spec:
|
||||
nodeSelector:
|
||||
"kubernetes.io/os": linux
|
||||
|
||||
@ -3,6 +3,7 @@ kind: DaemonSet
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: daemonset-nfs-ephemeral
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
|
||||
@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pvc-deployment-nfs
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany # In this example, multiple Pods consume the same PVC.
|
||||
@ -15,6 +16,7 @@ apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: deployment-nfs
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
||||
@ -3,6 +3,7 @@ kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nfs-server
|
||||
namespace: default
|
||||
labels:
|
||||
app: nfs-server
|
||||
spec:
|
||||
@ -21,6 +22,7 @@ kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: nfs-server
|
||||
namespace: default
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
|
||||
@ -5,6 +5,7 @@ metadata:
|
||||
annotations:
|
||||
pv.kubernetes.io/provisioned-by: nfs.csi.k8s.io
|
||||
name: pv-nginx
|
||||
namespace: default
|
||||
spec:
|
||||
capacity:
|
||||
storage: 10Gi
|
||||
@ -26,6 +27,7 @@ kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: pvc-nginx
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
@ -39,6 +41,7 @@ apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: nginx-nfs-example
|
||||
namespace: default
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx
|
||||
|
||||
@ -3,6 +3,7 @@ kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginx-pod-inline-volume
|
||||
namespace: default
|
||||
spec:
|
||||
nodeSelector:
|
||||
"kubernetes.io/os": linux
|
||||
|
||||
@ -3,6 +3,7 @@ kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginx-nfs
|
||||
namespace: default
|
||||
spec:
|
||||
nodeSelector:
|
||||
"kubernetes.io/os": linux
|
||||
|
||||
@ -3,6 +3,7 @@ apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pvc-nfs-dynamic
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
|
||||
@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: pvc-nfs-static
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
|
||||
@ -3,6 +3,7 @@ kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginx-nfs-restored-snapshot
|
||||
namespace: default
|
||||
spec:
|
||||
nodeSelector:
|
||||
"kubernetes.io/os": linux
|
||||
|
||||
@ -3,6 +3,7 @@ apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: statefulset-nfs
|
||||
namespace: default
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user