- Nov 15, 2024
-
-
Max Gautier authored
* kubeadm: do not ignore preflight errors blindly The "ignoring all errors" seems to date back to the inception of the kubeadm support (it was --skip-preflight-check before). This can mask real errors and prevent users from seeing them. Do not ignore any errors by default and make the set of ignored errors configurable. * download/kubeadm: remove redundant task The mode is already set by the previous `copy` task. * Validate kubeadm configs This should help to fail early when we have invalid kubeadm configs (from a kubespray bug or a misconfiguration). * kubeadm-upgrade: remove unnecessary bool cast * Convert kubeadm join discovery timeout to v1beta4 config * CI: Ignore kubeadm:Mem errors on some setup.
-
- Nov 14, 2024
-
-
Max Gautier authored
timeoutForControlPlane has been removed from v1beta4, instead remplaced by https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta4/#kubeadm-k8s-io-v1beta4-Timeouts The default for the new value are close enough that there is no need to override them.
-
- Nov 13, 2024
-
-
Andreas Gravgaard Andersen authored
* remove nameless extraArgs entry Signed-off-by:
Andreas Gravgaard Andersen <andreasga22@gmail.com> * fix template name Signed-off-by:
Andreas Gravgaard Andersen <andreasga22@gmail.com> --------- Signed-off-by:
Andreas Gravgaard Andersen <andreasga22@gmail.com>
-
- Nov 05, 2024
-
-
ChengHao Yang authored
Currently there is not much difference between the files, if there are more changes in the future, please use different files to distinguish them (you can use the kubeadm_config_api_version variable) Signed-off-by:
ChengHao Yang <17496418+tico88612@users.noreply.github.com>
-
ChengHao Yang authored
v1beta4 has changed a lot in this file (e.g. ExtraArgs etc.), so it was implemented in separate files. Signed-off-by:
ChengHao Yang <17496418+tico88612@users.noreply.github.com>
-
ChengHao Yang authored
For this change, `cloud_provider` change the default value to empty string. Signed-off-by:
ChengHao Yang <17496418+tico88612@users.noreply.github.com>
-
- Nov 04, 2024
-
-
ChengHao Yang authored
Signed-off-by:
ChengHao Yang <17496418+tico88612@users.noreply.github.com>
-
- Oct 04, 2024
-
-
Max Gautier authored
The fallback_ips tasks are essentially serializing the gathering of one fact on all the hosts, which can have dramatic performance implications on large clusters (several minutes). This is essentially a reversal of 35f248df Being able to run without refreshing the cache facts is not worth it. We keep fallback_ip for now, simply changing the access to a normal hostvars variable instead of a custom dictionnary.
-
- Sep 24, 2024
-
-
Max Gautier authored
Testing with group_names does not require the groups to exist.
-
- Sep 23, 2024
-
-
Max Gautier authored
-
- Sep 10, 2024
-
-
Max Gautier authored
Specifying one directory for kubeadm patches is not ideal: 1. It does not allow working with multiples inventories easily 2. No ansible templating of the patch 3. Ansible path searching can sometimes be confusing Instead, provide the patch directly in a variable, and add some quality of life to handle components targeting and patch ordering more explicitly (`target` and `type` which are translated to the kubeadm scheme which is based on the file name)
-
- Aug 28, 2024
-
-
Selçuk Arıbalı authored
-
- Jul 26, 2024
-
-
Tom M. authored
-
- May 28, 2024
-
-
Max Gautier authored
- markdownlint (manual fix) - end-of-file-fixer - requirements-txt-fixer - trailing-whitespace
-
- Apr 03, 2024
-
-
Nicolas Goudry authored
* feat: add user facing variable with default * feat: remove rolebinding to anonymous users after init and upgrade * feat: use file discovery for secondary control plane nodes * feat: use file discovery for nodes * fix: do not fail if rolebinding does not exist * docs: add warning about kube_api_anonymous_auth * style: improve readability of delegate_to parameter * refactor: rename discovery kubeconfig file * test: enable new variable in hardening and upgrade test cases * docs: add option to config parameters * test: multiple instances and upgrade
-
- Mar 22, 2024
-
-
ERIK authored
Signed-off-by:
bo.jiang <bo.jiang@daocloud.io>
-
- Jan 25, 2024
-
-
Ugur Can Ozturk authored
* [apiserver-kubelet/tracing]: add distributed tracing config flags Signed-off-by:
Ugur Ozturk <ugurozturk918@gmail.com> * [apiserver-kubelet/tracing]: add distributed tracing config flags - fix Signed-off-by:
Ugur Ozturk <ugurozturk918@gmail.com> * [apiserver-kubelet/tracing]: add distributed tracing config flags - fix Signed-off-by:
Ugur Ozturk <ugurozturk918@gmail.com> --------- Signed-off-by:
Ugur Ozturk <ugurozturk918@gmail.com>
-
- Dec 18, 2023
-
-
Max Gautier authored
This is removed from kubernetes since 1.25, time to cut some dead code.
-
- Dec 12, 2023
-
-
jandres - moscardo authored
-
Max Gautier authored
* Disable control plane allocating podCIDR for nodes when using calico Calico does not use the .spec.podCIDR field for its IP address management. Furthermore, it can false positives from the kube controller manager if kube_network_node_prefix and calico_pool_blocksize are unaligned, which is the case with the default shipped by kubespray. If the subnets obtained from using kube_network_node_prefix are bigger, this would result at some point in the control plane thinking it does not have subnets left for a new node, while calico will work without problems. Explicitely set a default value of false for calico_ipam_host_local to facilitate its use in templates. * Don't default to kube_network_node_prefix for calico_pool_blocksize They have different semantics: kube_network_node_prefix is intended to be the size of the subnet for all pods on a node, while there can be more than on calico block of the specified size (they are allocated on demand). Besides, this commit does not actually change anything, because the current code is buggy: we don't ever default to kube_network_node_prefix, since the variable is defined in the role defaults.
-
- Nov 27, 2023
-
-
Samuel Liu authored
-
- Nov 08, 2023
-
-
Max Gautier authored
* Use RandomizedDelaySec to spread out control certificates renewal plane If the number of control plane node is superior to 6, using (index * 10 minutes) will fail (03:60:00 is not a valid timestamp). Compared to just fixing the jinja expression (to use a modulo for example), this should avoid having two control planes certificates update node being triggered at the same time. * Make k8s-certs-renew.timer Persistent If the control plane happens to be offline during the scheduled certificates renewal (node failure or anything like that), we still want the renewal to happen.
-
- Oct 17, 2023
-
-
Unai Arríen authored
* Migrate node-role.kubernetes.io/master to node-role.kubernetes.io/control-plane * Migrate node-role.kubernetes.io/master to node-role.kubernetes.io/control-plane * Migrate node-role.kubernetes.io/master to node-role.kubernetes.io/control-plane
-
- Sep 29, 2023
-
-
Mohamed Omar Zaian authored
-
- Aug 08, 2023
-
-
Francisco Orselli authored
-
- Jul 05, 2023
-
-
Arthur Outhenin-Chalandre authored
* project: fix var-spacing ansible rule Signed-off-by:
Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing on the beginning/end of jinja template Signed-off-by:
Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing of default filter Signed-off-by:
Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix spacing between filter arguments Signed-off-by:
Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix double space at beginning/end of jinja Signed-off-by:
Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: fix remaining jinja[spacing] ansible-lint warning Signed-off-by:
Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by:
Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
-
- Jun 13, 2023
-
-
Ugur Can Ozturk authored
Signed-off-by:
Ugur <ugurozturk918@gmail.com>
-
- Apr 18, 2023
-
-
Kay Yan authored
-
- Apr 11, 2023
-
-
Samuel Liu authored
-
- Mar 27, 2023
-
-
HirazawaUi authored
-
- Feb 06, 2023
-
-
Bas authored
-
- Dec 28, 2022
-
-
Kevin Huang authored
Signed-off-by:
Kevin Huang <git@kevin.huang.to> Signed-off-by:
Kevin Huang <git@kevin.huang.to>
-
- Dec 20, 2022
-
-
Kay Yan authored
-
- Dec 15, 2022
-
-
Lukas Najman authored
Use the correct api version and resourcer type. The current values work but do not match the documentation, which can be confusing. (#9575)
-
- Dec 05, 2022
-
-
ERIK authored
Signed-off-by:
bo.jiang <bo.jiang@daocloud.io> Signed-off-by:
bo.jiang <bo.jiang@daocloud.io>
-
- Oct 26, 2022
-
-
William Turner authored
* Fix inconsistent handling of admission plugin list * Adjust hardening doc with the normalized admission plugin list * Add pre-check for admission plugins format change * Ignore checking admission plugins value when variable is not defined
-
- Oct 06, 2022
-
-
Huang Chen-Yi authored
* Support kubeadm patches in v1beta3 * Update kubeadm patches sample files in inventory * Fix pre-commit syntax * Set kubeadm_patches enabled to false in sample inventory
-
- Sep 29, 2022
-
-
Florian Ruynat authored
-
- Aug 18, 2022
-
-
Tomas Zvala authored
* Add the option to enable default Pod Security Configuration Enable Pod Security in all namespaces by default with the option to exempt some namespaces. Without the change only namespaces explicitly configured will receive the admission plugin treatment. * Fix the PR according to code review comments * Revert the latest changes - leave the empty file when kube_pod_security_use_default, but add comment explaining the empty file - don't attempt magic at conditionally adding PodSecurity to kube_apiserver_admission_plugins_needs_configuration
-
- Jul 04, 2022
-
-
Kay Yan authored
-