2022-10-03 20:58:05 +00:00
|
|
|
---
|
|
|
|
- name: Converge
|
|
|
|
hosts: all
|
|
|
|
vars:
|
2023-01-29 15:46:24 +00:00
|
|
|
kernel_custom_config:
|
|
|
|
- file: 90-kubelet
|
|
|
|
content:
|
|
|
|
- name: vm.panic_on_oom
|
|
|
|
value: 0
|
|
|
|
- name: vm.overcommit_memory
|
|
|
|
value: 1
|
|
|
|
- name: kernel.panic
|
|
|
|
value: 10
|
|
|
|
- name: kernel.panic_on_oops
|
|
|
|
value: 1
|
|
|
|
- name: kernel.keys.root_maxbytes
|
|
|
|
value: 25000000
|
2022-10-03 20:58:05 +00:00
|
|
|
k3s_reset: False
|
|
|
|
k3s_packages_extra:
|
2024-02-18 20:09:43 +00:00
|
|
|
- https://github.com/k3s-io/k3s-selinux/releases/download/v1.5.stable.1/k3s-selinux-1.5-1.el9.noarch.rpm
|
2024-02-18 20:25:57 +00:00
|
|
|
k3s_server_nodes:
|
|
|
|
- "rocky9-k3s"
|
2022-10-05 20:54:36 +00:00
|
|
|
k3s_server_flannel_backend_enabled: False
|
|
|
|
k3s_server_network_policy_enabled: False
|
2022-11-16 21:17:08 +00:00
|
|
|
k3s_server_cloud_controller_enabled: True
|
2022-11-20 11:42:47 +00:00
|
|
|
k3s_server_workload_enabled: True
|
2022-10-05 20:54:36 +00:00
|
|
|
k3s_server_manifests_templates:
|
|
|
|
- "calico-installation.yaml.j2"
|
|
|
|
k3s_server_manifests_urls:
|
2024-02-18 20:09:43 +00:00
|
|
|
- url: https://raw.githubusercontent.com/projectcalico/calico/v3.27.2/manifests/tigera-operator.yaml
|
2022-10-05 20:54:36 +00:00
|
|
|
dest: tigera-operator.yaml
|
2022-11-16 21:17:08 +00:00
|
|
|
# - url: https://github.com/hetznercloud/hcloud-cloud-controller-manager/releases/latest/download/ccm.yaml
|
|
|
|
# dest: hcloud-ccm.yaml
|
2022-10-03 20:58:05 +00:00
|
|
|
k3s_init_log_enabled: True
|
2022-11-14 08:47:14 +00:00
|
|
|
k3s_selinux_enabled: True
|
2023-01-29 15:46:24 +00:00
|
|
|
k3s_protect_kernel_defaults: True
|
2022-11-16 21:17:08 +00:00
|
|
|
# k3s_server_resource_creations:
|
|
|
|
# - kind: Secret
|
|
|
|
# name: hcloud
|
|
|
|
# definition:
|
|
|
|
# metadata:
|
|
|
|
# namespace: kube-system
|
|
|
|
# apiVersion: v1
|
|
|
|
# type: Opaque
|
|
|
|
# data:
|
|
|
|
# token: "{{ hcloud_token | b64encode }}"
|
2022-11-20 13:10:29 +00:00
|
|
|
k3s_node_labels:
|
|
|
|
node.kubernetes.io/exclude-from-external-load-balancers: "true"
|
2023-01-10 07:42:13 +00:00
|
|
|
k3s_iscsi_enabled: True
|
2022-10-03 20:58:05 +00:00
|
|
|
pre_tasks:
|
|
|
|
- name: Override host variables
|
2024-02-18 20:09:43 +00:00
|
|
|
ansible.builtin.set_fact:
|
2024-08-17 19:51:07 +00:00
|
|
|
k3s_node_ip:
|
|
|
|
- "{{ ansible_default_ipv4.address }}"
|
2022-10-03 20:58:05 +00:00
|
|
|
roles:
|
2023-01-29 15:46:24 +00:00
|
|
|
- role: xoxys.kernel
|
2022-10-03 20:58:05 +00:00
|
|
|
- role: xoxys.k3s
|