File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 2
2
## values.yaml
3
3
- ` vmDiskType ` :
4
4
- ` vi ` : creates VMs with VirtualImage in ` blockDeviceRefs `
5
- - ` vd ` : creates VMs with corresponding ` VirtualDisk `
5
+ - ` vd ` : creates VMs with corresponding ` VirtualDisk `
6
+ - ` viType ` :
7
+ - ` pvc ` : create vi with persistentVolumeClaim type
Original file line number Diff line number Diff line change @@ -7,11 +7,17 @@ metadata:
7
7
labels :
8
8
vm : {{ $.Values.resourcesPrefix }}
9
9
spec :
10
+ {{- if eq .Values.viType "pvc" }}
11
+ storage : PersistentVolumeClaim
12
+ persistentVolumeClaim :
13
+ storageClassName : {{ $.Values.storageClass }}
14
+ {{- else }}
10
15
storage : ContainerRegistry
11
16
dataSource :
12
17
type : " HTTP"
13
18
http :
14
19
url : {{ $.Values.imageURL }}
20
+ {{- end }}
15
21
{{- if ne .Values.vmDiskType "vi" }}
16
22
{{- $count := (.Values.count | int) }}
17
23
{{- range until $count }}
Original file line number Diff line number Diff line change 6
6
memory :
7
7
size : 256Mi
8
8
9
+ viType : vi
10
+ # viType: pvc
9
11
vmDiskType : vd
10
12
resources : " all"
11
13
resourcesPrefix : " performance"
You can’t perform that action at this time.
0 commit comments