2019-03-09 21:54:44 +01:00
|
|
|
---
|
|
|
|
|
2020-10-23 14:43:58 +02:00
|
|
|
# k3s cluster state, options: installed, started, stopped, restarted, uninstalled
|
2019-12-20 20:03:27 +01:00
|
|
|
# (default: installed)
|
|
|
|
k3s_cluster_state: installed
|
|
|
|
|
2019-03-09 21:54:44 +01:00
|
|
|
# Use a specific k3s version, if set to "false" we will get the latest
|
|
|
|
# k3s_release_version: v0.1.0
|
|
|
|
k3s_release_version: false
|
|
|
|
|
2020-05-16 21:18:10 +02:00
|
|
|
# When multiple play_hosts are present, attempt to cluster the nodes.
|
|
|
|
# Using false will create multiple standalone nodes.
|
|
|
|
# (default: true)
|
|
|
|
k3s_build_cluster: true
|
|
|
|
|
2019-03-09 21:54:44 +01:00
|
|
|
# URL for GitHub project
|
|
|
|
k3s_github_url: https://github.com/rancher/k3s
|
|
|
|
|
2020-09-21 20:38:51 +02:00
|
|
|
# Skip all tasks that validate configuration
|
|
|
|
k3s_skip_validation: false
|
|
|
|
|
2019-03-09 21:54:44 +01:00
|
|
|
# Installation directory for k3s
|
|
|
|
k3s_install_dir: /usr/local/bin
|
|
|
|
|
2020-07-25 15:03:53 +02:00
|
|
|
# Install using hard links rather than symbolic links
|
|
|
|
k3s_install_hard_links: false
|
|
|
|
|
2020-01-11 15:58:58 +01:00
|
|
|
# Path for additional Kubernetes Manifests
|
2020-01-11 15:10:19 +01:00
|
|
|
# https://rancher.com/docs/k3s/latest/en/advanced/#auto-deploying-manifests
|
|
|
|
k3s_server_manifests_dir: /var/lib/rancher/k3s/server/manifests
|
|
|
|
|
2020-01-11 20:03:16 +01:00
|
|
|
# A list of templates used for preconfigure the cluster.
|
2020-01-11 15:10:19 +01:00
|
|
|
k3s_server_manifests_templates: []
|
|
|
|
|
2019-12-21 18:11:30 +01:00
|
|
|
# Use experimental features in k3s?
|
|
|
|
k3s_use_experimental: false
|
|
|
|
|
2020-05-30 16:16:20 +02:00
|
|
|
# Allow for unsupported configurations in k3s?
|
|
|
|
k3s_use_unsupported_config: false
|
|
|
|
|
2020-01-11 13:31:23 +01:00
|
|
|
# Use a database or etcd cluster to enable HA. Examples below:
|
|
|
|
# MySQL:
|
|
|
|
# k3s_datastore_endpoint "mysql://username:password@tcp(hostname:3306)/database-name"
|
|
|
|
# PostgreSQL:
|
|
|
|
# k3s_datastore_endpoint: "postgres://username:password@hostname:port/database-name"
|
|
|
|
# Etcd:
|
|
|
|
# k3s_datastore_endpoint: "https://etcd-host-1:2379,https://etcd-host-2:2379,https://etcd-host-3:2379"
|
|
|
|
k3s_datastore_endpoint: false
|
|
|
|
|
|
|
|
# If using a database endpoint for HA, you can optionally set the CA file,
|
|
|
|
# Cert file and Key file for connecting to the database using TLS.
|
|
|
|
#
|
|
|
|
# These need to already be present on the play hosts.
|
|
|
|
#
|
|
|
|
# k3s_datastore_cafile: /path/to/ca.crt
|
|
|
|
# k3s_datastore_certfile: /path/to/cert.crt
|
|
|
|
# k3s_datastore_keyfile: /path/to/key.pem
|
|
|
|
|
2020-09-21 20:38:51 +02:00
|
|
|
# Use embedded Etcd for HA Datastore? (EXPERIMENTAL)
|
2020-09-17 22:01:20 +02:00
|
|
|
k3s_etcd_datastore: false
|
2020-01-11 13:31:23 +01:00
|
|
|
|
2020-09-21 20:38:51 +02:00
|
|
|
# Disable Etcd snapshots
|
|
|
|
k3s_etcd_disable_snapshots: false
|
|
|
|
|
|
|
|
# Etcd snapshot cron schedule. Example below is every 12 hours.
|
|
|
|
# k3s_etcd_snapshot_schedule_cron: "* */12 * * *"
|
|
|
|
|
|
|
|
# Etcd snapshot retention
|
|
|
|
# k3s_etcd_snapshot_retention: 5
|
|
|
|
|
|
|
|
# Etcd snapshot directory
|
|
|
|
# k3s_etcd_snapshot_directory: /server/db/snapshots
|
|
|
|
|
2019-10-26 23:49:48 +02:00
|
|
|
# HTTPS Listening port
|
|
|
|
k3s_https_port: 6443
|
|
|
|
|
2019-03-09 21:54:44 +01:00
|
|
|
# Ensure Docker is installed on nodes
|
2019-10-26 23:49:48 +02:00
|
|
|
k3s_use_docker: false
|
2019-09-29 19:03:50 +02:00
|
|
|
|
2019-10-26 23:49:48 +02:00
|
|
|
# Disable flannel, you will need to install your own CNI driver.
|
2019-09-29 19:03:50 +02:00
|
|
|
k3s_no_flannel: false
|
2019-10-26 23:49:48 +02:00
|
|
|
|
|
|
|
# Flannel backend ('none', 'vxlan', 'ipsec', or 'wireguard')
|
2019-12-21 18:11:30 +01:00
|
|
|
# k3s_flannel_backend: vxlan
|
2019-10-26 23:49:48 +02:00
|
|
|
|
|
|
|
# Disable CoreDNS, you will need to install your own DNS provider.
|
|
|
|
k3s_no_coredns: false
|
|
|
|
|
|
|
|
# Cluster IP for CoreDNS service. Should be in your service-cidr range.
|
|
|
|
# Use `false` to use default
|
|
|
|
k3s_cluster_dns: false
|
|
|
|
|
|
|
|
# Cluster Domain (default: "cluster.local")
|
2019-12-21 18:11:30 +01:00
|
|
|
# k3s_cluster_domain: cluster.local
|
2019-10-26 23:49:48 +02:00
|
|
|
|
|
|
|
# Disable Traefik
|
|
|
|
k3s_no_traefik: false
|
|
|
|
|
|
|
|
# Disable Service Load Balancer, you will need to install your own
|
|
|
|
# load balancer, such as MetalLB. Must be disabled if using your own
|
|
|
|
# load balancer service.
|
|
|
|
k3s_no_servicelb: false
|
|
|
|
|
2019-12-04 19:44:37 +01:00
|
|
|
# Do not use local storage
|
|
|
|
k3s_no_local_storage: false
|
|
|
|
|
|
|
|
# Do not deploy metrics server
|
|
|
|
k3s_no_metrics_server: false
|
|
|
|
|
2019-10-26 23:49:48 +02:00
|
|
|
# Disable default k3s scheduler
|
|
|
|
k3s_disable_scheduler: false
|
|
|
|
|
|
|
|
# Disable k3s cloud controller
|
|
|
|
k3s_disable_cloud_controller: false
|
|
|
|
|
|
|
|
# Disable k3s network policy controller
|
|
|
|
k3s_disable_network_policy: false
|
2020-02-25 09:48:09 +01:00
|
|
|
|
2020-09-26 19:49:11 +02:00
|
|
|
# Disable k3s default kube proxy.
|
|
|
|
k3s_disable_kube_proxy: false
|
|
|
|
|
2020-02-25 09:48:09 +01:00
|
|
|
# Default local storage path for local provisioner storage class, if set to "false" we will use the default
|
|
|
|
k3s_default_local_storage_path: false
|
2020-03-28 13:58:58 +01:00
|
|
|
|
|
|
|
# Use secret encryption at rest (EXPERIMENTAL)
|
|
|
|
k3s_secrets_encryption: false
|
2020-04-22 16:42:45 +02:00
|
|
|
|
2020-09-21 20:38:51 +02:00
|
|
|
# Enable SELinux in containerd (EXPERIMENTAL)
|
|
|
|
k3s_enable_selinux: false
|
|
|
|
|
2020-04-22 16:42:45 +02:00
|
|
|
# with become privileges for
|
|
|
|
k3s_become_for_all: false
|
|
|
|
k3s_become_for_systemd: null
|
|
|
|
k3s_become_for_install_dir: null
|
|
|
|
k3s_become_for_usr_local_bin: null
|
2020-05-20 19:50:58 +02:00
|
|
|
k3s_become_for_package_install: null
|
|
|
|
k3s_become_for_kubectl: null
|
|
|
|
k3s_become_for_uninstall: null
|