mirror of
https://github.com/PyratLabs/ansible-role-k3s
synced 2024-11-14 17:30:18 +01:00
99c22dceab
Fixes #74 Addresses #73 - move rancher reference to vars/
113 lines
3.1 KiB
YAML
113 lines
3.1 KiB
YAML
---
|
|
|
|
# Minimum supported version
|
|
k3s_min_version: 1.19.3
|
|
|
|
# Valid states for this role
|
|
k3s_valid_states:
|
|
- installed
|
|
- started
|
|
- stopped
|
|
- restarted
|
|
- downloaded
|
|
- uninstalled
|
|
- validated
|
|
|
|
# Map ansible fact gathering architecture to a release name and suffix in github.
|
|
k3s_arch_lookup:
|
|
amd64:
|
|
arch: amd64
|
|
suffix: ""
|
|
x86_64:
|
|
arch: amd64
|
|
suffix: ""
|
|
arm64:
|
|
arch: arm64
|
|
suffix: "-arm64"
|
|
aarch64:
|
|
arch: arm64
|
|
suffix: "-arm64"
|
|
arm:
|
|
arch: arm
|
|
suffix: "-armhf"
|
|
arm7:
|
|
arch: arm
|
|
suffix: "-armhf"
|
|
armv7l:
|
|
arch: arm
|
|
suffix: "-armhf"
|
|
armhf:
|
|
arch: arm
|
|
suffix: "-armhf"
|
|
|
|
# Always default to stable channel, this will change with k3s_release_version
|
|
k3s_release_channel: stable
|
|
|
|
# Create the API address for the k3s_github_url that has been specified
|
|
k3s_github_api: "{{ k3s_github_url | replace('github.com', 'api.github.com') }}"
|
|
# Create the latest release API link for github. Possibly deprecated with k3s.io updates API
|
|
k3s_github_api_releases: "{{ k3s_github_api | replace('.com', '.com/repos') }}/releases/latest"
|
|
# K3s updates API
|
|
k3s_api_releases: https://update.k3s.io/v1-release/channels
|
|
# Download location for releases
|
|
k3s_github_download_url: "{{ k3s_github_url }}/releases/download"
|
|
|
|
# Empty array for counting the number of control plane nodes
|
|
k3s_controller_count: []
|
|
|
|
# Default to the "system" systemd context, this will be "user" when running rootless
|
|
k3s_systemd_context: system
|
|
|
|
# Directory for systemd unit files to be installed. As this role doesn't use package
|
|
# management, this should live in /etc/systemd, not /lib/systemd
|
|
k3s_systemd_unit_dir: "/etc/systemd/{{ k3s_systemd_context }}"
|
|
|
|
# Directory for gathering the k3s token for clustering. I don't see this changing.
|
|
k3s_token_location: "/etc/rancher/cluster-token"
|
|
|
|
# Data directory location for k3s
|
|
k3s_data_dir: /var/lib/rancher/k3s
|
|
|
|
# Path for additional Kubernetes Manifests
|
|
# https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests
|
|
k3s_server_manifests_dir: "{{ k3s_data_dir }}/server/manifests"
|
|
|
|
# Config items that should not appear in k3s_server or k3s_agent
|
|
k3s_config_exclude:
|
|
- setting: server
|
|
correction: k3s_control_node_address
|
|
- setting: cluster-init
|
|
correction: k3s_etcd_datastore
|
|
- setting: token
|
|
correction: k3s_control_token
|
|
- setting: token-file
|
|
correction: k3s_token_location
|
|
|
|
# Config items and the versions that they were introduced
|
|
# k3s_config_version_check:
|
|
# - setting: example
|
|
# version: 1.19.3
|
|
|
|
# Config items that should be marked as experimental
|
|
k3s_experimental_config:
|
|
- setting: selinux
|
|
until: 1.19.4
|
|
- setting: rootless
|
|
- setting: secrets-encryption
|
|
- setting: agent-token
|
|
- setting: agent-token-file
|
|
- setting: cluster-reset
|
|
until: 1.19.5
|
|
|
|
# Config items that should be marked as deprecated
|
|
k3s_deprecated_config:
|
|
- setting: no-flannel
|
|
correction: "flannel-backend: 'none'"
|
|
# when: 0.10.2 # Example
|
|
- setting: cluster-secret
|
|
correction: token
|
|
- setting: no-deploy
|
|
correction: "disable: VALUE"
|
|
- setting: docker
|
|
correction: "docker: false"
|
|
when: 1.20.0
|