helper-server-side-apply

by tjungbauer

Helm chartv1.0.16Apache-2.0Verified publisher

Using Server Side Apply to create for example node labelling, requires openshift-gitops 1.6+

About this chart

helper-server-side-apply

Description

Using Server Side Apply to create for example node labelling, requires openshift-gitops 1.6+

Using Server Side Apply to create for example node labelling, taints and roles. requires openshift-gitops 1.6+

Homepage: https://github.com/tjungbauer/helm-charts/tree/main/charts/helper-server-side-apply

Maintainers

NameEmailUrl
tjungbauer[email protected]https://blog.stderr.at/

Sources

Source:

Source code: https://github.com/tjungbauer/helm-charts/tree/main/charts/helper-server-side-apply

Parameters

Values

KeyTypeDefaultDescription
nodeslist[{"custom_labels":{"environment":"Production","gpu":"true"},"enabled":true,"ignore_argocd_labels":true,"name":"node1","roles":{"infra":true,"worker":true},"spec":{"taints":[{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"}]}},{"custom_labels":{"environment":"Test","gpu":"true"},"enabled":true,"ignore_argocd_labels":true,"name":"node2","roles":{"infra":true,"worker":true},"spec":{"taints":[{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","value":"reserved"}]}}]List of nodes based on the hostname
nodes[0]objectN/AHostname node1
nodes[0].custom_labelsobjectN/AAdd some custom labels to the node, as key: value pair
nodes[0].enabledboolfalseEnable node configuration
nodes[0].ignore_argocd_labelsbooltrueIgnore ArgoCD labels, argocd wants to add some labels to the nodes, keeping them would lead to a permanent sync of Argo CD
nodes[0].rolesobjectN/AAdd some roles to the node, as key: value pair. The role will be resolved to node-role.kubernetes.io/{role}
nodes[0].spec.taintslist[{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"}]Configure taints for the nodes # @default -- N/A
nodes[0].spec.taints[0]object{"effect":"NoSchedule","key":"node-role.kubernetes.io/infra","operator":"Equal","value":"reserved"}Effect of the taint
nodes[0].spec.taints[0].keystring"node-role.kubernetes.io/infra"Key of the taint
nodes[0].spec.taints[0].operatorstring"Equal"Operator of the taint
nodes[0].spec.taints[0].valuestring"reserved"Value of the taint

Example

---
# -- List of nodes based on the hostname
nodes:
  # -- Hostname node1
  # @default -- N/A
  - name: node1

    # -- Enable node configuration
    # @default -- false
    enabled: true

    # -- Ignore ArgoCD labels, argocd wants to add some labels to the nodes, keeping them would lead to a permanent sync of Argo CD
    # @default -- true
    ignore_argocd_labels: true

    # -- Add some custom labels to the node, as key: value pair
    # @default -- N/A
    custom_labels:
      environment: 'Production'
      gpu: 'true'

    # -- Add some roles to the node, as key: value pair. The role will be resolved to node-role.kubernetes.io/{role}
    # @default -- N/A
    roles:
      infra: true
      worker: true

    spec:
      # -- Configure taints for the nodes
      ## @default -- N/A
      taints:
        # -- Effect of the taint
      - effect: NoSchedule
        # -- Key of the taint
        key: node-role.kubernetes.io/infra
        # -- Value of the taint
        value: reserved
        # -- Operator of the taint
        operator: Equal

Installing the Chart

To install the chart with the release name my-release:

helm install my-release tjungbauer/<chart-name>>

The command deploys the chart on the Kubernetes cluster in the default configuration.

Uninstalling the Chart

To uninstall/delete the my-release deployment:

helm delete my-release

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


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy helper-server-side-apply with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has helper-server-side-apply 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 charthelper-server-side-apply is pinned at v1.0.16 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