-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcloudscaleconfig.yaml
43 lines (43 loc) · 1018 Bytes
/
cloudscaleconfig.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{- if eq .Values.cloudprovider "cloudscale" }}
{{- range $index, $nodepool := .Values.nodepools }}
---
# CloudScale configuration (ref. cloudscaleconfigs.rke-machine-config.cattle.io CRD)
apiVersion: rke-machine-config.cattle.io/v1
kind: CloudscaleConfig
metadata:
name: {{ $nodepool.name }}
namespace: fleet-default
# annotations:
# key: string
{{- if $nodepool.labels }}
labels:
{{ toYaml $nodepool.labels | indent 4 }}
{{- end }}
# antiAffinityWith: string
# flavor: string
# image: string
# noPublicNetwork: boolean
# serverGroups:
# - string
# sshKeyPath: string
sshPort: {{ $nodepool.sshPort | quote }}
{{- if $nodepool.sshUser }}
sshUser: {{ $nodepool.sshUser }}
{{- end }}
# token: string
# useIpv6: boolean
# usePrivateNetwork: boolean
{{- if $nodepool.userdata }}
userdata: {{ $nodepool.userdata }}
{{- end }}
# userdatafile: string
# volumeBulk:
# - string
# volumeSizeGb: string
# volumeSsd:
# - string
{{- if $nodepool.zone }}
zone: {{ $nodepool.zone }}
{{- end }}
{{- end }}
{{- end }}