adding helm chart to readme

This commit is contained in:
EJ Etherington
2019-03-22 16:50:12 -07:00
parent 6456c9c28c
commit 52fa0b3eb1
3 changed files with 40 additions and 0 deletions

View File

@@ -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_registry> --docker-username=<docker_username> --docker-password=<docker_password> --docker-email=<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
```

View File

@@ -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 }}

View File

@@ -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 }}