ocean-kubernetes-controller
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
- Add the Spot Helm chart repository:
helm repo add spot https://charts.spot.io
- Update your local Helm chart repository cache:
helm repo update
- 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
setcommand line argument or avalues.yamlfile.
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
| Repository | Name | Version |
|---|---|---|
| https://kubernetes-sigs.github.io/metrics-server | metrics-server | 3.13.0 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | string | nil | |
| args | list | [] | |
| autoUpdate.image | object | {"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.pullPolicy | string | "Always" | Image pull policy. (Optional) |
| autoUpdate.image.repository | string | "us-docker.pkg.dev/spotit-today/container-labs/auto-updater" | Image repository. (Optional) |
| autoUpdate.image.tag | string | "latest" | Overrides the image tag. (Optional) |
| autoUpdate.imagePullSecrets | list | [] | Image pull secrets. (Optional) |
| autoUpdate.podSecurityContext | object | {"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.priorityClassName | string | "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.resources | object | {"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.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true} | Security Context for the auto-updater container. (Optional) |
| autoUpdate.serviceAccount.annotations | object | {} | |
| autoUpdate.serviceAccount.create | bool | true | |
| autoUpdate.serviceAccount.name | string | "" | |
| caBundleSecret.create | bool | false | Controls whether a CA bundle secret should be created. |
| caBundleSecret.data | string | "" | Must contain the CA bundle data in case caBundleSecret.create is true. For example by using --set caBundleSecret.data="$(cat ./ca.pem)" |
| caBundleSecret.key | string | "userEnvCertificates.pem" | Key inside the secret to inject the CA bundle from |
| caBundleSecret.name | string | "" | CA bundle Secret name. (Optional) |
| command | list | [] | |
| commonLabels | object | {} | |
| configMap.create | bool | true | |
| configMap.name | string | "" | ConfigMap name. (Optional) |
| deploymentAnnotations | object | {} | |
| extraEnv | list | [] | |
| extraVolumeMounts | list | [] | |
| extraVolumes | list | [] | |
| fullnameOverride | string | "" | |
| image.fips | bool | false | Set 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.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "us-docker.pkg.dev/spotit-today/container-labs/spotinst-kubernetes-controller" | |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | |
| initContainers | list | [] | |
| livenessProbe.httpGet.path | string | "/healthz" | |
| livenessProbe.httpGet.port | string | "readiness" | |
| livenessProbe.initialDelaySeconds | int | 15 | |
| livenessProbe.periodSeconds | int | 20 | |
| logShipping | object | {"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.command | list | ["/fluent-bit/bin/fluent-bit","-c","/tmp/fluent-bit.conf","-q"] | Log shipping container command. (Optional) |
| logShipping.destination | object | {"host":"api.spotinst.io","port":443,"tls":true} | Log shipping destination configuration. |
| logShipping.enabled | bool | true | Specifies whether to send the controller logs to Spot for analysis. (Optional) |
| logShipping.image.pullPolicy | string | "IfNotPresent" | Image pull policy. (Optional) |
| logShipping.image.repository | string | "ghcr.io/fluent/fluent-bit" | Image repository. (Optional) |
| logShipping.image.tag | string | "4.1.1" | Overrides the image tag. (Optional) |
| logShipping.securityContext | object | {"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true} | Log Shipping container security context |
| metrics-server.deployChart | bool | true | Specifies whether the metrics-server chart should be deployed. (Optional) |
| metrics-server.image.pullPolicy | string | "IfNotPresent" | |
| metrics-server.image.repository | string | "registry.k8s.io/metrics-server/metrics-server" | |
| metrics-server.image.tag | string | "" | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| podSecurityContext.fsGroup | int | 1000690000 | |
| podSecurityContext.runAsGroup | int | 1000690000 | |
| podSecurityContext.runAsNonRoot | bool | true | |
| podSecurityContext.runAsUser | int | 1000690000 | |
| priorityClassName | string | "system-node-critical" | Priority class name for the controller pod. |
| readinessProbe.httpGet.path | string | "/readyz" | |
| readinessProbe.httpGet.port | string | "readiness" | |
| readinessProbe.initialDelaySeconds | int | 5 | |
| readinessProbe.periodSeconds | int | 10 | |
| replicas | int | 2 | Configure the amount of replicas for the controller (Optional) |
| resourceQuota | object | {"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/ |
| resources | object | {} | |
| schedulerName | string | "" | |
| secret.create | bool | true | Controls whether a Secret should be created. (Optional) |
| secret.name | string | "" | Secret name. (Optional) |
| securityContext.allowPrivilegeEscalation | bool | false | |
| securityContext.capabilities.drop[0] | string | "ALL" | |
| securityContext.readOnlyRootFilesystem | bool | true | |
| securityContext.runAsNonRoot | bool | true | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| spotinst.account | string | "" | Spot Account ID. (Required) Example: act-123abcd |
| spotinst.baseUrl | string | "" | Base URL. (Optional) |
| spotinst.clusterIdentifier | string | "" | 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.disableAutoUpdate | bool | false | Disable auto update. (Optional) |
| spotinst.disableAutomaticRightSizing | bool | false | Disable automatic RightSizing. (Optional) |
| spotinst.enableCsrApproval | bool | true | Enable CSR approval. (Optional) |
| spotinst.insecureSkipTLSVerify | bool | false | Disable TLS certificate validation. (Optional) |
| spotinst.proxyUrl | string | "" | Proxy URL. (Optional) |
| spotinst.readonly | bool | false | Sets the controller to read-only mode, removing write permissions and disabling autoscaling. (Optional) |
| spotinst.token | string | "" | Spot Token. (Required) Ref: https://docs.spot.io/administration/api/create-api-token |
| tolerations | string | nil | Tolerations for nodes that have taints on them. (Optional) Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ |
| topologySpreadConstraints | string | nil | |
| updateStrategy | object | {} |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- 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.
- 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