blob: 55447286c4527841e9abe69e3c421c79957c58b0 [file] [log] [blame]
nodes:
{% for node in groups['kubernetes'] %}
- address: "{{ hostvars[node].external_ip | default(hostvars[node].cluster_ip) }}"
port: "22"
internal_address: "{{ hostvars[node].cluster_ip }}"
role:
{% if node in groups['kubernetes-control-plane'] %}
- controlplane
{% endif %}
{% if node in groups['kubernetes-node'] %}
- worker
{% endif %}
{% if node in groups['kubernetes-etcd'] %}
- etcd
{% endif %}
hostname_override: "{{ node }}"
user: "{{ rke_username }}"
docker_socket: /var/run/docker.sock
ssh_key: ""
ssh_key_path: "{{ cluster_config_dir }}/cluster_key"
ssh_cert: ""
ssh_cert_path: ""
labels: {}
{% endfor %}
services:
etcd:
image: ""
{% if rke_etcd.enabled_custom_etcd_storage %}
extra_args:
data-dir: "{{ rke_etcd.storage_mountpoint }}"
extra_binds:
- "{{ rke_etcd.storage_path }}:{{ rke_etcd.storage_mountpoint }}"
{% else %}
extra_args: {}
extra_binds: []
{% endif %}
extra_env: []
external_urls: []
ca_cert: ""
cert: ""
key: ""
path: ""
snapshot: null
retention: ""
creation: ""
backup_config: null
kube-api:
image: ""
extra_args: {}
extra_binds: []
extra_env: []
service_cluster_ip_range: 10.43.0.0/16
service_node_port_range: ""
pod_security_policy: false
always_pull_images: false
kube-controller:
image: ""
extra_args: {}
extra_binds: []
extra_env: []
cluster_cidr: 10.42.0.0/16
service_cluster_ip_range: 10.43.0.0/16
scheduler:
image: ""
extra_args: {}
extra_binds: []
extra_env: []
kubelet:
image: ""
extra_args:
dynamic-config-dir: "/kubelet-dynamic-config-dir"
config: "/kubelet-static-config.yml"
extra_binds:
- "{{ kubernetes_config_dir }}/{{ kubelet.static_config }}:/kubelet-static-config.yml:ro"
extra_env: []
cluster_domain: cluster.local
infra_container_image: ""
cluster_dns_server: 10.43.0.10
fail_swap_on: false
kubeproxy:
image: ""
extra_args: {}
extra_binds: []
extra_env: []
network:
plugin: canal
options: {}
authentication:
strategy: x509
sans: []
webhook: null
addons: ""
addons_include:
- "{{ cluster_config_dir }}/kubernetes-dashboard.yml"
- "{{ cluster_config_dir }}/k8s-dashboard-user.yml"
system_images: {}
ssh_key_path: "{{ cluster_config_dir }}/cluster_key"
ssh_cert_path: ""
ssh_agent_auth: false
authorization:
mode: none
options: {}
ignore_docker_version: false
kubernetes_version: {{ rke_kubernetes_version }}
private_registries: []
ingress:
provider: ""
options: {}
node_selector: {}
extra_args: {}
cluster_name: ""
cloud_provider:
name: ""
prefix_path: ""
addon_job_timeout: 0
bastion_host:
address: ""
port: ""
user: ""
ssh_key: ""
ssh_key_path: ""
ssh_cert: ""
ssh_cert_path: ""
monitoring:
provider: ""
options: {}
restore:
restore: false
snapshot_name: ""
dns: {{ rke_dns }}