ocean-admission-controller

by Spot by NetApp

Helm chartv1.0.3App 0.1.6

A Kubernetes admission controller for pod defaulting and validation

About this chart

ocean-admission-controller

A Kubernetes admission controller for pod defaulting and validation.

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-admission-controller:
helm install my-release spot/ocean-admission-controller

Requirements

Kubernetes: >=1.22.0-0

Values

KeyTypeDefaultDescription
controller.affinityobject{}Affinity rules for the admission controller pod
controller.certDirstring"/etc/certs"Directory where TLS certificates are mounted for the webhook server
controller.certGen.affinityobject{}Affinity rules for the certgen pod
controller.certGen.envobject{}Additional environment variables to be added to the certgen container. Format is KEY: Value format
controller.certGen.image.pullPolicystring"Always"The pull policy for the certgen image. Recommend not changing this
controller.certGen.image.repositorystring"registry.k8s.io/ingress-nginx/kube-webhook-certgen"An image that contains certgen for creating certificates. Only used if controller.generateCertificate is true
controller.certGen.image.tagstring"v1.4.4"An image tag for the controller.certGen.image.repository image. Only used if controller.generateCertificate is true
controller.certGen.nodeSelectorobject{}Node selector for the certgen pod
controller.certGen.resourcesobject{}The resources block for the certgen pod
controller.certGen.securityContextobject{}The securityContext block for the certgen pod
controller.certGen.tolerationslist[]Tolerations for the certgen pod
controller.configMapobject{"create":true,"name":""}ConfigMap configuration for the admission controller
controller.configMap.createbooltrueWhether to create a ConfigMap for the admission controller
controller.configMap.namestring""Name of the ConfigMap. If empty, uses the default name
controller.generateCertificatebooltrueIf true and controller is enabled, a pre-install hook will run to create the certificate for the controller
controller.hostNetworkbooltrueUse the host network for the admission controller pod
controller.httpPortint8080Port of the admission controller for the mutating webhooks
controller.image.pullPolicystring"Always"The pull policy for the admission controller image. Recommend not changing this
controller.image.repositorystring"gcr.io/spotit-today/spot-ocean-admission-controller"The location of the vpa admission controller image
controller.image.tagstring"0.1.6"Overrides the image tag whose default is the chart appVersion
controller.leaderElectionboolfalseEnable Kubernetes leader election for high availability setups
controller.metricsAddrstring":8082"Address the controller binds to for Prometheus metrics
controller.mutatingWebhookConfiguration.admissionReviewVersionslist["v1","v1beta1"]List of admission review versions
controller.mutatingWebhookConfiguration.annotationsobject{}Additional annotations for the MutatingWebhookConfiguration. Can be used for integration with cert-manager
controller.mutatingWebhookConfiguration.sideEffectsstring"None"Side effects for webhook (None, NoneOnDryRun)
controller.mutatingWebhookConfiguration.timeoutSecondsint30Timeout for webhook calls in seconds
controller.nodeSelectorobject{}Node selector for the admission controller pod
controller.podAnnotationsobject{}Annotations to add to the admission controller pod
controller.podDiskTypeNodeSelectorDefaulterobject{"enable":true}Pod Node Affinity Defaulter configuration for GKE
controller.podDiskTypeNodeSelectorDefaulter.enablebooltrueEnable the Pod Disk Type Node Selector Defaulter for GKE
controller.podLabelsobject{}Labels to add to the admission controller pod
controller.podSecurityContextobject{"runAsNonRoot":true,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}The security context for the admission controller pod
controller.podTolerationDefaulterobject{"enable":false}Pod Toleration Defaulter configuration for AKS
controller.podTolerationDefaulter.enableboolfalseEnable the Pod Toleration Defaulter for AKS
controller.replicaCountint1Number of replicas for the admission controller
controller.resourcesobject{"limits":{"memory":"500Mi"},"requests":{"cpu":"50m","memory":"200Mi"}}The resources block for the admission controller pod
controller.secret.certNamestring"cert.pem"
controller.secret.keyNamestring"key.pem"
controller.secretDelete.image.pullPolicystring"IfNotPresent"Pull policy for the secret-delete image.
controller.secretDelete.image.repositorystring"bitnami/kubectl"kubectl image for the post-delete cleanup job. Override with a private registry mirror for air-gapped / network-isolated clusters.
controller.secretDelete.image.tagstring"latest"Image tag. Override with a specific version from your private registry for air-gapped clusters.
controller.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"seccompProfile":{"type":"RuntimeDefault"}}The security context for the admission controller manager container
controller.tlsSecretNamestring""
controller.tolerationslist[]Tolerations for the admission controller pod
fullnameOverridestring"admission-controller"A template override for the fullname
imagePullSecretslist[]A list of image pull secrets to be used for all pods
nameOverridestring""A template override for the name
priorityClassNamestring""To set the priorityclass for all pods
serviceAccount.annotationsobject{}Annotations to add to the service accounts for each component
serviceAccount.createbooltrueSpecifies whether a service account should be created for each component
serviceAccount.namestring""The base name of the service account to use (appended with the component). If not set and create is true, a name is generated using the fullname template and appended for each component

Autogenerated from chart metadata using helm-docs v1.13.1

Deploy ocean-admission-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-admission-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-admission-controller is pinned at v1.0.3 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