99280523353970b556a86ac3a47f6a7fbc236ddc
[integration.git] / deployment / noheat / cluster-rke / ansible / roles / setup_k8s / templates / cluster.yml.j2
1 # An example of an HA Kubernetes cluster for ONAP
2 nodes:
3 {% for host in (groups['control'] | list() ) %}
4 - address: "{{ hostvars[host]['ansible_host'] }}"
5   port: "22"
6   role:
7   - controlplane
8   - etcd
9   hostname_override: "onap-control-{{ loop.index }}"
10   user: {{ ansible_user_id }}
11   ssh_key_path: "{{ ansible_ssh_private_key_file }}"
12 {% endfor %}
13 {% for host in (groups['workers'] | list()) %}
14 - address: "{{ hostvars[host]['ansible_host'] }}"
15   port: "22"
16   role:
17   - worker
18   hostname_override: "onap-k8s-{{ loop.index }}"
19   user: {{ ansible_user_id }}
20   ssh_key_path: "{{ ansible_ssh_private_key_file }}"
21 {% endfor %}
22 services:
23   kube-api:
24     service_cluster_ip_range: 10.43.0.0/16
25     pod_security_policy: false
26     always_pull_images: false
27   kube-controller:
28     cluster_cidr: 10.42.0.0/16
29     service_cluster_ip_range: 10.43.0.0/16
30   kubelet:
31     cluster_domain: cluster.local
32     cluster_dns_server: 10.43.0.10
33     fail_swap_on: false
34 network:
35   plugin: canal
36 authentication:
37   strategy: x509
38 ssh_key_path: "{{ ansible_ssh_private_key_file }}"
39 ssh_agent_auth: false
40 authorization:
41   mode: rbac
42 ignore_docker_version: false
43 kubernetes_version: "{{ k8s_version }}"
44 private_registries:
45 - url: nexus3.onap.org:10001
46   user: docker
47   password: docker
48   is_default: true
49 cluster_name: "onap"
50 restore:
51   restore: false
52   snapshot_name: ""