kubeservice-namespace-node-affinity

by kubeservice-stack

Helm chartv1.1.2App 1.0.1Verified publisher

A Helm chart for Kubernetes

About this chart

Kubeservice Namespace Node Affinity

Kubeservice Namespace Node Affinity is Kubernetes Mutating Webhook for assigning node affinity and tolerations to all pods in a namespace

Kubeservice Namespace Node Affinity is a Kubernetes Admission Webhook for Namespace and Node Affinity.

This chart creates a [Kubeservice Namespace Node Affinity deployment on a Kubernetes cluster using the Helm package manager.

Source Code

Requirements

Kubernetes 1.13+ with Beta APIs enabled

Add Helm repository

helm repo add kubeservice-stack https://kubeservice-stack.github.io/kubservice-charts
helm repo update

See helm repo for command documentation.

Install Chart

helm install [RELEASE_NAME] kubeservice-namespace-node-affinity

See configuration below.

See helm install for command documentation.

Uninstall Chart

helm uninstall [RELEASE_NAME]

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

See helm uninstall for command documentation.

Upgrading Chart

helm upgrade [RELEASE_NAME] [CHART] --install

See helm upgrade for command documentation.

Configuration

See Customizing the Chart Before Installing. To see all configurable options with detailed comments, visit the chart's values.yaml, or run these configuration commands:

# Helm 2
$ helm inspect values kubeservice-namespace-node-affinity

# Helm 3
$ helm show values kubeservice-namespace-node-affinity

See kubeservice-stack/namespace-node-affinity/README.md for further information.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity to add to the controller Pods
imagestring"docker.io/dongjiang1989/ns-node-affinity:latest"deployment image
imagePullSecretslist[]Reference to one or more secrets to be used when pulling images <https://
podAnnotationsobject{}Additional annotations to add to the controller Pods
pullPolicystring"IfNotPresent"The image pull policy.
replicasint1Number of replicas for the controller
resourcesobject{"limits":{"cpu":"100m","memory":"128Mi"},"requests":{"cpu":"10m","memory":"64Mi"}}Expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/#resourcerequirements-v1-core
service.portint443Expose port for WebHook controller
service.typestring"ClusterIP"Service type to use

Autogenerated from chart metadata using helm-docs v1.4.0

Deploy kubeservice-namespace-node-affinity with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubeservice-namespace-node-affinity 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 chartkubeservice-namespace-node-affinity is pinned at v1.1.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