Files
home-cluster/ansible/inventory/group_vars/master/k3s.yml
T

46 lines
1.6 KiB
YAML

---
# https://rancher.com/docs/k3s/latest/en/installation/install-options/server-config/
# https://github.com/PyratLabs/ansible-role-k3s
# (bool) Specify if a host (or host group) are part of the control plane
k3s_control_node: true
# (dict) k3s settings for all control-plane nodes
k3s_server:
node-ip: "{{ ansible_host }}"
tls-san:
- "{{ kubevip_address }}"
# Disable Docker - this will use the default containerd CRI
docker: false
flannel-backend: "none" # This needs to be in quotes
disable:
# Disable flannel - replaced with Calico
- flannel
# Disable local-path-provisioner - installed with Flux
- local-storage
# Disable metrics-server - installed with Flux
- metrics-server
# Disable servicelb - replaced with metallb and installed with Flux
- servicelb
# Disable traefik - replaced with ingress-nginx and installed with Flux
- traefik
disable-network-policy: true
disable-cloud-controller: true
disable-kube-proxy: true
write-kubeconfig-mode: "644"
# Network CIDR to use for pod IPs
cluster-cidr: "{{ cluster_cidr }}"
# Network CIDR to use for service IPs
service-cidr: "{{ service_cidr }}"
kube-controller-manager-arg:
# Required to monitor kube-controller-manager with kube-prometheus-stack
- "bind-address=0.0.0.0"
kube-scheduler-arg:
# Required to monitor kube-scheduler with kube-prometheus-stack
- "bind-address=0.0.0.0"
# Required to monitor etcd with kube-prometheus-stack
etcd-expose-metrics: true
kube-apiserver-arg:
# Required for HAProxy health-checks
- "anonymous-auth=true"