spotinst-kubernetes-cluster-controller

by joaquinito2051

Helm chartv1.0.124App 1.0.101

A Helm chart for Ocean Controller

About this chart

spotinst-kubernetes-cluster-controller

A Helm chart for Ocean Controller.

Installation

  1. Add the Spot Helm chart repository:
helm repo add spotinst https://spotinst.github.io/spotinst-kubernetes-helm-charts
  1. Update your local Helm chart repository cache:
helm repo update
  1. Install spotinst-kubernetes-cluster-controller:
helm install my-release spotinst/spotinst-kubernetes-cluster-controller \
  --set spotinst.token=REDACTED \
  --set spotinst.account=REDACTED \
  --set spotinst.clusterIdentifier=REDACTED \
  # [...]

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

Requirements

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

Values

KeyTypeDefaultDescription
affinity.nodeAffinityobject{"preferredDuringSchedulingIgnoredDuringExecution":[{"preference":{"matchExpressions":[{"key":"node-role.kubernetes.io/master","operator":"Exists"}]},"weight":100}],"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"kubernetes.io/os","operator":"NotIn","values":["windows"]}]}]}}Node affinity. (Optional)
affinity.podAntiAffinityobject{"preferredDuringSchedulingIgnoredDuringExecution":[{"podAffinityTerm":{"labelSelector":{"matchExpressions":[{"key":"k8s-app","operator":"In","values":["spotinst-kubernetes-cluster-controller"]}]},"topologyKey":"kubernetes.io/hostname"},"weight":50}]}Pod anti-affinity. (Optional)
aksConnector.acdIdentifierstring""Unique identifier used by the Ocean AKS Connector when (Optional) importing an AKS cluster.
aksConnector.enabledbooltrueControls whether the Ocean AKS Connector should be deployed (Optional) (requires a valid aksConnector.acdIdentifier).
aksConnector.image.pullPolicystring"Always"Image pull policy. (Optional)
aksConnector.image.pullSecretslist[]Image pull secrets. (Optional)
aksConnector.image.repositorystring"spotinst/ocean-aks-connector:1.0.8"Image repository. (Optional)
aksConnector.jobNamestring"spotinst-kubernetes-cluster-controller-aks-connector"Job name. (Optional)
aksConnector.nodeSelectorobject{"kubernetes.azure.com/mode":"system"}Node selection constraints. (Optional) Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector
aksConnector.resourcesobject{}Resource requests and limits. (Optional) Ref: http://kubernetes.io/docs/user-guide/compute-resources/
aksConnector.tolerationslist[{"key":"CriticalAddonsOnly","operator":"Exists"}]Tolerations for nodes that have taints on them. (Optional) Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
caBundleSecret.namestring"spotinst-kubernetes-cluster-controller-ca-bundle"Secret name. (Optional)
configMap.createbooltrueControls whether a ConfigMap should be created. (Optional)
configMap.namestring"spotinst-kubernetes-cluster-controller-config"ConfigMap name. (Optional)
deploymentAnnotationsobject{}Annotations for ocean-controller deployment (Optional)
deploymentEnvlist[]Additional environment variables for ocean-controller deployment (Optional) Should contain name and value for each element
dnsConfigobject{}DNS config. (Optional) Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
dnsPolicystring"Default"DNS policy. (Optional) Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
image.pullPolicystring"Always"Image pull policy. (Optional)
image.pullSecretslist[]Image pull secrets. (Optional)
image.repositorystring"gcr.io/spotinst-artifacts/kubernetes-cluster-controller"Image repository. (Optional)
metrics-server.argslist["--logtostderr"]Arguments to pass to metrics-server on start up. (Optional)
metrics-server.deployChartbooltrueSpecifies whether the metrics-server chart should be deployed. (Optional)
namespacestring"kube-system"Default namespace. (Optional)
replicasint1configure the amount of replicas for the controller (Optional)
resourcesobject{}Resource requests and limits. (Optional) Ref: http://kubernetes.io/docs/user-guide/compute-resources/
secret.createbooltrueControls whether a Secret should be created. (Optional)
secret.enabledboolfalseUse a Secret instead of a ConfigMap to store credentials. Disabled for backward compatibility. (Optional)
secret.namestring"spotinst-kubernetes-cluster-controller"Secret name. (Optional)
serviceAccount.createbooltrueControls whether a ServiceAccount should be created. (Optional)
serviceAccount.namestring"spotinst-kubernetes-cluster-controller"Service account name. (Optional)
spotinst.accountstring""Spot Account. (Required) Ref: https://docs.spot.io/administration/organizations?id=account
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.enableCsrApprovalboolfalseEnable CSR approval. (Optional)
spotinst.proxyUrlstring""Proxy URL. (Optional)
spotinst.tokenstring""Spot Token. (Required) Ref: https://docs.spot.io/administration/api/create-api-token
tolerationslist[{"effect":"NoExecute","key":"node.kubernetes.io/not-ready","operator":"Exists","tolerationSeconds":150},{"effect":"NoExecute","key":"node.kubernetes.io/unreachable","operator":"Exists","tolerationSeconds":150},{"key":"node-role.kubernetes.io/master","operator":"Exists"},{"key":"node-role.kubernetes.io/control-plane","operator":"Exists"},{"key":"CriticalAddonsOnly","operator":"Exists"}]Tolerations for nodes that have taints on them. (Optional) Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

Documentation

If you're new to Spot and want to get started, please check out our Getting Started guide, available on the Spot Documentation website.

Getting Help

We use GitHub issues for tracking bugs and feature requests. Please use these community resources for getting help:

Community

License

Code is licensed under the Apache License 2.0.


Autogenerated from chart metadata using helm-docs v1.12.0

Deploy spotinst-kubernetes-cluster-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spotinst-kubernetes-cluster-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 chartspotinst-kubernetes-cluster-controller is pinned at v1.0.124 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