This repository was archived by the owner on Apr 11, 2024. It is now read-only.
File tree 7 files changed +120
-0
lines changed
examples/capi-quick-start
additional-resources/nutanix
7 files changed +120
-0
lines changed Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
+ kind : Secret
3
+ metadata :
4
+ labels :
5
+ cluster.x-k8s.io/provider : nutanix
6
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
7
+ stringData :
8
+ key : ${NUTANIX_PRISM_ELEMENT_ENDPOINT}:${NUTANIX_PORT}:${NUTANIX_USER}:${NUTANIX_PASSWORD}
9
+ ---
10
+ apiVersion : v1
2
11
data :
3
12
nutanix-ccm.yaml : |
4
13
---
@@ -317,6 +326,19 @@ spec:
317
326
cni :
318
327
provider : Calico
319
328
strategy : ClusterResourceSet
329
+ csi :
330
+ defaultStorage :
331
+ providerName : nutanix
332
+ storageClassConfigName : nutanix-volume
333
+ providers :
334
+ - credentials :
335
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
336
+ name : nutanix
337
+ storageClassConfig :
338
+ - name : nutanix-volume
339
+ parameters :
340
+ storageContainer : ${NUTANIX_STORAGE_CONTAINER_NAME}
341
+ strategy : HelmAddon
320
342
nfd :
321
343
strategy : ClusterResourceSet
322
344
controlPlane :
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
+ kind : Secret
3
+ metadata :
4
+ labels :
5
+ cluster.x-k8s.io/provider : nutanix
6
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
7
+ stringData :
8
+ key : ${NUTANIX_PRISM_ELEMENT_ENDPOINT}:${NUTANIX_PORT}:${NUTANIX_USER}:${NUTANIX_PASSWORD}
9
+ ---
10
+ apiVersion : v1
2
11
data :
3
12
nutanix-ccm.yaml : |
4
13
---
@@ -317,6 +326,19 @@ spec:
317
326
cni :
318
327
provider : Calico
319
328
strategy : HelmAddon
329
+ csi :
330
+ defaultStorage :
331
+ providerName : nutanix
332
+ storageClassConfigName : nutanix-volume
333
+ providers :
334
+ - credentials :
335
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
336
+ name : nutanix
337
+ storageClassConfig :
338
+ - name : nutanix-volume
339
+ parameters :
340
+ storageContainer : ${NUTANIX_STORAGE_CONTAINER_NAME}
341
+ strategy : HelmAddon
320
342
nfd :
321
343
strategy : HelmAddon
322
344
controlPlane :
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
+ kind : Secret
3
+ metadata :
4
+ labels :
5
+ cluster.x-k8s.io/provider : nutanix
6
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
7
+ stringData :
8
+ key : ${NUTANIX_PRISM_ELEMENT_ENDPOINT}:${NUTANIX_PORT}:${NUTANIX_USER}:${NUTANIX_PASSWORD}
9
+ ---
10
+ apiVersion : v1
2
11
data :
3
12
nutanix-ccm.yaml : |
4
13
---
@@ -317,6 +326,19 @@ spec:
317
326
cni :
318
327
provider : Cilium
319
328
strategy : ClusterResourceSet
329
+ csi :
330
+ defaultStorage :
331
+ providerName : nutanix
332
+ storageClassConfigName : nutanix-volume
333
+ providers :
334
+ - credentials :
335
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
336
+ name : nutanix
337
+ storageClassConfig :
338
+ - name : nutanix-volume
339
+ parameters :
340
+ storageContainer : ${NUTANIX_STORAGE_CONTAINER_NAME}
341
+ strategy : HelmAddon
320
342
nfd :
321
343
strategy : ClusterResourceSet
322
344
controlPlane :
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
+ kind : Secret
3
+ metadata :
4
+ labels :
5
+ cluster.x-k8s.io/provider : nutanix
6
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
7
+ stringData :
8
+ key : ${NUTANIX_PRISM_ELEMENT_ENDPOINT}:${NUTANIX_PORT}:${NUTANIX_USER}:${NUTANIX_PASSWORD}
9
+ ---
10
+ apiVersion : v1
2
11
data :
3
12
nutanix-ccm.yaml : |
4
13
---
@@ -317,6 +326,19 @@ spec:
317
326
cni :
318
327
provider : Cilium
319
328
strategy : HelmAddon
329
+ csi :
330
+ defaultStorage :
331
+ providerName : nutanix
332
+ storageClassConfigName : nutanix-volume
333
+ providers :
334
+ - credentials :
335
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
336
+ name : nutanix
337
+ storageClassConfig :
338
+ - name : nutanix-volume
339
+ parameters :
340
+ storageContainer : ${NUTANIX_STORAGE_CONTAINER_NAME}
341
+ strategy : HelmAddon
320
342
nfd :
321
343
strategy : HelmAddon
322
344
controlPlane :
Original file line number Diff line number Diff line change
1
+ # Copyright 2023 D2iQ, Inc. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ ---
5
+ apiVersion : v1
6
+ kind : Secret
7
+ metadata :
8
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
9
+ stringData :
10
+ key : " ${NUTANIX_PRISM_ELEMENT_ENDPOINT}:${NUTANIX_PORT}:${NUTANIX_USER}:${NUTANIX_PASSWORD}"
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
5
5
kind: Kustomization
6
6
7
7
resources:
8
+ - ../../../additional-resources/nutanix/csi-secret.yaml
8
9
- https://raw.githubusercontent.com/nutanix-cloud-native/cluster-api-provider-nutanix/1a7cd69ba35de01e56dcf2dda7f31973111d2317/templates/cluster-template-topology.yaml
9
10
10
11
sortOptions:
@@ -25,6 +26,9 @@ patches:
25
26
- target:
26
27
kind: Cluster
27
28
path: ../../../patches/cluster-autoscaler.yaml
29
+ - target:
30
+ kind: Cluster
31
+ path: ../../../patches/nutanix/csi.yaml
28
32
- target:
29
33
kind: Cluster
30
34
path: ../../../patches/nutanix/initialize-variables.yaml
Original file line number Diff line number Diff line change
1
+ # Copyright 2024 D2iQ, Inc. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ - op : " add"
5
+ path : " /spec/topology/variables/0/value/addons/csi"
6
+ value :
7
+ defaultStorage :
8
+ providerName : nutanix
9
+ storageClassConfigName : nutanix-volume
10
+ providers :
11
+ - name : nutanix
12
+ storageClassConfig :
13
+ - name : nutanix-volume
14
+ parameters :
15
+ storageContainer : ${NUTANIX_STORAGE_CONTAINER_NAME}
16
+ strategy : HelmAddon
17
+ credentials :
18
+ name : ${CLUSTER_NAME}-pe-creds-for-csi
You can’t perform that action at this time.
0 commit comments