Skip to content

Commit c029153

Browse files
committed
Add Vultr cloud provider helm support
Signed-off-by: Carlos Mondragon <cmondragon@vultr.com>
1 parent 4063e80 commit c029153

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

cluster-autoscaler/charts/cluster-autoscaler/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ name: cluster-autoscaler
1111
sources:
1212
- https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler
1313
type: application
14-
version: 9.55.1
14+
version: 9.56.0

cluster-autoscaler/charts/cluster-autoscaler/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ To create a valid configuration, follow instructions for your cloud provider:
7676
- [Exoscale](#exoscale)
7777
- [Hetzner Cloud](#hetzner-cloud)
7878
- [Civo](#civo)
79+
- [Vultr](#vultr)
7980

8081
### Templating the autoDiscovery.clusterName
8182

@@ -302,6 +303,25 @@ Otherwise specify the following parameters:
302303

303304
Read [cluster-autoscaler/cloudprovider/civo/README.md](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/civo/README.md) for further information on the setup without helm.
304305

306+
### Vultr
307+
308+
The following parameters are required:
309+
310+
- `cloudProvider=vultr`
311+
- `cloudConfigPath=/etc/kubernetes/cloud-config`
312+
313+
A Vultr cloud configuration file must be provided as a valid JSON file. It contains the Vultr API token and the VKE cluster ID.
314+
315+
The JSON configuration file supports the following fields:
316+
317+
```JSON
318+
{
319+
"cluster_id": "<VKE_CLUSTER_ID>",
320+
"token": "<VULTR_API_KEY>"
321+
}
322+
```
323+
Read [cluster-autoscaler/cloudprovider/vultr/README.md](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/vultr/README.md) for further information on the setup without helm.
324+
305325
## Uninstalling the Chart
306326

307327
To uninstall `my-release`:

cluster-autoscaler/charts/cluster-autoscaler/README.md.gotmpl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ To create a valid configuration, follow instructions for your cloud provider:
7676
- [Exoscale](#exoscale)
7777
- [Hetzner Cloud](#hetzner-cloud)
7878
- [Civo](#civo)
79+
- [Vultr](#vultr)
7980

8081
### Templating the autoDiscovery.clusterName
8182

@@ -302,6 +303,25 @@ Otherwise specify the following parameters:
302303

303304
Read [cluster-autoscaler/cloudprovider/civo/README.md](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/civo/README.md) for further information on the setup without helm.
304305

306+
### Vultr
307+
308+
The following parameters are required:
309+
310+
- `cloudProvider=vultr`
311+
- `cloudConfigPath=/etc/kubernetes/cloud-config`
312+
313+
A Vultr cloud configuration file must be provided as a valid JSON file. It contains the Vultr API token and the VKE cluster ID.
314+
315+
The JSON configuration file supports the following fields:
316+
317+
```JSON
318+
{
319+
"cluster_id": "<VKE_CLUSTER_ID>",
320+
"token": "<VULTR_API_KEY>"
321+
}
322+
```
323+
Read [cluster-autoscaler/cloudprovider/vultr/README.md](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/vultr/README.md) for further information on the setup without helm.
324+
305325
## Uninstalling the Chart
306326

307327
To uninstall `my-release`:

cluster-autoscaler/charts/cluster-autoscaler/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ spec:
7979
{{- end }}
8080
{{- end }}
8181
{{- end }}
82-
{{- if eq .Values.cloudProvider "rancher" }}
82+
{{- if or (eq .Values.cloudProvider "rancher") (eq .Values.cloudProvider "vultr") }}
8383
{{- if .Values.cloudConfigPath }}
8484
- --cloud-config={{ .Values.cloudConfigPath }}
8585
{{- end }}

0 commit comments

Comments
 (0)