switcher-gitops
by Switcher API
Helm chartv1.0.3App latestVerified publisher
A Switcher GitOps Helm chart for Kubernetes
About this chart
Switcher GitOps Helm Charts
Deploy Switcher GitOps using switcherapi/switcher-gitops Helm Charts.
Usage
Install Switcher GitOps
helm repo add switcherapi https://switcherapi.github.io/helm-charts
helm install switchergitops switcherapi/switcher-gitops \
--namespace=switcherapi --create-namespace \
--set app.env.switcherAPIUrl="" \
--set app.env.switcherApiJwtSecret="" \
--set app.env.gitTokenPrivateKey=""
Uninstall Switcher GitOps
helm uninstall switchergitops --namespace switcherapi
App parameters
| Name | Description | Value |
|---|---|---|
app.image.tag | Switcher GitOps Image tag | latest |
app.service.port | App Service port | 8000 |
| Name | Description | Value |
|---|---|---|
api.env.sslEnabled | API SSL Enabled | false |
api.env.sslSecretName | API SSL Secret Name (enable HTTPS) | `` |
app.env.switcherCertPath | API SSL Cert Path | `` |
app.env.switcherKeyPath | API SSL Key Path | `` |
app.env.gitTokenPrivateKey | Git Token Private Key | `` |
app.env.switcherApiJwtSecret | Switcher API JWT Secret | `` |
app.env.switcherAPIUrl | Switcher API URL | `` |
app.env.switcherApiCACert | Switcher API SSL CA Cert Path | `` |
app.env.mongoUri | API Database URI | < see values.yml > |
app.env.mongoDb | API Database Name | switcher-gitops |
app.env.handlerWaitingTime | Handler Waiting Time | 1m |
app.env.gitUser | Git User | switcher-gitops |
Local
Validate Chart from local Values
helm install -f charts/switcher-gitops/values.yaml switchergitops ./charts/switcher-gitops/ \
--namespace=switcherapi --create-namespace \
--set app.env.switcherApiJwtSecret="[CHANGE_ME]" \
--set app.env.gitTokenPrivateKey="[CHANGE_ME]"
Deploy switcher-gitops with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has switcher-gitops on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartswitcher-gitops is pinned at v1.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply