You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cilium Air-Gapped Images (optional, off by default)
Cilium is installed via cilium-cli, which pulls its images from quay.io. On
edge/offline nodes, pre-load those images from a tar into containerd and pin the
pull policy so pods start without reaching out. Applies to both RKE2 and K3s; all
options are disabled by default (normal online pull).
Variable
Default
Description
cilium_airgapped_images
false
Enable the image pre-load into containerd
cilium_airgapped_image_url
""
HTTPS source for the Cilium images tar (required when enabled)
cilium_image_pull_policy
Always
Pull policy on agent/operator/envoy; set Never on edge
cilium_airgapped_checksum
-
Optional sha256:... integrity check for the tar
Build the tar from a node that already runs Cilium with
deploy-configure-rke's hack/export-cilium-images.sh (override
CTR=/var/lib/rancher/rke2/bin/ctr for RKE2), publish it to your mirror, then set
cilium_airgapped_images: true, cilium_airgapped_image_url, and
cilium_image_pull_policy: Never.
Vault Upload Variables
Variable
Default
Description
cluster_name
test-cluster
Vault secret key name
secret_path_kubeconfig
kubeconfigs
Vault KV path
replace_ip
true
Replace 127.0.0.1 with actual node IP
create_flux_ns
false
Create flux-system namespace
API Token Variables
Variable
Default
Description
token_name
admin
Token name
token_description
admin token
Token description
token_ttl
0
Token TTL (0 = never expires)
path_to_kubeconfig
-
Path to kubeconfig (required)
USAGE
DEPLOY MULTI-NODE RKE2 CLUSTER
Deploys a rke2 multi-node cluster
# CREATE INVENTORY
cat <<EOF > rke2[initial_master_node]10.100.136.151[additional_master_nodes]10.100.136.15210.100.136.153EOF# CREATE CLUSTER
CLUSTER_NAME=dev-cluster
mkdir -p /home/sthings/.kube/
# CHECK FOR RKE2 RELEASES: https://github.com/rancher/rke2/releases
ansible-playbook sthings.rke.rke2 \
-i rke2 \
-e rke2_fetched_kubeconfig_path=/home/sthings/.kube/${CLUSTER_NAME} \
-e rke2_k8s_version=1.36.1 \
-e rke2_release_kind=rke2r2 \
-vv
# TEST CLUSTER CONNECTIONexport KUBECONFIG=/home/sthings/.kube/${CLUSTER_NAME}
kubectl get nodes
# ADD SOME USEFUL CLIS ON THE CLUSTER NODES
ansible-playbook sthings.container.tools -i rke2 -vv