Skip to content

Commit

Permalink
now using clusterctl.yaml vars so that its easy to fill in values
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakm-ntnx committed Mar 14, 2024
1 parent f447caa commit 489a43d
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 56 deletions.
20 changes: 10 additions & 10 deletions examples/capi-quick-start/nutanix-cluster-calico-crs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
nutanix:
controlPlaneEndpoint:
host: api-server-ip-fqdn
port: 6443
host: ${CONTROL_PLANE_ENDPOINT_IP}
port: ${CONTROL_PLANE_ENDPOINT_PORT}
failureDomains:
- cluster:
name: PE1
Expand All @@ -72,8 +72,8 @@ spec:
type: name
prismCentralEndpoint:
additionalTrustBundle: trust-bundle-root-ca
host: PC-ip-fqdn
insecure: false
host: ${NUTANIX_ENDPOINT}
insecure: ${NUTANIX_INSECURE}
port: 9440
- name: workerConfig
value:
Expand All @@ -86,22 +86,22 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
Expand Down
20 changes: 10 additions & 10 deletions examples/capi-quick-start/nutanix-cluster-calico-helm-addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
nutanix:
controlPlaneEndpoint:
host: api-server-ip-fqdn
port: 6443
host: ${CONTROL_PLANE_ENDPOINT_IP}
port: ${CONTROL_PLANE_ENDPOINT_PORT}
failureDomains:
- cluster:
name: PE1
Expand All @@ -72,8 +72,8 @@ spec:
type: name
prismCentralEndpoint:
additionalTrustBundle: trust-bundle-root-ca
host: PC-ip-fqdn
insecure: false
host: ${NUTANIX_ENDPOINT}
insecure: ${NUTANIX_INSECURE}
port: 9440
- name: workerConfig
value:
Expand All @@ -86,22 +86,22 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
Expand Down
20 changes: 10 additions & 10 deletions examples/capi-quick-start/nutanix-cluster-cilium-crs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
nutanix:
controlPlaneEndpoint:
host: api-server-ip-fqdn
port: 6443
host: ${CONTROL_PLANE_ENDPOINT_IP}
port: ${CONTROL_PLANE_ENDPOINT_PORT}
failureDomains:
- cluster:
name: PE1
Expand All @@ -72,8 +72,8 @@ spec:
type: name
prismCentralEndpoint:
additionalTrustBundle: trust-bundle-root-ca
host: PC-ip-fqdn
insecure: false
host: ${NUTANIX_ENDPOINT}
insecure: ${NUTANIX_INSECURE}
port: 9440
- name: workerConfig
value:
Expand All @@ -86,22 +86,22 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
Expand Down
20 changes: 10 additions & 10 deletions examples/capi-quick-start/nutanix-cluster-cilium-helm-addon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,30 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
nutanix:
controlPlaneEndpoint:
host: api-server-ip-fqdn
port: 6443
host: ${CONTROL_PLANE_ENDPOINT_IP}
port: ${CONTROL_PLANE_ENDPOINT_PORT}
failureDomains:
- cluster:
name: PE1
Expand All @@ -72,8 +72,8 @@ spec:
type: name
prismCentralEndpoint:
additionalTrustBundle: trust-bundle-root-ca
host: PC-ip-fqdn
insecure: false
host: ${NUTANIX_ENDPOINT}
insecure: ${NUTANIX_INSECURE}
port: 9440
- name: workerConfig
value:
Expand All @@ -86,22 +86,22 @@ spec:
value: value2
bootType: legacy
cluster:
name: PE1
name: ${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
gpus:
- name: gpu1
type: name
- name: gpu2
type: name
image:
name: image1
name: ${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
project:
name: prj1
type: name
subnet:
- name: subnet1
- name: ${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
Expand Down
32 changes: 16 additions & 16 deletions hack/examples/bases/nutanix/kustomization.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ patches:
- op: "add"
path: "/spec/topology/variables/0/value/nutanix"
value:
controlPlaneEndpoint:
host: $${CONTROL_PLANE_ENDPOINT_IP}
port: $${CONTROL_PLANE_ENDPOINT_PORT}
prismCentralEndpoint:
host: "PC-ip-fqdn"
additionalTrustBundle: trust-bundle-root-ca
host: $${NUTANIX_ENDPOINT}
insecure: $${NUTANIX_INSECURE}
port: 9440
insecure: false
additionalTrustBundle: "trust-bundle-root-ca"
controlPlaneEndpoint:
host: "api-server-ip-fqdn"
port: 6443
failureDomains:
- name: fd1
cluster:
Expand All @@ -53,18 +53,18 @@ patches:
machineDetails:
bootType: legacy
cluster:
name: PE1
name: $${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
image:
name: image1
name: $${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
subnet:
- name: $${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
subnet:
- name: subnet1
type: name
project:
name: prj1
type: name
Expand All @@ -85,18 +85,18 @@ patches:
machineDetails:
bootType: legacy
cluster:
name: PE1
name: $${NUTANIX_PRISM_ELEMENT_CLUSTER_NAME}
type: name
image:
name: image1
name: $${NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME}
type: name
memorySize: 4Gi
subnet:
- name: $${NUTANIX_SUBNET_NAME}
type: name
systemDiskSize: 40Gi
vcpuSockets: 2
vcpusPerSocket: 1
subnet:
- name: subnet1
type: name
project:
name: prj1
type: name
Expand Down

0 comments on commit 489a43d

Please sign in to comment.