init_os.yaml is used to initialize the operating system environment of cluster nodes, including system configuration, package installation, and certificate preparation. It is suitable for node preparation before cluster installation.
-
Global Initialization
- Execute the
native/rootrole on all nodes.
- Execute the
-
Load Default Variables
- Load the
defaultsrole on all nodes.
- Load the
-
Certificate and Resource Preparation
- Execute on
localhost:certs/init: Initialize and generate certificates required by the cluster.download: Download software packages such as Kubernetes and container runtime.
- Execute on
-
Node System Initialization
- Execute the
nativerole for nodes in theetcd,k8s_cluster,image_registry, andnfsgroups to install necessary system packages and complete basic environment configuration.
- Execute the
- This playbook itself does not actually deploy Kubernetes or CRI; its main purpose is to complete OS-level node preparation.
- It can be used to batch-initialize node environments before formally executing
create_cluster.yaml.