This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdefaults.yaml
142 lines (142 loc) · 5.38 KB
/
defaults.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
---
# General configuration parameters.
conf:
# The values you specify here will be added as additional arguments when
# Ansible is invoked during the provisioning phase. For example, you might
# enable Ansible verbose output by setting this to "-vv".
additional_ansible_arguments: ""
# Size of the additional disk to attach to each VM of the cluster.
# Useful to evaluate/test storage solutions. Set it to 0 to avoid attaching
# a disk.
additional_disk_size: 10240
# RAM memory assigned to the base box.
base_box_builder_mem: 2048
# Number of CPUs assigned to the base box.
base_box_cpus: 2
# Number of CPUs assigned to master nodes.
master_cpus: 2
# RAM memory assigned to master nodes.
master_mem: 2048
# Number of CPUs assigned to minion nodes.
minion_cpus: 1
# RAM memory assigned to worker nodes.
minion_mem: 1024
# DNS domain name of the playground.
playground_name: k8s-play
# Base box VM name.
base_box_builder_name: base-box-builder
# Master node name.
master_name: k8s-master-1
# The default Vagrant provider. Allowed values are: virtualbox, libvirt.
# After setting this, you need to also follow the instructions in the official
# Vagrant documentation to choose the default provider, if you've more than
# one provider installed:
# https://www.vagrantup.com/docs/providers/basic_usage.html
vagrant_provider: virtualbox
# Vagrant boxes IDs.
kubernetes_nodes_base_box_id:
# ID of the Vagrant box for the Virtualbox provider.
virtualbox: "debian/bullseye64"
# ID of the Vagrant box for the libvirt provider.
libvirt: "debian/bullseye64"
# Kubernetes configuration parameters.
kubernetes:
# If set to true, allows scheduling pods on master nodes.
allow_workloads_on_masters: false
# Kubernetes version to install
kubernetes_version: "present"
# Number of master nodes to provision
# we currently support only one master node
master_nodes_count: 1
# Number of worker nodes to provision
worker_nodes_count: 2
# Network configuration parameters.
net:
# base MAC address for master(s)
master_base_mac_address: 0800271F9D03
# base MAC address for master(s)
minion_base_mac_address: 0800271F9D13
# IPv4 network prefix.
network_prefix: "192.168.0."
# IPv6 network prefix.
network_prefix_ipv6: "fde4:8dba:82e1:"
# IPv4 subnet mask.
subnet_mask: "255.255.255.0"
# IPv6 subnet mask.
subnet_mask_ipv6: "56"
# IPv4 base address for master(s) (integer)
master_ipv4_base: 10
# IPv4 base address for minions (integer)
minion_ipv4_base: 30
# IPv6 address suffix for the master node
# must be a string with 4 hex digits followed by "::"
master_ipv6_part: "c40a::"
# base IPv6 address suffix for the minion nodes.
# must be a string with 4 hex digits followed by "::"
minion_ipv6_part: "c41e::"
# delta of IPv6 address suffix for each minion node (integer)
delta_ipv6: 1
# host part of the IPv6 address of nodes
default_ipv6_host_part: "1"
# libvirt management network subnet.
libvirt_management_network_address: "192.168.121.0/24"
# Kubernetes network configuration parameters.
pod_network:
# Cluster IP CIDR.
cluster_ip_cidr: "10.244.0.0/16"
# Service IP CIDR.
service_ip_cidr: "10.96.0.0/12"
# Cluster IP6 CIDR.
cluster_ipv6_cidr: "fc00::/32"
# Ansible variables.
ansible:
# Ansible group variables.
group_vars:
# Variables for the "all" group. Variables defined here will be available
# to all nodes.
all:
ansible_python_interpreter: auto_silent
# The networking plugin used by kubernetes, supported plugins are:
# weavenet, calico, flannel, in addition "no-cni-plugin" prepares
# the environment but does not boostrap the kubernetes cluster.
# Set true the one you choose (default: calico), set false all the others.
kubernetes_network_plugin_options:
no-cni-plugin: false
calico: true
weavenet: false
flannel: false
calico_config:
# calico tunnel mode (IPIP or VXLAN)
calico_env_var_options:
CALICO_IPV4POOL_IPIP: true
CALICO_IPV4POOL_VXLAN: false
# configuration of calico tunnel mode
calico_env_var_value_options:
Always: true
CrossSubnet: false
Never: false
# If this is true, each Kubernetes node will have a label with a key set to
# node_name and a value set to the name of the node
kubernetes_add_node_name_as_label: true
# List of labels to apply to all nodes
all_nodes_kubernetes_labels:
# Example label that will be applied to all nodes
- label_key: kubernetes_playground_node
label_value: true
# Variables for the "kubernetes-masters" group. Variables defined here will
# be available to the nodes in the "kubernetes-masters" group.
kubernetes-masters:
# List of labels to apply to all master nodes
group_kubernetes_labels:
# Example label that will be applied to all master nodes
- label_key: kubernetes_playground_node_type
label_value: master
# Variables for the "kubernetes-minions" group. Variables defined here will
# be available to the nodes in the "kubernetes-minions" group.
kubernetes-minions:
# List of labels to apply to all worker nodes
group_kubernetes_labels:
# Example label that will be applied to all worker nodes
- label_key: kubernetes_playground_node_type
label_value: worker
...