mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-19 07:37:44 +00:00
adding helm chart to readme
This commit is contained in:
13
README.md
13
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_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
charts/fairwinds/templates/NOTES.txt
Normal file
12
charts/fairwinds/templates/NOTES.txt
Normal 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 }}
|
||||
15
charts/fairwinds/templates/fairwinds.configmap.yaml
Normal file
15
charts/fairwinds/templates/fairwinds.configmap.yaml
Normal 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 }}
|
||||
Reference in New Issue
Block a user