gorse-manager
by zhenghaoz
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
| Name | Description | Value |
|---|---|---|
kubeVersion | Override Kubernetes version | "" |
nameOverride | String to partially override common.names.fullname | "" |
fullnameOverride | String to fully override common.names.fullname | "" |
commonLabels | Labels to add to all deployed objects | {} |
commonAnnotations | Annotations to add to all deployed objects | {} |
secretAnnotations | Annotations to add to secret | {} |
clusterDomain | Default Kubernetes cluster domain | cluster.local |
Gorse Manager Configuration
| Name | Description | Value |
|---|---|---|
database | URI used to connect Gorse manager to the database for user data. | "" |
service.type | WordPress service type | NodePort |
service.ports.http | WordPress service HTTP port | 8888 |
service.nodePorts.http | Node port for HTTP | "" |
service.sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
service.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
service.clusterIP | WordPress service Cluster IP | "" |
service.loadBalancerIP | WordPress service Load Balancer IP | "" |
service.loadBalancerSourceRanges | WordPress service Load Balancer sources | [] |
service.externalTrafficPolicy | WordPress service external traffic policy | Cluster |
service.annotations | Additional custom annotations for WordPress service | {} |
service.extraPorts | Extra port to expose on WordPress service | [] |
image.registry | Gorse image registry | docker.io |
image.repository | Gorse Manager image repository | zhenghaoz/gorse-manager |
image.tag | Gorse Manager image tag (immutable tags are recommended) | nightly |
image.digest | Gorse Manager image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag | "" |
image.pullPolicy | Gorse Manager image pull policy | IfNotPresent |
image.pullSecrets | Specify docker-registry secret names as an array | [] |
autoscaling.enabled | Enable replica autoscaling settings | false |
autoscaling.minReplicas | Minimum replicas for the pod autoscaling | 1 |
autoscaling.maxReplicas | Maximum replicas for the pod autoscaling | 11 |
autoscaling.targetCPU | Percentage of CPU to consider when autoscaling | "" |
autoscaling.targetMemory | Percentage of Memory to consider when autoscaling | "" |
podAffinityPreset | Pod affinity preset. Ignored if server.affinity is set. Allowed values: soft or hard | "" |
podAntiAffinityPreset | Pod anti-affinity preset. Ignored if server.affinity is set. Allowed values: soft or hard | soft |
nodeAffinityPreset.type | Node affinity preset type. Ignored if server.affinity is set. Allowed values: soft or hard | "" |
nodeAffinityPreset.key | Node label key to match. Ignored if server.affinity is set | "" |
nodeAffinityPreset.values | Node label values to match. Ignored if server.affinity is set | [] |
affinity | Affinity for Gorse server pods assignment | {} |
nodeSelector | Node labels for Gorse server pods assignment | {} |
tolerations | Tolerations for Gorse server pods assignment | [] |
MongoDB® Parameters
| Name | Description | Value |
|---|---|---|
mongodb.enabled | Switch to enable or disable the MongoDB helm chart | true |
mongodb.auth.enabled | Enable authentication | false |
mongodb.auth.rootPassword | MongoDB(®) root password | "" |
mongodb.architecture | MongoDB(®) architecture (standalone`` or replicaset`) | standalone |
MySQL Parameters
| Name | Description | Value |
|---|---|---|
mysql.enabled | Switch to enable or disable the MySQL helm chart | true |
mysql.auth.rootPassword | Password for the root user. Ignored if existing secret is provided | "" |
mysql.auth.database | Name for a custom database to create | gorse |
mysql.auth.username | Name for a custom user to create | "" |
mysql.auth.password | Password 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgorse-manager is pinned at v0.4.0-alpha.1 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