mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-05-08 10:16:43 +00:00
b30ebf1cf4e2f41f55eceee4b5891236dd0966a1
Build locally
git clone https://github.com/reactiveops/fairwinds $GOPATH/src/github.com/reactiveops/fairwinds
go build -a -o fairwinds *.go
./fairwinds -h
Run on-cluster
On GKE, you'll need to run the following command first:
kubectl create clusterrolebinding cluster-admin-binding \
--clusterrole cluster-admin \
--user $(gcloud config get-value account)
Then apply the config:
kubectl apply -f deploy/all.yaml
Options
dashboardRuns the webserver for Fairwinds dashboard.dashboard-port: Port for the dashboard webserver (default 8080)webhook: Runs the webhook webserver.webhook-port: Port for the webhook webserver (default 9876)disable-webhook-config-installer: disable the installer in the webhook server, so it won't install webhook configuration resources during bootstrappingkubeconfig: 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 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
Run tests
go list ./ | grep -v vendor | xargs golint -set_exit_status
go list ./ | grep -v vendor | xargs go vet
go test ./pkg/... -v -coverprofile cover.out
Description
Languages
Go
93.5%
CSS
3.1%
Shell
2.4%
JavaScript
0.7%
Dockerfile
0.3%