File tree Expand file tree Collapse file tree 8 files changed +208
-0
lines changed
same-share-different-namespaces Expand file tree Collapse file tree 8 files changed +208
-0
lines changed Original file line number Diff line number Diff line change 1+ apiVersion : apps/v1
2+ kind : Deployment
3+ metadata :
4+ labels :
5+ app : pvc-example
6+ app.kubernetes.io/component : pvc-example
7+ app.kubernetes.io/instance : pvc-example
8+ app.kubernetes.io/part-of : pvc-example
9+ app.openshift.io/runtime : redhat
10+ name : pvc-example
11+ spec :
12+ replicas : 1
13+ selector :
14+ matchLabels :
15+ app : pvc-example
16+ type : Recreate
17+ template :
18+ metadata :
19+ labels :
20+ app : pvc-example
21+ deploymentconfig : pvc-example
22+ spec :
23+ volumes :
24+ - name : san
25+ persistentVolumeClaim :
26+ claimName : san
27+ containers :
28+ - image : registry.access.redhat.com/ubi8/ubi:latest
29+ imagePullPolicy : Always
30+ name : pvc-example
31+ command :
32+ - /bin/sh
33+ - -c
34+ - |
35+ sleep infinity
36+ resources : {}
37+ volumeMounts :
38+ - mountPath : /storage
39+ name : san
40+
41+
42+
43+
44+
45+
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : PersistentVolumeClaim
3+ metadata :
4+ name : san
5+ spec :
6+ accessModes :
7+ - ReadWriteOnce
8+ resources :
9+ requests :
10+ storage : 1Gi
11+ storageClassName : coe-netapp-san
12+ volumeMode : Filesystem
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : PersistentVolume
3+ metadata :
4+ creationTimestamp : null
5+ labels :
6+ type : shared-nfs
7+ name : a-coe-isos
8+ spec :
9+ accessModes :
10+ - ReadWriteMany
11+ capacity :
12+ storage : 500Gi
13+ nfs :
14+ path : /coe_iso
15+ server : 10.32.97.1
16+ persistentVolumeReclaimPolicy : Retain
17+
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : PersistentVolume
3+ metadata :
4+ creationTimestamp : null
5+ labels :
6+ type : shared-nfs
7+ name : b-coe-isos
8+ spec :
9+ accessModes :
10+ - ReadWriteMany
11+ capacity :
12+ storage : 500Gi
13+ nfs :
14+ path : /coe_iso
15+ server : 10.32.97.1
16+ persistentVolumeReclaimPolicy : Retain
17+
Original file line number Diff line number Diff line change 1+ ---
2+ apiVersion : apps/v1
3+ kind : Deployment
4+ metadata :
5+ name : storage-exposer
6+ spec :
7+ replicas : 1
8+ strategy :
9+ type : Recreate
10+ selector :
11+ matchLabels :
12+ app : storage-exposer
13+ template :
14+ metadata :
15+ labels :
16+ app : storage-exposer
17+ spec :
18+ automountServiceAccountToken : false
19+ volumes :
20+ - name : docroot
21+ persistentVolumeClaim :
22+ claimName : coe-isos
23+ containers :
24+ - image : registry.access.redhat.com/ubi8/nginx-120
25+ name : nginx
26+ resources :
27+ limits :
28+ ephemeral-storage : 40Mi
29+ cpu : 0.5
30+ memory : " 512Mi"
31+ requests :
32+ ephemeral-storage : 20Mi
33+ cpu : 0.5
34+ memory : " 512Mi"
35+ volumeMounts :
36+ - name : docroot
37+ mountPath : /opt/app-root/src/
38+ env :
39+ - name : POD_NAME
40+ valueFrom :
41+ fieldRef :
42+ fieldPath : metadata.name
43+ command :
44+ - /bin/sh
45+ - -c
46+ - |
47+ echo "location / { autoindex on; }" > ${NGINX_DEFAULT_CONF_PATH}/index-on.conf
48+
49+ /usr/libexec/s2i/run
50+
51+ triggers :
52+ - type : ConfigChange
53+ ---
54+ apiVersion : v1
55+ kind : Service
56+ metadata :
57+ labels :
58+ app : storage-exposer
59+ name : storage-exposer
60+ spec :
61+ ports :
62+ - name : 8080-8080
63+ port : 8080
64+ protocol : TCP
65+ targetPort : 8080
66+ selector :
67+ app : storage-exposer
68+ sessionAffinity : None
69+ type : ClusterIP
70+ ---
71+ apiVersion : route.openshift.io/v1
72+ kind : Route
73+ metadata :
74+ labels :
75+ app : storage-exposer
76+ name : storage-exposer
77+ spec :
78+ port :
79+ targetPort : 8080
80+ to :
81+ kind : " Service"
82+ name : storage-exposer
83+ weight : null
84+ tls :
85+ termination : Edge
86+ insecureEdgeTerminationPolicy : Redirect
87+
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : PersistentVolume
3+ metadata :
4+ creationTimestamp : null
5+ labels :
6+ type : static-nfs-2e4c62a0f0
7+ name : coe-isos
8+ spec :
9+ accessModes :
10+ - ReadWriteMany
11+ capacity :
12+ storage : 500Gi
13+ nfs :
14+ path : /coe_iso
15+ server : 10.32.97.1
16+ persistentVolumeReclaimPolicy : Retain
17+
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : PersistentVolumeClaim
3+ metadata :
4+ name : coe-isos
5+ spec :
6+ storageClassName : " "
7+ accessModes : [ "ReadWriteMany" ]
8+ selector :
9+ matchLabels :
10+ type : " static-nfs-2e4c62a0f0"
11+ resources :
12+ requests :
13+ storage : 500Gi
You can’t perform that action at this time.
0 commit comments