Note about the need to fix permissions for a hostPath volume mount #2260
This is a work-around for #2260 until the underlying problem is addressed (https://github.com/kubernetes/kubernetes/issues/2630).pull/2354/head
parent
e7e7515d73
commit
b26190b58b
|
@ -285,6 +285,16 @@ web-0
|
|||
web-1
|
||||
```
|
||||
|
||||
Note, if you instead see 403 Forbidden responses for the above curl command,
|
||||
you will need to fix the permissions of the directory mounted by the `volumeMounts`
|
||||
(due to a [bug when using hostPath volumes](https://github.com/kubernetes/kubernetes/issues/2630)) with:
|
||||
|
||||
```shell
|
||||
for i in 0 1; do kubectl exec web-$i -- chmod 755 /usr/share/nginx/html; done
|
||||
```
|
||||
|
||||
before retrying the curl command above.
|
||||
|
||||
In one terminal, watch the StatefulSet's Pods.
|
||||
|
||||
```shell
|
||||
|
|
Loading…
Reference in New Issue