browbeat/ocp_on_osp/templates/osp-infra-node-machineset.yml.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

67 lines
2.4 KiB
Django/Jinja

apiVersion: v1
items:
- apiVersion: machine.openshift.io/v1beta1
kind: MachineSet
metadata:
creationTimestamp: null
labels:
{{ machineset_metadata_label_prefix }}/cluster-api-cluster: {{ cluster_name.stdout }}
{{ machineset_metadata_label_prefix }}/cluster-api-machine-role: infra
{{ machineset_metadata_label_prefix }}/cluster-api-machine-type: infra
name: {{ cluster_name.stdout }}-infra
namespace: openshift-machine-api
spec:
replicas: 3
selector:
matchLabels:
{{ machineset_metadata_label_prefix }}/cluster-api-cluster: {{ cluster_name.stdout }}
{{ machineset_metadata_label_prefix }}/cluster-api-machineset: {{ cluster_name.stdout }}-infra
template:
metadata:
creationTimestamp: null
labels:
{{ machineset_metadata_label_prefix }}/cluster-api-cluster: {{ cluster_name.stdout }}
{{ machineset_metadata_label_prefix }}/cluster-api-machine-role: infra
{{ machineset_metadata_label_prefix }}/cluster-api-machine-type: infra
{{ machineset_metadata_label_prefix }}/cluster-api-machineset: {{ cluster_name.stdout }}-infra
spec:
metadata:
creationTimestamp: null
labels:
node-role.kubernetes.io/infra: ""
providerSpec:
value:
apiVersion: openstackproviderconfig.openshift.io/v1alpha1
cloudName: openstack
cloudsSecret:
name: openstack-cloud-credentials
namespace: openshift-machine-api
flavor: "{{ openshift_infra_node_flavor }}"
image: {{ cluster_name.stdout }}-rhcos
kind: OpenstackProviderSpec
metadata:
creationTimestamp: null
networks:
- filter: {}
subnets:
- filter:
name: {{ cluster_name.stdout }}-nodes
tags: openshiftClusterID={{ cluster_name.stdout }}
securityGroups:
- filter: {}
name: {{ cluster_name.stdout }}-worker
serverMetadata:
Name: {{ cluster_name.stdout }}-worker
openshiftClusterID: {{ cluster_name.stdout }}
tags:
- openshiftClusterID={{ cluster_name.stdout }}
trunk: true
userDataSecret:
name: worker-user-data
versions:
kubelet: ""
status:
replicas: 0
kind: List
metadata: {}