-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Rancher cluster template for vSphere (#27)
* Dump chart version to 0.1.3 * Fix typo for azureconfig * Rename vsphereconfig * Remove useless taints field * Delete comment * Define tags as an array * Update vSphere config
- Loading branch information
Showing
17 changed files
with
155 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ nodepools: | |
controlplane: true | ||
worker: true | ||
labels: {} | ||
taints: {} | ||
quantity: 1 | ||
paused: false | ||
name: nodepool-1 |
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 |
---|---|---|
|
@@ -10,6 +10,5 @@ nodepools: | |
controlplane: true | ||
worker: true | ||
labels: {} | ||
taints: {} | ||
quantity: 1 | ||
name: nodepool-1 |
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 |
---|---|---|
|
@@ -10,6 +10,5 @@ nodepools: | |
controlplane: true | ||
worker: true | ||
labels: {} | ||
taints: {} | ||
quantity: 1 | ||
name: nodepool-1 |
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 |
---|---|---|
|
@@ -10,6 +10,5 @@ nodepools: | |
controlplane: true | ||
worker: true | ||
labels: {} | ||
taints: {} | ||
quantity: 1 | ||
name: nodepool-1 |
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 |
---|---|---|
|
@@ -10,6 +10,5 @@ nodepools: | |
controlplane: true | ||
worker: true | ||
labels: {} | ||
taints: {} | ||
quantity: 1 | ||
name: nodepool-1 |
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 |
---|---|---|
|
@@ -10,6 +10,5 @@ nodepools: | |
controlplane: true | ||
worker: true | ||
labels: {} | ||
taints: {} | ||
quantity: 1 | ||
name: nodepool-1 |
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
85 changes: 69 additions & 16 deletions
85
...er-templates/templates/vsphereconfig.yaml → ...plates/templates/vmwarevsphereconfig.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 |
---|---|---|
@@ -1,63 +1,116 @@ | ||
{{- if eq .Values.cloudprovider "vsphere" }} | ||
{{- range $index, $nodepool := .Values.nodepools }} | ||
--- | ||
# VMware vSphere configuration (ref. vmwarevsphereconfigs.rke-machine-config.cattle.io CRD) | ||
apiVersion: rke-machine-config.cattle.io/v1 | ||
kind: VmwarevsphereConfig | ||
metadata: | ||
name: {{ $nodepool.name }} | ||
namespace: fleet-default | ||
# annotations: | ||
# key: string | ||
{{- if $nodepool.labels }} | ||
{{- if $nodepool.annotations }} | ||
annotations: | ||
{{- toYaml $nodepool.annotations | indent 4 }} | ||
{{- end }} | ||
{{- if $nodepool.labels }} | ||
labels: | ||
{{ toYaml $nodepool.labels | indent 4 }} | ||
{{- end }} | ||
{{- toYaml $nodepool.labels | indent 4 }} | ||
{{- end }} | ||
# boot2dockerUrl: string | ||
{{- if $nodepool.cfgparam }} | ||
cfgparam: {{ $nodepool.cfgparam }} | ||
{{- end }} | ||
{{- if $nodepool.cloneFrom }} | ||
cloneFrom: {{ $nodepool.cloneFrom }} | ||
{{- end }} | ||
{{- if $nodepool.cloudConfig }} | ||
cloudConfig: | | ||
{{ $nodepool.cloudConfig | indent 2 }} | ||
{{- end }} | ||
{{- if $nodepool.cloudinit }} | ||
cloudinit: {{ $nodepool.cloudinit }} | ||
{{- end }} | ||
common: | ||
# cloudCredentialSecretName: string | ||
{{- if $nodepool.labels }} | ||
# cloudCredentialSecretName: string | ||
{{- if $nodepool.labels }} | ||
labels: | ||
{{ toYaml $nodepool.labels | indent 4 }} | ||
{{- end }} | ||
{{- if $nodepool.taints }} | ||
{{- toYaml $nodepool.labels | indent 4 }} | ||
{{- end }} | ||
{{- if $nodepool.taints }} | ||
taints: | ||
{{ toYaml $nodepool.taints | indent 4 }} | ||
{{- end }} | ||
{{- toYaml $nodepool.taints | indent 4 }} | ||
{{- end }} | ||
{{- if $nodepool.contentLibrary }} | ||
contentLibrary: {{ $nodepool.contentLibrary }} | ||
{{- end }} | ||
{{- if $nodepool.cpuCount }} | ||
cpuCount: {{ $nodepool.cpuCount | quote }} | ||
{{- end }} | ||
{{- if $nodepool.creationType }} | ||
creationType: {{ $nodepool.creationType }} | ||
{{- end }} | ||
{{- if $nodepool.customAttribute }} | ||
customAttribute: {{ $nodepool.customAttribute }} | ||
{{- end }} | ||
{{- if $nodepool.datacenter }} | ||
datacenter: {{ $nodepool.datacenter }} | ||
datastore: {{ $nodepool.datastore }} | ||
{{- end }} | ||
{{- if $nodepool.region }} | ||
datastore: {{ $nodepool.region }} | ||
{{- end }} | ||
{{- if $nodepool.datastoreCluster }} | ||
datastoreCluster: {{ $nodepool.datastoreCluster }} | ||
{{- end }} | ||
{{- if $nodepool.diskSize }} | ||
diskSize: {{ $nodepool.diskSize | quote }} | ||
{{- end }} | ||
{{- if $nodepool.folder }} | ||
folder: {{ $nodepool.folder }} | ||
{{- end }} | ||
{{- if $nodepool.hostsystem }} | ||
hostsystem: {{ $nodepool.hostsystem }} | ||
{{- end }} | ||
{{- if $nodepool.memorySize }} | ||
memorySize: {{ $nodepool.memorySize | quote }} | ||
{{- end }} | ||
{{- if $nodepool.network }} | ||
network: {{ $nodepool.network }} | ||
pool: {{ $nodepool.pool }} | ||
{{- end }} | ||
# os: string | ||
# password: string | ||
{{- if $nodepool.pool }} | ||
pool: {{ $nodepool.pool }} | ||
{{- end }} | ||
# providerID: string | ||
# sshPassword: string | ||
{{- if $nodepool.sshPort }} | ||
sshPort: {{ $nodepool.sshPort | quote }} | ||
{{- end }} | ||
{{- if $nodepool.sshUser }} | ||
sshUser: {{ $nodepool.sshUser }} | ||
{{- end }} | ||
{{- if $nodepool.sshUserGroup }} | ||
sshUserGroup: {{ $nodepool.sshUserGroup }} | ||
tag: {{ $nodepool.tag }} | ||
{{- end }} | ||
{{- if $nodepool.tags }} | ||
tag: {{ $nodepool.tags }} | ||
{{- end }} | ||
# username: string | ||
{{- if $nodepool.vappIpallocationpolicy }} | ||
vappIpallocationpolicy: {{ $nodepool.vappIpallocationpolicy }} | ||
{{- end }} | ||
{{- if $nodepool.vappIpprotocol }} | ||
vappIpprotocol: {{ $nodepool.vappIpprotocol }} | ||
{{- end }} | ||
{{- if $nodepool.vappProperty }} | ||
vappProperty: {{ $nodepool.vappProperty }} | ||
{{- end }} | ||
{{- if $nodepool.vappTransport }} | ||
vappTransport: {{ $nodepool.vappTransport }} | ||
{{- end }} | ||
{{- if $nodepool.vcenter }} | ||
vcenter: {{ $nodepool.vcenter }} | ||
{{- end }} | ||
{{- if $nodepool.vcenterPort }} | ||
vcenterPort: {{ $nodepool.vcenterPort | quote }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
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