Files
configpolicy/kubernetes.yml
Dustin C. Hatch c7374c8cca r/k8s-controller: Deploy HAProxy
The _haproxy_ role only installs HAProxy and provides some basic global
configuration; it expects another role to depend on it and provide
concrete proxy configuration with drop-in configuration files.  Thus, we
need a role specifically for the Kubernetes control plane nodes to
provide the configuration to proxy for the API server.
2025-07-22 16:21:49 -05:00

27 lines
560 B
YAML

- hosts: k8s-controller
roles:
- role: k8s-controller
tags:
- k8s-controller
- hosts: k8s-node
roles:
- role: k8s-worker
tags:
- k8s-worker
tasks:
- name: ensure kubernetes node labels and taints are set
delegate_to: localhost
become: false
kubernetes.core.k8s:
definition:
apiVersion: v1
kind: Node
metadata:
name: '{{ inventory_hostname }}'
labels: '{{ k8s_node_labels }}'
spec:
taints: '{{ k8s_node_taints | d(omit) }}'
tags:
- node-labels