From 8e6243669719b6b8d906fef29980cd6c836e45f7 Mon Sep 17 00:00:00 2001 From: Soto Sugita Date: Tue, 11 May 2021 22:00:29 +0900 Subject: [PATCH] Fix the installation command by helm (#539) The installation by helm will fail because the namespace does not exist. Added the `--create-namespace` flag to create a namespace if not exist. --- docs/admission-controller.md | 2 +- docs/dashboard.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/admission-controller.md b/docs/admission-controller.md index 4fd1a950..b209c6ab 100644 --- a/docs/admission-controller.md +++ b/docs/admission-controller.md @@ -28,7 +28,7 @@ kubectl apply -f https://github.com/fairwindsops/polaris/releases/latest/downloa ### Helm ```bash helm repo add fairwinds-stable https://charts.fairwinds.com/stable -helm upgrade --install polaris fairwinds-stable/polaris --namespace polaris \ +helm upgrade --install polaris fairwinds-stable/polaris --namespace polaris --create-namespace \ --set webhook.enable=true --set dashboard.enable=false ``` diff --git a/docs/dashboard.md b/docs/dashboard.md index ed8c664d..47aec9be 100644 --- a/docs/dashboard.md +++ b/docs/dashboard.md @@ -19,7 +19,7 @@ kubectl port-forward --namespace polaris svc/polaris-dashboard 8080:80 ### Helm ```bash helm repo add fairwinds-stable https://charts.fairwinds.com/stable -helm upgrade --install polaris fairwinds-stable/polaris --namespace polaris +helm upgrade --install polaris fairwinds-stable/polaris --namespace polaris --create-namespace kubectl port-forward --namespace polaris svc/polaris-dashboard 8080:80 ```