-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding alibaba starting for infra or workload nodes (#83)
- Loading branch information
1 parent
9df8772
commit 8f3eb87
Showing
6 changed files
with
477 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
apiVersion: v1 | ||
kind: List | ||
metadata: {} | ||
items: | ||
- apiVersion: machine.openshift.io/v1beta1 | ||
kind: MachineSet | ||
metadata: | ||
labels: | ||
machine.openshift.io/cluster-api-cluster: ${CLUSTER_NAME} | ||
machine.openshift.io/cluster-api-machine-role: infra | ||
machine.openshift.io/cluster-api-machine-type: infra | ||
name: infra-${CLUSTER_REGION}-a | ||
namespace: openshift-machine-api | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
machine.openshift.io/cluster-api-cluster: ${CLUSTER_NAME} | ||
machine.openshift.io/cluster-api-machineset: infra-${CLUSTER_REGION}a | ||
template: | ||
metadata: | ||
labels: | ||
machine.openshift.io/cluster-api-cluster: ${CLUSTER_NAME} | ||
machine.openshift.io/cluster-api-machine-role: infra | ||
machine.openshift.io/cluster-api-machine-type: infra | ||
machine.openshift.io/cluster-api-machineset: infra-${CLUSTER_REGION}a | ||
spec: | ||
metadata: | ||
labels: | ||
node-role.kubernetes.io/infra: "" | ||
providerSpec: | ||
value: | ||
apiVersion: machine.openshift.io/v1 | ||
credentialsSecret: | ||
name: alibabacloud-credentials | ||
imageId: ${WORKER_MACHINESET_IMAGE} | ||
instanceType: ${OPENSHIFT_INFRA_NODE_INSTANCE_TYPE} | ||
kind: AlibabaCloudMachineProviderConfig | ||
ramRoleName: ${CLUSTER_NAME}-role-worker | ||
regionId: ${CLUSTER_REGION} | ||
resourceGroup: | ||
name: ${CLUSTER_NAME}-rg | ||
type: Name | ||
securityGroups: | ||
- tags: | ||
- Key: kubernetes.io/cluster/${CLUSTER_NAME} | ||
Value: owned | ||
- Key: GISV | ||
Value: ocp | ||
- Key: sigs.k8s.io/cloud-provider-alibaba/origin | ||
Value: ocp | ||
- Key: Name | ||
Value: ${CLUSTER_NAME}-sg-worker | ||
type: Tags | ||
systemDisk: | ||
category: cloud_essd | ||
size: ${OPENSHIFT_INFRA_NODE_VOLUME_SIZE} | ||
tag: | ||
- Key: kubernetes.io/cluster/${CLUSTER_NAME} | ||
Value: owned | ||
- Key: GISV | ||
Value: ocp | ||
- Key: sigs.k8s.io/cloud-provider-alibaba/origin | ||
Value: ocp | ||
userDataSecret: | ||
name: worker-user-data | ||
vSwitch: | ||
tags: | ||
- Key: kubernetes.io/cluster/${CLUSTER_NAME} | ||
Value: owned | ||
- Key: GISV | ||
Value: ocp | ||
- Key: sigs.k8s.io/cloud-provider-alibaba/origin | ||
Value: ocp | ||
- Key: Name | ||
Value: ${CLUSTER_NAME}-vswitch-${CLUSTER_REGION}a | ||
type: Tags | ||
vpcId: "" | ||
zoneId: ${CLUSTER_REGION}a | ||
taints: | ||
- key: node-role.kubernetes.io/infra | ||
effect: NoSchedule | ||
- apiVersion: machine.openshift.io/v1beta1 | ||
kind: MachineSet | ||
metadata: | ||
labels: | ||
machine.openshift.io/cluster-api-cluster: ${CLUSTER_NAME} | ||
machine.openshift.io/cluster-api-machine-role: infra | ||
machine.openshift.io/cluster-api-machine-type: infra | ||
name: infra-${CLUSTER_REGION}-b | ||
namespace: openshift-machine-api | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
machine.openshift.io/cluster-api-cluster: ${CLUSTER_NAME} | ||
machine.openshift.io/cluster-api-machineset: infra-${CLUSTER_REGION}b | ||
template: | ||
metadata: | ||
labels: | ||
machine.openshift.io/cluster-api-cluster: ${CLUSTER_NAME} | ||
machine.openshift.io/cluster-api-machine-role: infra | ||
machine.openshift.io/cluster-api-machine-type: infra | ||
machine.openshift.io/cluster-api-machineset: infra-${CLUSTER_REGION}b | ||
spec: | ||
metadata: | ||
labels: | ||
node-role.kubernetes.io/infra: "" | ||
providerSpec: | ||
value: | ||
apiVersion: machine.openshift.io/v1 | ||
credentialsSecret: | ||
name: alibabacloud-credentials | ||
imageId: ${WORKER_MACHINESET_IMAGE} | ||
instanceType: ${OPENSHIFT_INFRA_NODE_INSTANCE_TYPE} | ||
kind: AlibabaCloudMachineProviderConfig | ||
ramRoleName: ${CLUSTER_NAME}-role-worker | ||
regionId: ${CLUSTER_REGION} | ||
resourceGroup: | ||
name: ${CLUSTER_NAME}-rg | ||
type: Name | ||
securityGroups: | ||
- tags: | ||
- Key: kubernetes.io/cluster/${CLUSTER_NAME} | ||
Value: owned | ||
- Key: GISV | ||
Value: ocp | ||
- Key: sigs.k8s.io/cloud-provider-alibaba/origin | ||
Value: ocp | ||
- Key: Name | ||
Value: ${CLUSTER_NAME}-sg-worker | ||
type: Tags | ||
systemDisk: | ||
category: cloud_essd | ||
size: ${OPENSHIFT_INFRA_NODE_VOLUME_SIZE} | ||
tag: | ||
- Key: kubernetes.io/cluster/${CLUSTER_NAME} | ||
Value: owned | ||
- Key: GISV | ||
Value: ocp | ||
- Key: sigs.k8s.io/cloud-provider-alibaba/origin | ||
Value: ocp | ||
userDataSecret: | ||
name: worker-user-data | ||
vSwitch: | ||
tags: | ||
- Key: kubernetes.io/cluster/${CLUSTER_NAME} | ||
Value: owned | ||
- Key: GISV | ||
Value: ocp | ||
- Key: sigs.k8s.io/cloud-provider-alibaba/origin | ||
Value: ocp | ||
- Key: Name | ||
Value: ${CLUSTER_NAME}-vswitch-${CLUSTER_REGION}b | ||
type: Tags | ||
vpcId: "" | ||
zoneId: ${CLUSTER_REGION}b | ||
taints: | ||
- key: node-role.kubernetes.io/infra | ||
effect: NoSchedule |
Oops, something went wrong.