csantanapr closed pull request #375: Document pv configuration in k8s-docker-for-mac URL: https://github.com/apache/incubator-openwhisk-deploy-kube/pull/375
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/docs/k8s-docker-for-mac.md b/docs/k8s-docker-for-mac.md index 67831c9..ccbcc6f 100644 --- a/docs/k8s-docker-for-mac.md +++ b/docs/k8s-docker-for-mac.md @@ -64,6 +64,21 @@ nginx: httpsNodePort: 31001 ``` +Since OpenWhisk deployment enables PersistentVolumes by default, you +should set the defaultStorageClass for your Kubernetes in Docker by adding +below configuration to mycluster.yaml: +```yaml +k8s: + persistence: + defaultStorageClass: hostpath +``` +or disable the default persistence by below configuration: +```yaml +k8s: + persistence: + enabled: false +``` + ## Hints and Tips One nice feature of using Kubernetes in Docker, is that the @@ -96,4 +111,3 @@ from outside the cluster (with the `wsk` cli) and from inside the cluster (in `mycluster.yaml`). Continuing the example from above, when setting the `--apihost` for the `wsk` cli, you would use `localhost:31001`. - ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services