Skip to content

Commit

Permalink
adding helm chart to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
EJ Etherington committed Apr 1, 2019
1 parent 6456c9c commit 52fa0b3
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Then apply the config:
kubectl apply -f deploy/all.yaml
```


## Options

* `dashboard` Runs the webserver for Fairwinds dashboard.
Expand All @@ -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
```
12 changes: 12 additions & 0 deletions charts/fairwinds/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 15 additions & 0 deletions charts/fairwinds/templates/fairwinds.configmap.yaml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 52fa0b3

Please sign in to comment.