ocean-kubernetes-controller

by Spot by NetApp

Helm chartv0.1.79-beta.2App 2.3.2

A Helm chart for Ocean Kubernetes Controller

About this chart

ocean-kubernetes-controller

A Helm chart for Ocean Kubernetes Controller.

Installation

  1. Add the Spot Helm chart repository:
helm repo add spot https://charts.spot.io
  1. Update your local Helm chart repository cache:
helm repo update
  1. Install ocean-kubernetes-controller:
helm install spot spot/ocean-kubernetes-controller \
  --set spotinst.account=$SPOTINST_ACCOUNT \
  --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \
  --set spotinst.token=$SPOTINST_TOKEN

NOTE: Please configure all required chart values using the set command line argument or a values.yaml file.

Installation With HTTPS Proxy

In case you need to configure a proxy with a custom CA bundle you should use the following:

helm install spot spot/ocean-kubernetes-controller \
  --set spotinst.account=$SPOTINST_ACCOUNT \
  --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \
  --set spotinst.token=$SPOTINST_TOKEN \
  --set spotinst.proxyUrl=$SPOTINST_PROXY_URL \
  --set caBundleSecret.create=true \
  --set caBundleSecret.data="$(cat ./path/to/ca.pem)"

If you already have a CA bundle secret you can instead use:

helm install spot spot/ocean-kubernetes-controller \
  --set spotinst.account=$SPOTINST_ACCOUNT \
  --set spotinst.clusterIdentifier=$SPOTINST_CLUSTER_IDENTIFIER \
  --set spotinst.token=$SPOTINST_TOKEN \
  --set spotinst.proxyUrl=$SPOTINST_PROXY_URL \
  --set caBundleSecret.name=my-ca-bundle-secret \
  --set caBundleSecret.key=bundle.pem

Requirements

Kubernetes: >=1.20.0-0

RepositoryNameVersion
https://kubernetes-sigs.github.io/metrics-servermetrics-server3.13.0

Values

KeyTypeDefaultDescription
affinitystringnil
argslist[]
autoUpdate.imageobject{"pullPolicy":"Always","repository":"us-docker.pkg.dev/spotit-today/container-labs/auto-updater","tag":"latest"}Configures the image for the auto-updater job. (Optional)
autoUpdate.image.pullPolicystring"Always"Image pull policy. (Optional)
autoUpdate.image.repositorystring"us-docker.pkg.dev/spotit-today/container-labs/auto-updater"Image repository. (Optional)
autoUpdate.image.tagstring"latest"Overrides the image tag. (Optional)
autoUpdate.imagePullSecretslist[]Image pull secrets. (Optional)
autoUpdate.podSecurityContextobject{"fsGroup":1000690000,"runAsGroup":1000690000,"runAsNonRoot":true,"runAsUser":1000690000}Pod Security Context for the auto-updater job. (Optional) Ref: https://kubernetes.io/docs/concepts/security/pod-security-standards/
autoUpdate.priorityClassNamestring"system-cluster-critical"Priority class name for the auto-updater job. Defaults to the same priority class as the controller to prevent eviction. (Optional)
autoUpdate.resourcesobject{"limits":{"cpu":"100m","memory":"256Mi"},"requests":{"cpu":"100m","memory":"256Mi"}}Resource requests and limits for the auto-updater job. Defaults to 100m CPU and 256Mi memory to make the job run with 'Guranteed' QoS. (Optional)
autoUpdate.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true}Security Context for the auto-updater container. (Optional)
autoUpdate.serviceAccount.annotationsobject{}
autoUpdate.serviceAccount.createbooltrue
autoUpdate.serviceAccount.namestring""
caBundleSecret.createboolfalseControls whether a CA bundle secret should be created.
caBundleSecret.datastring""Must contain the CA bundle data in case caBundleSecret.create is true. For example by using --set caBundleSecret.data="$(cat ./ca.pem)"
caBundleSecret.keystring"userEnvCertificates.pem"Key inside the secret to inject the CA bundle from
caBundleSecret.namestring""CA bundle Secret name. (Optional)
commandlist[]
commonLabelsobject{}
configMap.createbooltrue
configMap.namestring""ConfigMap name. (Optional)
deploymentAnnotationsobject{}
extraEnvlist[]
extraVolumeMountslist[]
extraVolumeslist[]
fullnameOverridestring""
image.fipsboolfalseSet to true to use an FIPS-140 compliant image. This flag adds -fips suffix to the image tag, therefore it should not be used together with the --image.tag flag. Ref: https://go.dev/doc/security/fips140
image.pullPolicystring"IfNotPresent"
image.repositorystring"us-docker.pkg.dev/spotit-today/container-labs/spotinst-kubernetes-controller"
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]
initContainerslist[]
livenessProbe.httpGet.pathstring"/healthz"
livenessProbe.httpGet.portstring"readiness"
livenessProbe.initialDelaySecondsint15
livenessProbe.periodSecondsint20
logShippingobject{"command":["/fluent-bit/bin/fluent-bit","-c","/tmp/fluent-bit.conf","-q"],"destination":{"host":"api.spotinst.io","port":443,"tls":true},"enabled":true,"extraEnv":[],"extraVolumeMounts":[],"image":{"pullPolicy":"IfNotPresent","repository":"ghcr.io/fluent/fluent-bit","tag":"4.1.1"},"securityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true}}Log Shipping configuration.
logShipping.commandlist["/fluent-bit/bin/fluent-bit","-c","/tmp/fluent-bit.conf","-q"]Log shipping container command. (Optional)
logShipping.destinationobject{"host":"api.spotinst.io","port":443,"tls":true}Log shipping destination configuration.
logShipping.enabledbooltrueSpecifies whether to send the controller logs to Spot for analysis. (Optional)
logShipping.image.pullPolicystring"IfNotPresent"Image pull policy. (Optional)
logShipping.image.repositorystring"ghcr.io/fluent/fluent-bit"Image repository. (Optional)
logShipping.image.tagstring"4.1.1"Overrides the image tag. (Optional)
logShipping.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true}Log Shipping container security context
metrics-server.deployChartbooltrueSpecifies whether the metrics-server chart should be deployed. (Optional)
metrics-server.image.pullPolicystring"IfNotPresent"
metrics-server.image.repositorystring"registry.k8s.io/metrics-server/metrics-server"
metrics-server.image.tagstring""
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podLabelsobject{}
podSecurityContext.fsGroupint1000690000
podSecurityContext.runAsGroupint1000690000
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint1000690000
priorityClassNamestring"system-node-critical"Priority class name for the controller pod.
readinessProbe.httpGet.pathstring"/readyz"
readinessProbe.httpGet.portstring"readiness"
readinessProbe.initialDelaySecondsint5
readinessProbe.periodSecondsint10
replicasint2Configure the amount of replicas for the controller (Optional)
resourceQuotaobject{"enabled":true}Resource Quota configuration. Required when running in a namespace other than kube-system in GKE. Ref: https://kubernetes.io/docs/concepts/policy/resource-quotas/
resourcesobject{}
schedulerNamestring""
secret.createbooltrueControls whether a Secret should be created. (Optional)
secret.namestring""Secret name. (Optional)
securityContext.allowPrivilegeEscalationboolfalse
securityContext.capabilities.drop[0]string"ALL"
securityContext.readOnlyRootFilesystembooltrue
securityContext.runAsNonRootbooltrue
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
spotinst.accountstring""Spot Account ID. (Required) Example: act-123abcd
spotinst.baseUrlstring""Base URL. (Optional)
spotinst.clusterIdentifierstring""Unique identifier used by the Ocean Controller to connect (Required) between the Ocean backend and the Kubernetes cluster. Ref: https://docs.spot.io/ocean/tutorials/spot-kubernetes-controller/
spotinst.disableAutoUpdateboolfalseDisable auto update. (Optional)
spotinst.disableAutomaticRightSizingboolfalseDisable automatic RightSizing. (Optional)
spotinst.enableCsrApprovalbooltrueEnable CSR approval. (Optional)
spotinst.insecureSkipTLSVerifyboolfalseDisable TLS certificate validation. (Optional)
spotinst.proxyUrlstring""Proxy URL. (Optional)
spotinst.readonlyboolfalseSets the controller to read-only mode, removing write permissions and disabling autoscaling. (Optional)
spotinst.tokenstring""Spot Token. (Required) Ref: https://docs.spot.io/administration/api/create-api-token
tolerationsstringnilTolerations for nodes that have taints on them. (Optional) Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
topologySpreadConstraintsstringnil
updateStrategyobject{}

Autogenerated from chart metadata using helm-docs v1.13.1

Deploy ocean-kubernetes-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ocean-kubernetes-controller 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 chartocean-kubernetes-controller is pinned at v0.1.79-beta.2 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