node-provider-labeler

by ryane

Helm chartv0.20.0App 0.8.0MITVerified publisher

Set Kubernetes Node metadata from cloud provider IDs

About this chart

node-provider-labeler Helm Chart

Set Kubernetes Node metadata from cloud provider IDs.

Configuration

By default, node-provider-labeler will label nodes with a provider-id key and with the value set to the last component of the spec.providerID field. Examples:

ProviderProvider IDprovider-id Value
EKSaws://us-west-2/i-0abcdef1234567890i-0abcdef1234567890
GKEgce://my-project/us-central1-a/gke-cluster-1-default-pool-12345678-abc1gke-cluster-1-default-pool-12345678-abc1
AKSazure://subscriptions/00000000/resourceGroups/myrg/providers/Microsoft.Compute/virtualMachines/myVMmyvm
Kindkind://podman/node-prov/node-prov-workernode-prov-worker

You can use the templates configuration in your values.yaml to customize the behavior.

templates:
  labels:
    - key: instance-id
      value: "{:last}"

See the documentation for more on templates.

Installation

helm install node-provider-labeler oci://ghcr.io/jossware/charts/node-provider-labeler \
    --namespace node-provider-labeler \
    --create-namespace

Values

KeyTypeDefaultDescription
affinityobject{}Assign custom affinity rules to the deployment.
extraEnvlist[]Environment variables for the controller container.
fullnameOverridestring""String to fully override "node-provider-labeler.fullname"
image.pullPolicystring"IfNotPresent"The image pull policy
image.repositorystring"ghcr.io/jossware/node-provider-labeler"The image to use in the controller deployment
image.tagstring"v0.8.0"The tag of the image
imagePullSecretslist[]Secrets with credentials to pull images from a private registry
nameOverridestring""Provide a name in place of the default
nodeSelectorobject{}Node selector.
podAnnotationsobject{}Annotations to be added to the pods
podLabelsobject{}Labels to be added to the pods
podSecurityContextobject{}Pod level security context
rbac.createbooltrueSpecifies whether RBAC roles and bindings should be created
readinessProbeobject{"httpGet":{"path":"/health","port":"http"}}Server readiness probe
readinessProbe.httpGet.pathstring"/health"HTTP path for readiness probe
readinessProbe.httpGet.portstring"http"Port for readiness probe
replicaCountint1The number of replicas to run
resourcesobject{}Resource limits and requests for the deployment
securityContextobject{}Container level security context
service.portint8080Metrics service port
service.typestring"ClusterIP"Metrics service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountbooltrueAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template
templatesobject{}Optionally define templates for labels and/or annotations. If not defined, the chart will create the default label and value
tolerationslist[]Tolerations for use with node taints.
volumeMountslist[]Additional volumeMounts to add to the deployment.
volumeslist[]Additional volumes to add on the deployment.

Contributing

Please refer to CONTRIBUTING.MD.

Deploy node-provider-labeler with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has node-provider-labeler 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 chartnode-provider-labeler is pinned at v0.20.0 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