blob: 60d381ec41a8c147ba3b002dcfba64be17068cdd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
---
containerd_lvm:
vg: "{{ host_name }}"
lv: containerd
size: 4G
fs: ext4
kubernetes_version: 1.17.1
kubernetes_container_runtime: containerd
kubernetes_network_plugin: kubeguard
kubernetes_cri_socket: "unix:///run/containerd/containerd.sock"
kubernetes:
cluster_name: k8s-test
dedicated_master: False
api_extra_sans:
- 89.106.215.23
- k8s-test.spreadspace.org
pod_ip_range: 172.18.0.0/16
pod_ip_range_size: 24
service_ip_range: 172.18.192.0/18
# kubernetes_secrets:
# encryption_config_keys: "{{ vault_kubernetes_encryption_config_keys }}"
kubeguard:
## node_index must be in the range between 1 and 190 -> 189 hosts possible
##
## hardcoded hostnames are not nice but if we do this via host_vars
## the info is spread over multiple files and this makes it more diffcult
## to find mistakes, so it is nicer to keep it in one place...
node_index:
s2-k8s-test0: 1
s2-k8s-test1: 2
s2-k8s-test2: 3
s2-k8s-test3: 4
s2-k8s-test4: 5
direct_net_zones:
atlas:
transfer_net: 172.18.191.0/24
node_interface:
s2-k8s-test0: direct0
s2-k8s-test1: direct0
kubernetes_overlay_node_ip: "{{ kubernetes.pod_ip_range | ipsubnet(kubernetes.pod_ip_range_size, kubeguard.node_index[inventory_hostname]) | ipaddr(1) | ipaddr('address') }}"
|