---
|
apiVersion: v1
|
metadata:
|
name: {{ guid }}
|
baseDomain: {{ ocp4_base_domain | default(guid + subdomain_base_suffix) }}
|
controlPlane:
|
name: master
|
hyperthreading: Enabled
|
platform:
|
{% if cloud_provider == 'ec2'| d(false) | bool %}
|
ImageId: {{ custom_image.image_id }}
|
aws:
|
type: {{ master_instance_type }}
|
rootVolume:
|
type: {{ master_storage_type }}
|
{% endif %}
|
{% if cloud_provider == 'osp' %}
|
openstack:
|
type: {{ master_instance_type }}
|
{% endif %}
|
replicas: {{ master_instance_count }}
|
compute:
|
- name: worker
|
hyperthreading: Enabled
|
platform:
|
{% if cloud_provider == 'ec2'| d(false) | bool %}
|
ImageId: {{ custom_image.image_id }}
|
aws:
|
type: {{ worker_instance_type }}
|
rootVolume:
|
type: {{ worker_storage_type }}
|
{% endif %}
|
{% if cloud_provider == 'osp' %}
|
openstack:
|
type: {{ worker_instance_type }}
|
{% endif %}
|
replicas: {{ worker_instance_count }}
|
networking:
|
clusterNetwork:
|
- cidr: 10.128.0.0/14
|
hostPrefix: 23
|
machineCIDR: 10.0.0.0/16
|
serviceNetwork:
|
- 172.30.0.0/16
|
networkType: OpenshiftSDN
|
platform:
|
{% if cloud_provider == 'ec2'| d(false) | bool %}
|
aws:
|
region: {{ aws_region_final | d(aws_region) }}
|
userTags: {{ hostvars.localhost.cf_tags_final | d({}) | to_json }}
|
{% endif %}
|
{% if cloud_provider == 'osp' %}
|
openstack:
|
cloud: {{ osp_cloud_name }}
|
computeFlavor: {{ worker_instance_type }}
|
externalNetwork: external
|
lbFloatingIP: {{ hostvars.localhost.ocp_api_fip }}
|
octaviaSupport: "1"
|
region: ""
|
trunkSupport: "0"
|
{% endif %}
|
pullSecret: '{{ ocp4_pull_secret | replace("'",'"') }}'
|
sshKey: |
|
{{ idrsapub.content | b64decode }}
|