summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/templates/cluster.yml.j2
blob: 2d4233c8548ba384de3303fefd1fb648e1c79ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
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"
        feature-gates: {{ kubelet.feature_gates }}
    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 }}