gorse-manager

by zhenghaoz

Helm chartv0.4.0-alpha.1App 0.4.0

Gorse Cloud Manager for Kubernetes

About this chart

Gorse Manager Helm Chart

Gorse Manager provides a cloud native solution to browse, deploy and manage the lifecycle of Gorse instances on a Kubernetes cluster.

Install

This following steps walk you through the process of deploying Gorse Manager for your cluster.

Step 1: Install Gorse Manager

Use the official Gorse Manager chart to install the latest version:

helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add gorse-io https://charts.gorse.io
helm upgrade --name my-release \
  --namespace gorse --create-namespace \
  --install gorse-io/gorse-manager --devel

For detailed information on installing, configuring and upgrading Gorse Manager, check out the chart README.

The above commands deploy Gorse Manager into the gorse namespace in your cluster. It may take a few minutes to run. Once it has been deployed and the Gorse Manager pods are running, continue to step 2.

Step 2: Create a Demo Credential to Access Kubernetes

To try out Gorse Manager for personal learning, we can create a Kubernetes service account and use that API token to authenticate with the Kubernetes API server via Gorse Manager:

kubectl create --namespace default serviceaccount gorse-manager
kubectl create clusterrolebinding gorse-manager \
  --clusterrole=cluster-admin \
  --serviceaccount=default:gorse-manager

Step 3: Start the Gorse Manager Dashboard

Once Gorse Manager is installed, securely access the Gorse Manager Dashboard from your system by running:

kubectl port-forward -n gorse svc/gorse-manager 8888:8888

This starts an HTTP proxy for secure access to the Gorse Manager Dashboard. Visit http://127.0.0.1:8888/ in your preferred web browser to open the Dashboard.

Parameters

Global parameters

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
secretAnnotationsAnnotations to add to secret{}
clusterDomainDefault Kubernetes cluster domaincluster.local

Gorse Manager Configuration

NameDescriptionValue
databaseURI used to connect Gorse manager to the database for user data.""
service.typeWordPress service typeNodePort
service.ports.httpWordPress service HTTP port8888
service.nodePorts.httpNode port for HTTP""
service.sessionAffinityControl where client requests go, to the same pod or round-robinNone
service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
service.clusterIPWordPress service Cluster IP""
service.loadBalancerIPWordPress service Load Balancer IP""
service.loadBalancerSourceRangesWordPress service Load Balancer sources[]
service.externalTrafficPolicyWordPress service external traffic policyCluster
service.annotationsAdditional custom annotations for WordPress service{}
service.extraPortsExtra port to expose on WordPress service[]
image.registryGorse image registrydocker.io
image.repositoryGorse Manager image repositoryzhenghaoz/gorse-manager
image.tagGorse Manager image tag (immutable tags are recommended)nightly
image.digestGorse Manager image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyGorse Manager image pull policyIfNotPresent
image.pullSecretsSpecify docker-registry secret names as an array[]
autoscaling.enabledEnable replica autoscaling settingsfalse
autoscaling.minReplicasMinimum replicas for the pod autoscaling1
autoscaling.maxReplicasMaximum replicas for the pod autoscaling11
autoscaling.targetCPUPercentage of CPU to consider when autoscaling""
autoscaling.targetMemoryPercentage of Memory to consider when autoscaling""
podAffinityPresetPod affinity preset. Ignored if server.affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if server.affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if server.affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if server.affinity is set""
nodeAffinityPreset.valuesNode label values to match. Ignored if server.affinity is set[]
affinityAffinity for Gorse server pods assignment{}
nodeSelectorNode labels for Gorse server pods assignment{}
tolerationsTolerations for Gorse server pods assignment[]

MongoDB® Parameters

NameDescriptionValue
mongodb.enabledSwitch to enable or disable the MongoDB helm charttrue
mongodb.auth.enabledEnable authenticationfalse
mongodb.auth.rootPasswordMongoDB(®) root password""
mongodb.architectureMongoDB(®) architecture (standalone`` or replicaset`)standalone

MySQL Parameters

NameDescriptionValue
mysql.enabledSwitch to enable or disable the MySQL helm charttrue
mysql.auth.rootPasswordPassword for the root user. Ignored if existing secret is provided""
mysql.auth.databaseName for a custom database to creategorse
mysql.auth.usernameName for a custom user to create""
mysql.auth.passwordPassword for the new user. Ignored if existing secret is provided""

Deploy gorse-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has gorse-manager 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 chartgorse-manager is pinned at v0.4.0-alpha.1 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