browbeat/ocp_on_osp/templates/install-config.yaml.j2
rajeshP524 0ae5a7cebc Install Ocp on Osp
This patch introduces a new workload called "ocp_on_osp".
This workload installs Openshift cluster on Openstack as
a part of Dynamic Workloads.

Change-Id: I5c0a1ef04bf0e82563e7d17fdd9688f938d1e33f
2022-09-22 13:28:31 +05:30

52 lines
1.3 KiB
Django/Jinja

#jinja2: trim_blocks:True, lstrip_blocks:True
apiVersion: v1
baseDomain: "{{ ocp_base_domain }}"
compute:
- name: worker
replicas: {{ worker_nodes }}
{% if ocp_worker_flavor != "" %}
platform:
openstack:
type: {{ ocp_worker_flavor }}
{% else %}
platform: {}
{% endif %}
controlPlane:
name: master
replicas: {{ master_nodes }}
{% if ocp_master_flavor != "" %}
platform:
openstack:
type: {{ ocp_master_flavor }}
{% else %}
platform: {}
{% endif %}
metadata:
name: "{{ ocp_cluster_name }}"
networking:
clusterNetwork:
- cidr: 10.128.0.0/13
hostPrefix: 22
serviceCIDR: 172.30.0.0/16
machineCIDR: 10.0.0.0/16
type: "{{ ocp_network_type }}"
platform:
openstack:
{% if ocp_release[:3]|float >= 4.7 %}
defaultMachinePlatform:
type: {{ ocp_worker_flavor }}
{% else %}
computeFlavor: "m4.xlarge"
{% endif %}
cloud: "{{ osp_project_name }}"
externalNetwork: "{{ public_net_name }}"
region: "regionOne"
lbFloatingIP: "{{ api_floating_ip }}"
ingressFloatingIP: "{{ ingress_floating_ip }}"
externalDNS: ["{{ ansible_dns.nameservers| join('", "') }}"]
octaviaSupport: "1"
trunkSupport: "1"
pullSecret: {{ ocp_pull_secret }}
sshKey: |
{{ ssh_public_key }}