Petr Ospalý | fe49ee9 | 2019-04-20 00:53:01 +0200 | [diff] [blame] | 1 | nodes: |
| 2 | {# Note that we iterate through all nodes in relevant groups. |
| 3 | We check which groups they belong to exactly later to determine roles. #} |
| 4 | {% for node in groups['kubernetes'] | union(groups['kubernetes-control-plane']) %} |
| 5 | - address: "{{ hostvars[node].cluster_ip }}" |
| 6 | port: "22" |
| 7 | internal_address: "{{ hostvars[node].cluster_ip }}" |
| 8 | role: |
| 9 | {% if node in groups['kubernetes-control-plane'] %} |
| 10 | - controlplane |
| 11 | {% endif %} |
| 12 | {% if node in groups['kubernetes'] %} |
| 13 | - worker |
| 14 | - etcd |
| 15 | {% endif %} |
| 16 | hostname_override: "" |
| 17 | user: "{{ rke_username }}" |
| 18 | docker_socket: /var/run/docker.sock |
| 19 | ssh_key: "" |
| 20 | ssh_key_path: "{{ cluster_config_dir }}/cluster_key" |
| 21 | ssh_cert: "" |
| 22 | ssh_cert_path: "" |
| 23 | labels: {} |
| 24 | {% endfor %} |
| 25 | services: |
| 26 | etcd: |
| 27 | image: "" |
| 28 | extra_args: {} |
| 29 | extra_binds: [] |
| 30 | extra_env: [] |
| 31 | external_urls: [] |
| 32 | ca_cert: "" |
| 33 | cert: "" |
| 34 | key: "" |
| 35 | path: "" |
| 36 | snapshot: null |
| 37 | retention: "" |
| 38 | creation: "" |
| 39 | backup_config: null |
| 40 | kube-api: |
| 41 | image: "" |
| 42 | extra_args: {} |
| 43 | extra_binds: [] |
| 44 | extra_env: [] |
| 45 | service_cluster_ip_range: 10.43.0.0/16 |
| 46 | service_node_port_range: "" |
| 47 | pod_security_policy: false |
| 48 | always_pull_images: false |
| 49 | kube-controller: |
| 50 | image: "" |
| 51 | extra_args: {} |
| 52 | extra_binds: [] |
| 53 | extra_env: [] |
| 54 | cluster_cidr: 10.42.0.0/16 |
| 55 | service_cluster_ip_range: 10.43.0.0/16 |
| 56 | scheduler: |
| 57 | image: "" |
| 58 | extra_args: {} |
| 59 | extra_binds: [] |
| 60 | extra_env: [] |
| 61 | kubelet: |
| 62 | image: "" |
| 63 | extra_args: {} |
| 64 | extra_binds: [] |
| 65 | extra_env: [] |
| 66 | cluster_domain: cluster.local |
| 67 | infra_container_image: "" |
| 68 | cluster_dns_server: 10.43.0.10 |
| 69 | fail_swap_on: false |
| 70 | kubeproxy: |
| 71 | image: "" |
| 72 | extra_args: {} |
| 73 | extra_binds: [] |
| 74 | extra_env: [] |
| 75 | network: |
| 76 | plugin: canal |
| 77 | options: {} |
| 78 | authentication: |
| 79 | strategy: x509 |
| 80 | sans: [] |
| 81 | webhook: null |
| 82 | addons: "" |
Petr Ospalý | 67acfb5 | 2019-04-20 05:25:23 +0200 | [diff] [blame] | 83 | addons_include: |
| 84 | - "{{ cluster_config_dir }}/kubernetes-dashboard.yml" |
| 85 | - "{{ cluster_config_dir }}/k8s-dashboard-user.yml" |
Petr Ospalý | fe49ee9 | 2019-04-20 00:53:01 +0200 | [diff] [blame] | 86 | system_images: |
| 87 | etcd: "{{ rke.etcd }}" |
| 88 | alpine: "{{ rke.alpine }}" |
| 89 | nginx_proxy: "{{ rke.nginx_proxy }}" |
| 90 | cert_downloader: "{{ rke.cert_downloader }}" |
| 91 | kubernetes_services_sidecar: "{{ rke.kubernetes_services_sidecar }}" |
| 92 | kubedns: "{{ rke.kubedns }}" |
| 93 | dnsmasq: "{{ rke.dnsmasq }}" |
| 94 | kubedns_sidecar: "{{ rke.kubedns_sidecar }}" |
| 95 | kubedns_autoscaler: "{{ rke.kubedns_autoscaler }}" |
| 96 | coredns: "{{ rke.coredns }}" |
| 97 | coredns_autoscaler: "{{ rke.coredns_autoscaler }}" |
| 98 | kubernetes: "{{ rke.kubernetes }}" |
| 99 | flannel: "{{ rke.flannel }}" |
| 100 | flannel_cni: "{{ rke.flannel_cni }}" |
| 101 | calico_node: "{{ rke.calico_node }}" |
| 102 | calico_cni: "{{ rke.calico_cni }}" |
| 103 | calico_controllers: "" |
| 104 | calico_ctl: "{{ rke.calico_ctl }}" |
| 105 | canal_node: "{{ rke.canal_node }}" |
| 106 | canal_cni: "{{ rke.canal_cni }}" |
| 107 | canal_flannel: "{{ rke.canal_flannel }}" |
| 108 | weave_node: "{{ rke.weave_node }}" |
| 109 | weave_cni: "{{ rke.weave_cni }}" |
| 110 | pod_infra_container: "{{ rke.pod_infra_container }}" |
| 111 | ingress: "{{ rke.ingress }}" |
| 112 | ingress_backend: "{{ rke.ingress_backend }}" |
| 113 | metrics_server: "{{ rke.metrics_server }}" |
| 114 | ssh_key_path: "{{ cluster_config_dir }}/cluster_key" |
| 115 | ssh_cert_path: "" |
| 116 | ssh_agent_auth: false |
| 117 | authorization: |
| 118 | mode: none |
| 119 | options: {} |
| 120 | ignore_docker_version: false |
| 121 | kubernetes_version: "" |
| 122 | private_registries: [] |
| 123 | ingress: |
| 124 | provider: "" |
| 125 | options: {} |
| 126 | node_selector: {} |
| 127 | extra_args: {} |
| 128 | cluster_name: "" |
| 129 | cloud_provider: |
| 130 | name: "" |
| 131 | prefix_path: "" |
| 132 | addon_job_timeout: 0 |
| 133 | bastion_host: |
| 134 | address: "" |
| 135 | port: "" |
| 136 | user: "" |
| 137 | ssh_key: "" |
| 138 | ssh_key_path: "" |
| 139 | ssh_cert: "" |
| 140 | ssh_cert_path: "" |
| 141 | monitoring: |
| 142 | provider: "" |
| 143 | options: {} |
| 144 | restore: |
| 145 | restore: false |
| 146 | snapshot_name: "" |
| 147 | dns: null |