Skip to content

Commit 6c04091

Browse files
authored
Add missing hostmount-anyuid scc on OpenShift (#146)
1 parent c5616a0 commit 6c04091

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

setup.KubeConEU25/README.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -63,33 +63,30 @@ feature.
6363

6464
We assume storage is available by means of preconfigured
6565
[NFS](https://en.wikipedia.org/wiki/Network_File_System) servers. We configure
66-
two storage classes using the [NFS Subdir External
66+
one storage class using the [NFS Subdir External
6767
Provisioner](https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner).
6868
```sh
6969
helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner
7070
helm repo update
7171

72-
helm install -n nfs-provisioner simplenfs nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
73-
--create-namespace \
74-
--set nfs.server=192.168.95.253 --set nfs.path=/var/repo/root/nfs \
75-
--set storageClass.name=nfs-client-simplenfs --set storageClass.provisionerName=k8s-sigs.io/simplenfs-nfs-subdir-external-provisioner
76-
7772
helm install -n nfs-provisioner pokprod nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \
7873
--create-namespace \
7974
--set nfs.server=192.168.98.96 --set nfs.path=/gpfs/fs_ec/pokprod002 \
8075
--set storageClass.name=nfs-client-pokprod --set storageClass.provisionerName=k8s-sigs.io/pokprod-nfs-subdir-external-provisioner
8176
```
82-
Make sure to replace the server ips and paths above with the right values for
83-
your environment. While we make use of both storage classes in the remainder of
84-
the tutorial for the sake of demonstration, everything could be done with a
85-
single class.
77+
Make sure to replace the server ip and path above with the right values for your
78+
environment.
8679
```sh
8780
kubectl get storageclasses
8881
```
8982
```
9083
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
9184
nfs-client-pokprod k8s-sigs.io/pokprod-nfs-subdir-external-provisioner Delete Immediate true 11s
92-
nfs-client-simplenfs k8s-sigs.io/simplenfs-nfs-subdir-external-provisioner Delete Immediate true 15s
85+
```
86+
OpenShift clusters require an additional configuration step to permit the
87+
provisioner pod to mount the storage:
88+
```sh
89+
oc adm policy add-scc-to-user hostmount-anyuid system:serviceaccount:nfs-provisioner:pokprod-nfs-subdir-external-provisioner
9390
```
9491

9592
### Prometheus Setup

0 commit comments

Comments
 (0)