summaryrefslogtreecommitdiffstats
path: root/ansible/roles/rke/templates/cluster.yml.j2
blob: 53e9a09a06fdfb67aebf0a4a222d87d90953a857 (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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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:
  etcd: "{{ rke.etcd }}"
  alpine: "{{ rke.alpine }}"
  nginx_proxy: "{{ rke.nginx_proxy }}"
  cert_downloader: "{{ rke.cert_downloader }}"
  kubernetes_services_sidecar: "{{ rke.kubernetes_services_sidecar }}"
  kubedns: "{{ rke.kubedns }}"
  dnsmasq: "{{ rke.dnsmasq }}"
  kubedns_sidecar: "{{ rke.kubedns_sidecar }}"
  kubedns_autoscaler: "{{ rke.kubedns_autoscaler }}"
  coredns: "{{ rke.coredns }}"
  coredns_autoscaler: "{{ rke.coredns_autoscaler }}"
  kubernetes: "{{ rke.kubernetes }}"
  flannel: "{{ rke.flannel }}"
  flannel_cni: "{{ rke.flannel_cni }}"
  calico_node: "{{ rke.calico_node }}"
  calico_cni: "{{ rke.calico_cni }}"
  calico_controllers: ""
  calico_ctl: "{{ rke.calico_ctl }}"
  canal_node: "{{ rke.canal_node }}"
  canal_cni: "{{ rke.canal_cni }}"
  canal_flannel: "{{ rke.canal_flannel }}"
  weave_node: "{{ rke.weave_node }}"
  weave_cni: "{{ rke.weave_cni }}"
  pod_infra_container: "{{ rke.pod_infra_container }}"
  ingress: "{{ rke.ingress }}"
  ingress_backend: "{{ rke.ingress_backend }}"
  metrics_server: "{{ rke.metrics_server }}"
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: ""
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 }}