sophora-cluster-common

by subshell GmbH

Helm chartv1.8.5App 4Verified publisher

A Helm chart containing some common resources useful for Sophora cloud setups

About this chart

Sophora Cluster Common

This Helm chart contains resources that are useful for a Sophora cloud-installation in general and are not tied to one specific product.

The available resources in this chart are described in the following and are all optional and can be configured to one's needs.

Available Resources

PodDistruptionBudget for Cluster Servers

This will install a PodDisruptionBudget for the Sophora Cluster Servers (primary and replicas) to prevent situations where all servers are shut down simultaneously. The PDB for staging servers can be installed via the server Helm chart.

"LoadBalancer" for Cluster Servers

This is not actually a load balancer but rather a service and ingress definition always pointing to the primary Sophora server. Typically, this is used to create a deterministic endpoint that can be entered by users to log in to Sophora. To work out of the box, this requires that the Server Mode Labeler sidecar container of the servers is active (should be by default).

Alerts

This will install alerts that are not tied to one specific application but rather the general Sophora cluster state. Look into the alerting-runbook.md to see which alerts are available. Also check out the application's charts to see if there are application specific alerts available.

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override the name""
fullnameOverrideString to fully override the release name""

Cluster Server Loadbalancer

NameDescriptionValue
clusterServerLb.enabledwhether the service and ingress should be deployed or notfalse
clusterServerLb.namenames of the resourcescluster-server-lb
clusterServerLb.ingress.enabledwhether the ingress should be enabledtrue
clusterServerLb.ingress.ingressClassNamename of the ingressClass used for the ingress""
clusterServerLb.ingress.annotationsannotations for the ingress{}
clusterServerLb.ingress.hostsarray with hostnames used for the ingress[]
clusterServerLb.service.typeKubernetes service typeClusterIP
clusterServerLb.service.selectorLabels.sophora.cloud/applabels used to select the primary Sophora servercluster-server
clusterServerLb.service.selectorLabels.server.sophora.cloud/server-modelabels used to select the primary Sophora serverprimary
clusterServerLb.service.httpPortthe Sophora server's http port1196
clusterServerLb.service.jmsPortthe Sophora server's jms port1197
clusterServerLb.service.publishNotReadyAddresseswhether the service should publish not ready addressestrue

Cluster Server Pod Disruption Budget

NameDescriptionValue
podDisruptionBudget.enabledwhether the PDB should be installed or notfalse
podDisruptionBudget.namename of the PDBsophora-cluster-server
podDisruptionBudget.minAvailableminimum available replicas2
podDisruptionBudget.matchLabels.sophora.cloud/appselector label for the cluster serverscluster-server

Alerting / Prometheus Rules

NameDescriptionValue
prometheusRules.enabledWhether the alerts should be installedfalse
prometheusRules.defaultRulesEnabledWhether the default rules should be installedtrue
prometheusRules.rulesallows to add custom rules[]

Extra Deploy

NameDescriptionValue
extraDeployAllows to specify custom resources that should be deployed[]

Deploy sophora-cluster-common with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sophora-cluster-common 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 chartsophora-cluster-common is pinned at v1.8.5 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