goldfish

by joaquinito2051

Helm chartv0.2.7App 0.9.0

A Helm chart for Goldfish - Vault UI

About this chart

Helm chart for GoldFish service

This Helm chart simplifies the deployment of goldfish on Kubernetes.

Pre-requisites

  • Requires (and tested with) vault 0.8.1 or above.

Vault

Alternately, use an existing Vault and provide an endpoint. For more information on how to install Vault, check here.

Chart Details

This chart will do the following:

  • Create a Kubernetes Deployment for goldfish
  • Expose goldfish on the specified hosts via ingress

Installing the Chart

To install the chart with the release name goldfish in the default namespace:

helm install -n goldfish .

helm install -n goldfish .

ParameterDescriptionDefault
NameNamecore
replicaCountNumber of replicas1
image.repositoryImage and registry namecaiyeon/goldfish
image.tagContainer image tag0.9.0
image.pullPolicyContainer image tagAlways
service.typek8s service typeClusterIP
service.externalPortexternal port80
service.internalPortpod-listened port8000
ingress.enabledEnable ingress usagefalse
ingress.hostsservice hostnamechart-example.local
config.*variables to generate config filesee values.yaml
secrets.*variables to be created as ENVsee values.yaml

Specify parameters using --set key=value[,key=value] argument to helm install

Specify parameters using `--set key=value[,key=value]` argument to `helm install`
helm install -n goldfish . --set \
  config.vault.address="http://vault:8200"

helm install -n goldfish . --set \

Alternatively a YAML file that specifies the values for the parameters can be provided like this:

$ helm install --name goldfish -f values.yaml .

$ helm install --name goldfish -f values.yaml .

Upgrading and Rollbacks

Refer to official docs on Upgrading a release and recovering on failure.

Use helm history to see previous releases

helm history goldfish

Use helm upgrade --reuse-values to keep previous secrets

helm upgrade --reuse-values goldfish .

Use helm get values to get current User Supplied values

helm get values goldfish

Use helm rollback [RELEASE] [REVISION] to roll back to previous release

helm rollback goldfish 1

helm history goldfish
REVISION        UPDATED                         STATUS          CHART                   DESCRIPTION
1               Thu Apr  6 16:25:13 2017        SUPERSEDED      goldfish-0.1.0        Install complete
2               Thu May  4 11:57:05 2017        SUPERSEDED      goldfish-0.1.0        Upgrade complete
3               Tue Jun  6 18:24:31 2017        SUPERSEDED      goldfish-0.1.0        Rollback to 1

Deploy goldfish with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has goldfish 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 chartgoldfish is pinned at v0.2.7 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