kubeservice-namespace-node-affinity
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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity to add to the controller Pods |
| image | string | "docker.io/dongjiang1989/ns-node-affinity:latest" | deployment image |
| imagePullSecrets | list | [] | Reference to one or more secrets to be used when pulling images <https:// |
| podAnnotations | object | {} | Additional annotations to add to the controller Pods |
| pullPolicy | string | "IfNotPresent" | The image pull policy. |
| replicas | int | 1 | Number of replicas for the controller |
| resources | object | {"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.port | int | 443 | Expose port for WebHook controller |
| service.type | string | "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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkubeservice-namespace-node-affinity is pinned at v1.1.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