Skip to content

Commit 1be5cf8

Browse files
committed
now using clusterctl.yaml vars so that its easy to fill in values
1 parent a83dfcf commit 1be5cf8

File tree

5 files changed

+56
-56
lines changed

5 files changed

+56
-56
lines changed

examples/capi-quick-start/nutanix-cluster-calico-crs.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@ spec:
3737
value: value2
3838
bootType: legacy
3939
cluster:
40-
name: PE1
40+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
4141
type: name
4242
gpus:
4343
- name: gpu1
4444
type: name
4545
- name: gpu2
4646
type: name
4747
image:
48-
name: image1
48+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
4949
type: name
5050
memorySize: 4Gi
5151
project:
5252
name: prj1
5353
type: name
5454
subnet:
55-
- name: subnet1
55+
- name: ${NUTANIX_SUBNET_NAME}
5656
type: name
5757
systemDiskSize: 40Gi
5858
vcpuSockets: 2
5959
vcpusPerSocket: 1
6060
nutanix:
6161
controlPlaneEndpoint:
62-
host: api-server-ip-fqdn
63-
port: 6443
62+
host: ${CONTROL_PLANE_ENDPOINT_IP}
63+
port: ${CONTROL_PLANE_ENDPOINT_PORT}
6464
failureDomains:
6565
- cluster:
6666
name: PE1
@@ -72,8 +72,8 @@ spec:
7272
type: name
7373
prismCentralEndpoint:
7474
additionalTrustBundle: trust-bundle-root-ca
75-
host: PC-ip-fqdn
76-
insecure: false
75+
host: ${NUTANIX_ENDPOINT}
76+
insecure: ${NUTANIX_INSECURE}
7777
port: 9440
7878
- name: workerConfig
7979
value:
@@ -86,22 +86,22 @@ spec:
8686
value: value2
8787
bootType: legacy
8888
cluster:
89-
name: PE1
89+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
9090
type: name
9191
gpus:
9292
- name: gpu1
9393
type: name
9494
- name: gpu2
9595
type: name
9696
image:
97-
name: image1
97+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
9898
type: name
9999
memorySize: 4Gi
100100
project:
101101
name: prj1
102102
type: name
103103
subnet:
104-
- name: subnet1
104+
- name: ${NUTANIX_SUBNET_NAME}
105105
type: name
106106
systemDiskSize: 40Gi
107107
vcpuSockets: 2

examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@ spec:
3737
value: value2
3838
bootType: legacy
3939
cluster:
40-
name: PE1
40+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
4141
type: name
4242
gpus:
4343
- name: gpu1
4444
type: name
4545
- name: gpu2
4646
type: name
4747
image:
48-
name: image1
48+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
4949
type: name
5050
memorySize: 4Gi
5151
project:
5252
name: prj1
5353
type: name
5454
subnet:
55-
- name: subnet1
55+
- name: ${NUTANIX_SUBNET_NAME}
5656
type: name
5757
systemDiskSize: 40Gi
5858
vcpuSockets: 2
5959
vcpusPerSocket: 1
6060
nutanix:
6161
controlPlaneEndpoint:
62-
host: api-server-ip-fqdn
63-
port: 6443
62+
host: ${CONTROL_PLANE_ENDPOINT_IP}
63+
port: ${CONTROL_PLANE_ENDPOINT_PORT}
6464
failureDomains:
6565
- cluster:
6666
name: PE1
@@ -72,8 +72,8 @@ spec:
7272
type: name
7373
prismCentralEndpoint:
7474
additionalTrustBundle: trust-bundle-root-ca
75-
host: PC-ip-fqdn
76-
insecure: false
75+
host: ${NUTANIX_ENDPOINT}
76+
insecure: ${NUTANIX_INSECURE}
7777
port: 9440
7878
- name: workerConfig
7979
value:
@@ -86,22 +86,22 @@ spec:
8686
value: value2
8787
bootType: legacy
8888
cluster:
89-
name: PE1
89+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
9090
type: name
9191
gpus:
9292
- name: gpu1
9393
type: name
9494
- name: gpu2
9595
type: name
9696
image:
97-
name: image1
97+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
9898
type: name
9999
memorySize: 4Gi
100100
project:
101101
name: prj1
102102
type: name
103103
subnet:
104-
- name: subnet1
104+
- name: ${NUTANIX_SUBNET_NAME}
105105
type: name
106106
systemDiskSize: 40Gi
107107
vcpuSockets: 2

examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@ spec:
3737
value: value2
3838
bootType: legacy
3939
cluster:
40-
name: PE1
40+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
4141
type: name
4242
gpus:
4343
- name: gpu1
4444
type: name
4545
- name: gpu2
4646
type: name
4747
image:
48-
name: image1
48+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
4949
type: name
5050
memorySize: 4Gi
5151
project:
5252
name: prj1
5353
type: name
5454
subnet:
55-
- name: subnet1
55+
- name: ${NUTANIX_SUBNET_NAME}
5656
type: name
5757
systemDiskSize: 40Gi
5858
vcpuSockets: 2
5959
vcpusPerSocket: 1
6060
nutanix:
6161
controlPlaneEndpoint:
62-
host: api-server-ip-fqdn
63-
port: 6443
62+
host: ${CONTROL_PLANE_ENDPOINT_IP}
63+
port: ${CONTROL_PLANE_ENDPOINT_PORT}
6464
failureDomains:
6565
- cluster:
6666
name: PE1
@@ -72,8 +72,8 @@ spec:
7272
type: name
7373
prismCentralEndpoint:
7474
additionalTrustBundle: trust-bundle-root-ca
75-
host: PC-ip-fqdn
76-
insecure: false
75+
host: ${NUTANIX_ENDPOINT}
76+
insecure: ${NUTANIX_INSECURE}
7777
port: 9440
7878
- name: workerConfig
7979
value:
@@ -86,22 +86,22 @@ spec:
8686
value: value2
8787
bootType: legacy
8888
cluster:
89-
name: PE1
89+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
9090
type: name
9191
gpus:
9292
- name: gpu1
9393
type: name
9494
- name: gpu2
9595
type: name
9696
image:
97-
name: image1
97+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
9898
type: name
9999
memorySize: 4Gi
100100
project:
101101
name: prj1
102102
type: name
103103
subnet:
104-
- name: subnet1
104+
- name: ${NUTANIX_SUBNET_NAME}
105105
type: name
106106
systemDiskSize: 40Gi
107107
vcpuSockets: 2

examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,30 @@ spec:
3737
value: value2
3838
bootType: legacy
3939
cluster:
40-
name: PE1
40+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
4141
type: name
4242
gpus:
4343
- name: gpu1
4444
type: name
4545
- name: gpu2
4646
type: name
4747
image:
48-
name: image1
48+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
4949
type: name
5050
memorySize: 4Gi
5151
project:
5252
name: prj1
5353
type: name
5454
subnet:
55-
- name: subnet1
55+
- name: ${NUTANIX_SUBNET_NAME}
5656
type: name
5757
systemDiskSize: 40Gi
5858
vcpuSockets: 2
5959
vcpusPerSocket: 1
6060
nutanix:
6161
controlPlaneEndpoint:
62-
host: api-server-ip-fqdn
63-
port: 6443
62+
host: ${CONTROL_PLANE_ENDPOINT_IP}
63+
port: ${CONTROL_PLANE_ENDPOINT_PORT}
6464
failureDomains:
6565
- cluster:
6666
name: PE1
@@ -72,8 +72,8 @@ spec:
7272
type: name
7373
prismCentralEndpoint:
7474
additionalTrustBundle: trust-bundle-root-ca
75-
host: PC-ip-fqdn
76-
insecure: false
75+
host: ${NUTANIX_ENDPOINT}
76+
insecure: ${NUTANIX_INSECURE}
7777
port: 9440
7878
- name: workerConfig
7979
value:
@@ -86,22 +86,22 @@ spec:
8686
value: value2
8787
bootType: legacy
8888
cluster:
89-
name: PE1
89+
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
9090
type: name
9191
gpus:
9292
- name: gpu1
9393
type: name
9494
- name: gpu2
9595
type: name
9696
image:
97-
name: image1
97+
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
9898
type: name
9999
memorySize: 4Gi
100100
project:
101101
name: prj1
102102
type: name
103103
subnet:
104-
- name: subnet1
104+
- name: ${NUTANIX_SUBNET_NAME}
105105
type: name
106106
systemDiskSize: 40Gi
107107
vcpuSockets: 2

hack/examples/bases/nutanix/kustomization.yaml.tmpl

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ patches:
2929
- op: "add"
3030
path: "/spec/topology/variables/0/value/nutanix"
3131
value:
32+
controlPlaneEndpoint:
33+
host: $${CONTROL_PLANE_ENDPOINT_IP}
34+
port: $${CONTROL_PLANE_ENDPOINT_PORT}
3235
prismCentralEndpoint:
33-
host: "PC-ip-fqdn"
36+
additionalTrustBundle: trust-bundle-root-ca
37+
host: $${NUTANIX_ENDPOINT}
38+
insecure: $${NUTANIX_INSECURE}
3439
port: 9440
35-
insecure: false
36-
additionalTrustBundle: "trust-bundle-root-ca"
37-
controlPlaneEndpoint:
38-
host: "api-server-ip-fqdn"
39-
port: 6443
4040
failureDomains:
4141
- name: fd1
4242
cluster:
@@ -53,18 +53,18 @@ patches:
5353
machineDetails:
5454
bootType: legacy
5555
cluster:
56-
name: PE1
56+
name: $${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
5757
type: name
5858
image:
59-
name: image1
59+
name: $${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
6060
type: name
6161
memorySize: 4Gi
62+
subnet:
63+
- name: $${NUTANIX_SUBNET_NAME}
64+
type: name
6265
systemDiskSize: 40Gi
6366
vcpuSockets: 2
6467
vcpusPerSocket: 1
65-
subnet:
66-
- name: subnet1
67-
type: name
6868
project:
6969
name: prj1
7070
type: name
@@ -85,18 +85,18 @@ patches:
8585
machineDetails:
8686
bootType: legacy
8787
cluster:
88-
name: PE1
88+
name: $${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
8989
type: name
9090
image:
91-
name: image1
91+
name: $${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
9292
type: name
9393
memorySize: 4Gi
94+
subnet:
95+
- name: $${NUTANIX_SUBNET_NAME}
96+
type: name
9497
systemDiskSize: 40Gi
9598
vcpuSockets: 2
9699
vcpusPerSocket: 1
97-
subnet:
98-
- name: subnet1
99-
type: name
100100
project:
101101
name: prj1
102102
type: name

0 commit comments

Comments
 (0)