diff --git a/README.md b/README.md index b6dd7f28..ac9e977c 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ Then apply the config: kubectl apply -f deploy/all.yaml ``` + ## Options * `dashboard` Runs the webserver for Fairwinds dashboard. @@ -29,3 +30,15 @@ kubectl apply -f deploy/all.yaml * `disable-webhook-config-installer`: disable the installer in the webhook server, so it won't install webhook configuration resources during bootstrapping * `kubeconfig`: Paths to a kubeconfig. Only required if out-of-cluster. * `master`: The address of the Kubernetes API server. Overrides any value in kubeconfig. Only required if out-of-cluster. + +## Helm Deploy Option + +* Create ImagePullSecret: +`kubectl -n fairwinds create secret docker-registry fairwinds --docker-server= --docker-username= --docker-password= --docker-email=` + +* Create release with Helm: +``` +helm upgrade --install fairwinds charts/fairwinds/ --namespace fairwinds --recreate-pods +kubectl port-forward --namespace fairwinds svc/fairwinds-fairwinds-dashboard 8080:80 & +open http://localhost:8080 +``` diff --git a/charts/fairwinds/templates/NOTES.txt b/charts/fairwinds/templates/NOTES.txt new file mode 100644 index 00000000..9c12a4a8 --- /dev/null +++ b/charts/fairwinds/templates/NOTES.txt @@ -0,0 +1,12 @@ +** Please be patient while the chart is being deployed ** + +Enjoy Fairwinds and smooth sailing! + +{{- if contains "ClusterIP" .Values.dashboard.service.type }} + +## To view the dashboard execute these commands: + +kubectl port-forward --namespace {{ .Release.Namespace }} svc/{{ template "fullname" . }}-dashboard 8080:80 & +open http://localhost:8080 + +{{- end }} diff --git a/charts/fairwinds/templates/fairwinds.configmap.yaml b/charts/fairwinds/templates/fairwinds.configmap.yaml new file mode 100644 index 00000000..74fe87f1 --- /dev/null +++ b/charts/fairwinds/templates/fairwinds.configmap.yaml @@ -0,0 +1,15 @@ +{{- if .Values.config -}} +--- +apiVersion: v1 +kind: ConfigMap +metadata: + labels: + app: '{{ template "fullname" . }}' + chart: '{{.Chart.Name}}-{{.Chart.Version}}' + heritage: '{{.Release.Service}}' + release: '{{.Release.Name}}' + name: '{{ template "fullname" . }}' + namespace: '{{.Release.Namespace}}' +data: + config.yml: {{- toYaml .Values.config | indent 2 -}} +{{ end }}