forked from openshift-metal3/dev-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-config_yaml.j2
87 lines (87 loc) · 2.39 KB
/
install-config_yaml.j2
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
apiVersion: v1
baseDomain: {{ base_domain }}
compute:
- hyperthreading: Enabled
name: worker
replicas: {{ num_workers }}
architecture: {{ goCPUArchitecture }}
controlPlane:
architecture: {{ goCPUArchitecture }}
hyperthreading: Enabled
name: master
replicas: {{ num_masters }}
metadata:
name: {{ cluster_name }}
{% if boot_mode != "DISKIMAGE" %}
namespace: {{ cluster_namespace }}
{% endif %}
networking:
{% if ip_stack == "v4" %}
clusterNetwork:
- cidr: {{ cluster_subnet_v4 }}
hostPrefix: {{ cluster_host_prefix_v4 }}
machineNetwork:
- cidr: {{ external_subnet_v4 }}
serviceNetwork:
- {{ service_subnet_v4 }}
{% elif ip_stack == "v6" %}
clusterNetwork:
- cidr: {{ cluster_subnet_v6 }}
hostPrefix: {{ cluster_host_prefix_v6 }}
machineNetwork:
- cidr: {{ external_subnet_v6 }}
serviceNetwork:
- {{ service_subnet_v6 }}
{% else %}
clusterNetwork:
- cidr: {{ cluster_subnet_v4 }}
hostPrefix: {{ cluster_host_prefix_v4 }}
- cidr: {{ cluster_subnet_v6 }}
hostPrefix: {{ cluster_host_prefix_v6 }}
machineNetwork:
- cidr: {{ external_subnet_v4 }}
- cidr: {{ external_subnet_v6 }}
serviceNetwork:
- {{ service_subnet_v4 }}
- {{ service_subnet_v6 }}
{% endif %}
networkType: {{ network_type }}
platform:
{% if (platform_type == "none") %}
none: {}
{% elif (platform_type == "external") %}
external:
platformName: oci
{% else %}
{% set macs = agent_nodes_macs.split(',') %}
{% set hostnames = agent_nodes_hostnames.split(',') %}
baremetal:
apiVIPs:
{% set a_vips = api_vips.split(',') %}
{% for api_vip in a_vips %}
- {{ api_vip }}
{% endfor %}
ingressVIPs:
{% set i_vips = ingress_vips.split(',') %}
{% for ingress_vip in i_vips %}
- {{ ingress_vip }}
{% endfor %}
{% endif %}
pullSecret: {{ pull_secret_contents }}
sshKey: {{ ssh_pub_key }}
{% if mirror_images %}
imageContentSources:
{{ image_content_sources }}
{% if (mirror_command == "oc-mirror") and (agent_deploy_mce == "true") %}
- mirrors:
- "{{ local_registry_dns_name }}:{{ local_registry_port }}/multicluster-engine"
source: "registry.redhat.io/multicluster-engine"
- mirrors:
- "{{ local_registry_dns_name }}:{{ local_registry_port }}/rhel8"
source: "registry.redhat.io/rhel8"
- mirrors:
- "{{ local_registry_dns_name }}:{{ local_registry_port }}/redhat"
source: "registry.redhat.io/redhat"
{% endif %}
additionalTrustBundle: {{ ca_bundle_crt }}
{% endif %}