-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/v1.57] Fix vSphere anti-affinity (#1783)
* Fix vSphere anti-affinity (#1779) Signed-off-by: Waleed Malik <[email protected]> * Fixes Signed-off-by: Waleed Malik <[email protected]> --------- Signed-off-by: Waleed Malik <[email protected]>
- Loading branch information
1 parent
54f900e
commit 7f39570
Showing
6 changed files
with
151 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,3 +140,35 @@ presubmits: | |
cpu: 2 | ||
limits: | ||
memory: 7Gi | ||
|
||
- name: pull-machine-controller-e2e-vsphere-anti-affinity | ||
always_run: false | ||
decorate: true | ||
clone_uri: "ssh://[email protected]/kubermatic/machine-controller.git" | ||
labels: | ||
preset-hetzner: "true" | ||
preset-e2e-ssh: "true" | ||
preset-vsphere: "true" | ||
preset-rhel: "true" | ||
preset-goproxy: "true" | ||
preset-kind-volume-mounts: "true" | ||
preset-docker-mirror: "true" | ||
preset-kubeconfig-ci: "true" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.20-node-18-kind-0.20-13 | ||
command: | ||
- "./hack/ci/run-e2e-tests.sh" | ||
args: | ||
- "TestVsphereAntiAffinityProvisioningE2E" | ||
env: | ||
- name: CLOUD_PROVIDER | ||
value: vsphere | ||
securityContext: | ||
privileged: true | ||
resources: | ||
requests: | ||
memory: 7Gi | ||
cpu: 2 | ||
limits: | ||
memory: 7Gi |
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 >>" |