-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add vultr provider interface methods
Signed-off-by: Yakul Garg <2000yeshu@gmail.com>
- Loading branch information
Showing
11 changed files
with
729 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright 2022 The Machine Controller Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
presubmits: | ||
- name: pull-machine-controller-e2e-vultr | ||
run_if_changed: "(pkg/cloudprovider/provider/vultr/|pkg/userdata)" | ||
decorate: true | ||
clone_uri: "ssh://git@github.com/kubermatic/machine-controller.git" | ||
labels: | ||
preset-vultr: "true" | ||
preset-e2e-ssh: "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.19-node-18-kind-0.17-5 | ||
command: | ||
- "./hack/ci/run-e2e-tests.sh" | ||
args: | ||
- "TestHetznerProvisioningE2E" | ||
env: | ||
- name: CLOUD_PROVIDER | ||
value: vultr | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
# If you change the namespace/name, you must also | ||
# adjust the rbac rules | ||
name: machine-controller-vultr | ||
namespace: kube-system | ||
type: Opaque | ||
stringData: | ||
apiKey: << VULTR_API_KEY >> | ||
--- | ||
apiVersion: "cluster.k8s.io/v1alpha1" | ||
kind: MachineDeployment | ||
metadata: | ||
name: vultr-machinedeployment | ||
namespace: kube-system | ||
spec: | ||
paused: false | ||
replicas: 1 | ||
strategy: | ||
type: RollingUpdate | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 0 | ||
minReadySeconds: 0 | ||
selector: | ||
matchLabels: | ||
foo: bar | ||
template: | ||
metadata: | ||
labels: | ||
foo: bar | ||
spec: | ||
providerSpec: | ||
value: | ||
sshPublicKeys: | ||
- "<< YOUR_PUBLIC_KEY >>" | ||
cloudProvider: "vultr" | ||
cloudProviderSpec: | ||
# Can also be set via the env var 'VULTR_API_KEY' on the machine-controller | ||
apiKey: | ||
secretKeyRef: | ||
namespace: kube-system | ||
name: machine-controller-vultr | ||
key: apiKey | ||
region: blr | ||
plan: 'vhf-8c-32gb' | ||
# Required: app_id, image_id, os_id, snapshot_id, or iso_id must be provided. Currently only os_id is supported. | ||
osId: 215 | ||
operatingSystem: "ubuntu" | ||
operatingSystemSpec: | ||
distUpgradeOnBoot: false | ||
disableAutoUpdate: true | ||
versions: | ||
kubelet: 1.24.9 |
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
Oops, something went wrong.