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

NameDescriptionValue
app.image.tagSwitcher GitOps Image taglatest
app.service.portApp Service port8000
NameDescriptionValue
api.env.sslEnabledAPI SSL Enabledfalse
api.env.sslSecretNameAPI SSL Secret Name (enable HTTPS)``
app.env.switcherCertPathAPI SSL Cert Path``
app.env.switcherKeyPathAPI SSL Key Path``
app.env.gitTokenPrivateKeyGit Token Private Key``
app.env.switcherApiJwtSecretSwitcher API JWT Secret``
app.env.switcherAPIUrlSwitcher API URL``
app.env.switcherApiCACertSwitcher API SSL CA Cert Path``
app.env.mongoUriAPI Database URI< see values.yml >
app.env.mongoDbAPI Database Nameswitcher-gitops
app.env.handlerWaitingTimeHandler Waiting Time1m
app.env.gitUserGit Userswitcher-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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartswitcher-gitops is pinned at v1.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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