-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/v1.59] Fix vSphere anti-affinity (#1781)
* Fix vSphere anti-affinity (#1779) Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com> * Update image for vsphere anti-affinity prow job Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com> --------- Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com>
- Loading branch information
1 parent
9e086c4
commit a84f383
Showing
6 changed files
with
156 additions
and
69 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
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
54 changes: 54 additions & 0 deletions
54
test/e2e/provisioning/testdata/machinedeployment-vsphere-anti-affinity.yaml
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,54 @@ | ||
apiVersion: "cluster.k8s.io/v1alpha1" | ||
kind: MachineDeployment | ||
metadata: | ||
name: << MACHINE_NAME >> | ||
namespace: kube-system | ||
annotations: | ||
k8c.io/operating-system-profile: osp-<< OS_NAME >> | ||
spec: | ||
replicas: 3 | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 0 | ||
selector: | ||
matchLabels: | ||
name: << MACHINE_NAME >> | ||
template: | ||
metadata: | ||
labels: | ||
name: << MACHINE_NAME >> | ||
spec: | ||
providerSpec: | ||
value: | ||
sshPublicKeys: | ||
- "<< YOUR_PUBLIC_KEY >>" | ||
cloudProvider: "vsphere" | ||
cloudProviderSpec: | ||
templateVMName: '<< OS_Image_Template >>' | ||
username: '<< VSPHERE_USERNAME >>' | ||
vsphereURL: '<< VSPHERE_ADDRESS >>' | ||
datacenter: 'Hamburg' | ||
folder: '/Hamburg/vm/Kubermatic-ci' | ||
password: << VSPHERE_PASSWORD >> | ||
# example: 'https://your-vcenter:8443'. '/sdk' gets appended automatically | ||
cluster: Kubermatic | ||
vmAntiAffinity: true | ||
datastore: vsan | ||
cpus: 2 | ||
MemoryMB: 4096 | ||
diskSizeGB: << DISK_SIZE >> | ||
allowInsecure: true | ||
operatingSystem: "<< OS_NAME >>" | ||
operatingSystemSpec: | ||
distUpgradeOnBoot: false | ||
disableAutoUpdate: true | ||
attachSubscription: false | ||
# 'rhelSubscriptionManagerUser' is only used for rhel os and can be set via env var `RHEL_SUBSCRIPTION_MANAGER_USER` | ||
rhelSubscriptionManagerUser: "<< RHEL_SUBSCRIPTION_MANAGER_USER >>" | ||
# 'rhelSubscriptionManagerPassword' is only used for rhel os and can be set via env var `RHEL_SUBSCRIPTION_MANAGER_PASSWORD` | ||
rhelSubscriptionManagerPassword: "<< RHEL_SUBSCRIPTION_MANAGER_PASSWORD >>" | ||
rhsmOfflineToken: "<< REDHAT_SUBSCRIPTIONS_OFFLINE_TOKEN >>" | ||
versions: | ||
kubelet: "<< KUBERNETES_VERSION >>" |