statefulset

by AppsCode Inc.

Helm chartv0.0.1App v0.0.1Verified publisher

StatefulSet Operator by AppsCode

About this chart

StatefulSet Operator

StatefulSet Operator by AppsCode - StatefulSet Operator by AppsCode

TL;DR;

$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/statefulset --version=v0.0.1
$ helm upgrade -i statefulset appscode/statefulset -n kubeops --create-namespace --version=v0.0.1

Introduction

This chart deploys StatefulSet operator on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.21+

Installing the Chart

To install/upgrade the chart with the release name statefulset:

$ helm upgrade -i statefulset appscode/statefulset -n kubeops --create-namespace --version=v0.0.1

The command deploys StatefulSet operator on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the statefulset:

$ helm uninstall statefulset -n kubeops

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the statefulset chart and their default values.

ParameterDescriptionDefault
nameOverrideOverrides name template""
fullnameOverrideOverrides fullname template""
replicaCountNumber of stash operator replicas to create (only 1 is supported)1
registryFQDNDocker registry fqdn used to pull Stash related images. Set this to use docker registry hosted at ${registryFQDN}/${registry}/${image}ghcr.io
operator.registryDocker registry used to pull operator imageappscode
operator.repositoryName of operator container imagestatefulset
operator.tagOperator container image tag""
operator.resourcesCompute Resources required by the operator container{"requests":{"cpu":"100m"}}
operator.securityContextSecurity options this container should run with{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534}
rbacproxy.registryDocker registry used to pull operator imageappscode
rbacproxy.repositoryName of operator container imagekube-rbac-proxy
rbacproxy.tagOperator container image tagv0.11.0
rbacproxy.securityContextSecurity options this container should run with{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534}
cleaner.registryDocker registry used to pull Webhook cleaner imageappscode
cleaner.repositoryWebhook cleaner container imagekubectl-nonroot
cleaner.tagWebhook cleaner container image tagv1.24
cleaner.skipSkip generating cleaner YAMLfalse
cleaner.securityContextSecurity options this container should run with{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":65534}
imagePullSecretsSpecify an array of imagePullSecrets. Secrets must be manually created in the namespace. Example: helm template charts/stash \ --set imagePullSecrets[0].name=sec0 \ --set imagePullSecrets[1].name=sec1[]
imagePullPolicyContainer image pull policyIfNotPresent
criticalAddonIf true, installs Stash operator as critical addonfalse
logLevelLog level for operator3
annotationsAnnotations applied to operator deployment{}
podAnnotationsAnnotations passed to operator pod(s).{}
podLabelsLabels passed to operator pod(s){}
nodeSelectorNode labels for pod assignment{"kubernetes.io/os":"linux"}
tolerationsTolerations for pod assignment[]

Deploy statefulset with OpenTenant

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