0ae5a7cebc
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
67 lines
2.4 KiB
Django/Jinja
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: workload
|
|
{{ machineset_metadata_label_prefix }}/cluster-api-machine-type: workload
|
|
name: {{ cluster_name.stdout }}-workload
|
|
namespace: openshift-machine-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
{{ machineset_metadata_label_prefix }}/cluster-api-cluster: {{ cluster_name.stdout }}
|
|
{{ machineset_metadata_label_prefix }}/cluster-api-machineset: {{ cluster_name.stdout }}-workload
|
|
template:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
{{ machineset_metadata_label_prefix }}/cluster-api-cluster: {{ cluster_name.stdout }}
|
|
{{ machineset_metadata_label_prefix }}/cluster-api-machine-role: workload
|
|
{{ machineset_metadata_label_prefix }}/cluster-api-machine-type: workload
|
|
{{ machineset_metadata_label_prefix }}/cluster-api-machineset: {{ cluster_name.stdout }}-workload
|
|
spec:
|
|
metadata:
|
|
creationTimestamp: null
|
|
labels:
|
|
node-role.kubernetes.io/workload: ""
|
|
providerSpec:
|
|
value:
|
|
apiVersion: openstackproviderconfig.openshift.io/v1alpha1
|
|
cloudName: openstack
|
|
cloudsSecret:
|
|
name: openstack-cloud-credentials
|
|
namespace: openshift-machine-api
|
|
flavor: "{{ openshift_workload_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: {}
|