Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 1 | --- |
| 2 | # .. vim: foldmarker=[[[,]]]:foldmethod=marker |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 3 | |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 4 | # .. Copyright (C) 2022 VEXXHOST, Inc. |
| 5 | # .. SPDX-License-Identifier: Apache-2.0 |
| 6 | |
| 7 | # Default variables |
| 8 | # ================= |
| 9 | |
| 10 | # .. contents:: Sections |
| 11 | # :local: |
| 12 | |
| 13 | |
| 14 | # .. envvar:: kubernetes_repo_url [[[ |
| 15 | # |
| 16 | # Kubernetes repository URL |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 17 | kubernetes_repo_url: "{{ _kubernetes_upstream_apt_repository }}" |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 18 | |
| 19 | # ]]] |
| 20 | # .. envvar:: kubernetes_version [[[ |
| 21 | # |
| 22 | # Kubernetes version |
Mohammed Naser | 71ebfe8 | 2022-12-28 05:28:16 +0000 | [diff] [blame] | 23 | kubernetes_version: 1.22.17 |
Mohammed Naser | b19a631 | 2023-01-19 02:43:40 +0000 | [diff] [blame] | 24 | kubernetes_cri_tools_version: 1.25.0 |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 25 | |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 26 | # ]]] |
Tadas Sutkaitis | 0615925 | 2023-02-20 17:15:42 +0200 | [diff] [blame] | 27 | # .. envvar:: kubernetes_cri_socket [[[ |
| 28 | # |
| 29 | # CRI socket path |
| 30 | kubernetes_cri_socket: /run/containerd/containerd.sock |
| 31 | |
| 32 | # ]]] |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 33 | # .. envvar:: kubernetes_kernel_modules [[[ |
| 34 | # |
| 35 | # List of kernel modules to be automatically loaded |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 36 | kubernetes_kernel_modules: |
| 37 | - br_netfilter |
| 38 | |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 39 | # ]]] |
| 40 | # .. envvar:: kubernetes_sysctls [[[ |
| 41 | # |
| 42 | # List of ``sysctl`` parameters to set |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 43 | kubernetes_sysctls: |
| 44 | - name: net.ipv4.ip_forward |
| 45 | value: 1 |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 46 | - name: net.bridge.bridge-nf-call-iptables |
| 47 | value: 1 |
| 48 | - name: net.bridge.bridge-nf-call-ip6tables |
| 49 | value: 1 |
| 50 | - name: net.ipv4.conf.all.rp_filter |
| 51 | value: 0 |
| 52 | |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 53 | # ]]] |
| 54 | # .. envvar:: kubernetes_control_plane_group [[[ |
| 55 | # |
| 56 | # Name of Ansible group containing all control-plane nodes |
Mohammed Naser | 336caf4 | 2022-03-11 17:56:45 -0500 | [diff] [blame] | 57 | kubernetes_control_plane_group: controllers |
Mohammed Naser | ab033e1 | 2022-03-13 21:07:28 -0400 | [diff] [blame] | 58 | |
| 59 | # ]]] |
Mohammed Naser | 2144b34 | 2022-05-23 10:25:31 -0400 | [diff] [blame] | 60 | # .. envvar:: kubernetes_control_plane_labels [[[ |
Mohammed Naser | a98799e | 2022-05-19 21:54:20 -0400 | [diff] [blame] | 61 | # |
| 62 | # Labels to apply for all control plane nodes |
| 63 | kubernetes_control_plane_labels: |
| 64 | openstack-control-plane: enabled |
| 65 | openvswitch: enabled |
| 66 | |
| 67 | # ]]] |
| 68 | # .. envvar:: kubernetes_compute_node_labels [[[ |
| 69 | # |
| 70 | # Labels to apply for all compute nodes |
| 71 | kubernetes_compute_node_labels: |
| 72 | openstack-compute-node: enabled |
| 73 | openvswitch: enabled |
| 74 | |
| 75 | # ]]] |
Mohammed Naser | 1b54126 | 2023-03-01 14:33:36 +0000 | [diff] [blame] | 76 | |
| 77 | # Node IP address |
| 78 | kubernetes_node_ip: "{{ ansible_default_ipv4.address }}" |
Mohammed Naser | ad999a7 | 2023-03-02 16:58:19 +0100 | [diff] [blame] | 79 | |
| 80 | # Allow usage of swap memory for the Kubelet (Do not enable this unless you |
| 81 | # know what you are doing). |
| 82 | kubernetes_allow_unsafe_swap: false |