Skip to content

Commit ab90eed

Browse files
committed
added yamls for crs and helmaddon
1 parent 9fc0bc5 commit ab90eed

10 files changed

+504
-4
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: cluster.x-k8s.io/v1beta1
2+
kind: Cluster
3+
metadata:
4+
labels:
5+
ccm: nutanix
6+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
7+
cluster.x-k8s.io/provider: infrastructure-nutanix
8+
name: ${CLUSTER_NAME}
9+
spec:
10+
clusterNetwork:
11+
pods:
12+
cidrBlocks:
13+
- ${POD_CIDR:-192.168.0.0/16}
14+
serviceDomain: cluster.local
15+
services:
16+
cidrBlocks:
17+
- ${SERVICE_CIDR:-10.128.0.0/12}
18+
topology:
19+
class: test-cre
20+
controlPlane:
21+
metadata: {}
22+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
23+
variables:
24+
- name: clusterConfig
25+
value:
26+
addons:
27+
cni:
28+
provider: Calico
29+
strategy: ClusterResourceSet
30+
version: ${KUBERNETES_VERSION}
31+
workers:
32+
machineDeployments:
33+
- class: ${CLUSTER_CLASS_NAME}-worker
34+
metadata: {}
35+
name: md-0
36+
replicas: ${WORKER_MACHINE_COUNT}
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
apiVersion: cluster.x-k8s.io/v1beta1
2+
kind: Cluster
3+
metadata:
4+
labels:
5+
ccm: nutanix
6+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
7+
cluster.x-k8s.io/provider: infrastructure-nutanix
8+
name: ${CLUSTER_NAME}
9+
spec:
10+
clusterNetwork:
11+
pods:
12+
cidrBlocks:
13+
- ${POD_CIDR:-192.168.0.0/16}
14+
serviceDomain: cluster.local
15+
services:
16+
cidrBlocks:
17+
- ${SERVICE_CIDR:-10.128.0.0/12}
18+
topology:
19+
class: test-cre
20+
controlPlane:
21+
metadata: {}
22+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
23+
variables:
24+
- name: clusterConfig
25+
value:
26+
addons:
27+
cni:
28+
provider: Cilium
29+
strategy: ClusterResourceSet
30+
version: ${KUBERNETES_VERSION}
31+
workers:
32+
machineDeployments:
33+
- class: ${CLUSTER_CLASS_NAME}-worker
34+
metadata: {}
35+
name: md-0
36+
replicas: ${WORKER_MACHINE_COUNT}
37+
---
38+
apiVersion: cluster.x-k8s.io/v1beta1
39+
kind: Cluster
40+
metadata:
41+
labels:
42+
ccm: nutanix
43+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
44+
cluster.x-k8s.io/provider: infrastructure-nutanix
45+
name: ${CLUSTER_NAME}
46+
spec:
47+
clusterNetwork:
48+
pods:
49+
cidrBlocks:
50+
- ${POD_CIDR:-192.168.0.0/16}
51+
serviceDomain: cluster.local
52+
services:
53+
cidrBlocks:
54+
- ${SERVICE_CIDR:-10.128.0.0/12}
55+
topology:
56+
class: test-cre
57+
controlPlane:
58+
metadata: {}
59+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
60+
variables:
61+
- name: clusterConfig
62+
value:
63+
addons:
64+
cni:
65+
provider: Cilium
66+
strategy: HelmAddon
67+
version: ${KUBERNETES_VERSION}
68+
workers:
69+
machineDeployments:
70+
- class: ${CLUSTER_CLASS_NAME}-worker
71+
metadata: {}
72+
name: md-0
73+
replicas: ${WORKER_MACHINE_COUNT}
74+
---
75+
apiVersion: cluster.x-k8s.io/v1beta1
76+
kind: Cluster
77+
metadata:
78+
labels:
79+
ccm: nutanix
80+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
81+
cluster.x-k8s.io/provider: infrastructure-nutanix
82+
name: ${CLUSTER_NAME}
83+
spec:
84+
clusterNetwork:
85+
pods:
86+
cidrBlocks:
87+
- ${POD_CIDR:-192.168.0.0/16}
88+
serviceDomain: cluster.local
89+
services:
90+
cidrBlocks:
91+
- ${SERVICE_CIDR:-10.128.0.0/12}
92+
topology:
93+
class: test-cre
94+
controlPlane:
95+
metadata: {}
96+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
97+
variables:
98+
- name: clusterConfig
99+
value:
100+
addons:
101+
cni:
102+
provider: Calico
103+
strategy: ClusterResourceSet
104+
version: ${KUBERNETES_VERSION}
105+
workers:
106+
machineDeployments:
107+
- class: ${CLUSTER_CLASS_NAME}-worker
108+
metadata: {}
109+
name: md-0
110+
replicas: ${WORKER_MACHINE_COUNT}
111+
---
112+
apiVersion: cluster.x-k8s.io/v1beta1
113+
kind: Cluster
114+
metadata:
115+
labels:
116+
ccm: nutanix
117+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
118+
cluster.x-k8s.io/provider: infrastructure-nutanix
119+
name: ${CLUSTER_NAME}
120+
spec:
121+
clusterNetwork:
122+
pods:
123+
cidrBlocks:
124+
- ${POD_CIDR:-192.168.0.0/16}
125+
serviceDomain: cluster.local
126+
services:
127+
cidrBlocks:
128+
- ${SERVICE_CIDR:-10.128.0.0/12}
129+
topology:
130+
class: test-cre
131+
controlPlane:
132+
metadata: {}
133+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
134+
variables:
135+
- name: clusterConfig
136+
value:
137+
addons:
138+
cni:
139+
provider: Calico
140+
strategy: HelmAddon
141+
version: ${KUBERNETES_VERSION}
142+
workers:
143+
machineDeployments:
144+
- class: ${CLUSTER_CLASS_NAME}-worker
145+
metadata: {}
146+
name: md-0
147+
replicas: ${WORKER_MACHINE_COUNT}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
apiVersion: cluster.x-k8s.io/v1beta1
2+
kind: Cluster
3+
metadata:
4+
labels:
5+
ccm: nutanix
6+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
7+
cluster.x-k8s.io/provider: infrastructure-nutanix
8+
name: ${CLUSTER_NAME}
9+
spec:
10+
clusterNetwork:
11+
pods:
12+
cidrBlocks:
13+
- ${POD_CIDR:-192.168.0.0/16}
14+
serviceDomain: cluster.local
15+
services:
16+
cidrBlocks:
17+
- ${SERVICE_CIDR:-10.128.0.0/12}
18+
topology:
19+
class: test-cre
20+
controlPlane:
21+
metadata: {}
22+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
23+
variables:
24+
- name: clusterConfig
25+
value:
26+
addons:
27+
cni:
28+
provider: Cilium
29+
strategy: ClusterResourceSet
30+
version: ${KUBERNETES_VERSION}
31+
workers:
32+
machineDeployments:
33+
- class: ${CLUSTER_CLASS_NAME}-worker
34+
metadata: {}
35+
name: md-0
36+
replicas: ${WORKER_MACHINE_COUNT}
Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
apiVersion: cluster.x-k8s.io/v1beta1
2+
kind: Cluster
3+
metadata:
4+
labels:
5+
ccm: nutanix
6+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
7+
cluster.x-k8s.io/provider: infrastructure-nutanix
8+
name: ${CLUSTER_NAME}
9+
spec:
10+
clusterNetwork:
11+
pods:
12+
cidrBlocks:
13+
- ${POD_CIDR:-192.168.0.0/16}
14+
serviceDomain: cluster.local
15+
services:
16+
cidrBlocks:
17+
- ${SERVICE_CIDR:-10.128.0.0/12}
18+
topology:
19+
class: test-cre
20+
controlPlane:
21+
metadata: {}
22+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
23+
variables:
24+
- name: clusterConfig
25+
value:
26+
addons:
27+
cni:
28+
provider: Cilium
29+
strategy: ClusterResourceSet
30+
version: ${KUBERNETES_VERSION}
31+
workers:
32+
machineDeployments:
33+
- class: ${CLUSTER_CLASS_NAME}-worker
34+
metadata: {}
35+
name: md-0
36+
replicas: ${WORKER_MACHINE_COUNT}
37+
---
38+
apiVersion: cluster.x-k8s.io/v1beta1
39+
kind: Cluster
40+
metadata:
41+
labels:
42+
ccm: nutanix
43+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
44+
cluster.x-k8s.io/provider: infrastructure-nutanix
45+
name: ${CLUSTER_NAME}
46+
spec:
47+
clusterNetwork:
48+
pods:
49+
cidrBlocks:
50+
- ${POD_CIDR:-192.168.0.0/16}
51+
serviceDomain: cluster.local
52+
services:
53+
cidrBlocks:
54+
- ${SERVICE_CIDR:-10.128.0.0/12}
55+
topology:
56+
class: test-cre
57+
controlPlane:
58+
metadata: {}
59+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
60+
variables:
61+
- name: clusterConfig
62+
value:
63+
addons:
64+
cni:
65+
provider: Cilium
66+
strategy: HelmAddon
67+
version: ${KUBERNETES_VERSION}
68+
workers:
69+
machineDeployments:
70+
- class: ${CLUSTER_CLASS_NAME}-worker
71+
metadata: {}
72+
name: md-0
73+
replicas: ${WORKER_MACHINE_COUNT}
74+
---
75+
apiVersion: cluster.x-k8s.io/v1beta1
76+
kind: Cluster
77+
metadata:
78+
labels:
79+
ccm: nutanix
80+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
81+
cluster.x-k8s.io/provider: infrastructure-nutanix
82+
name: ${CLUSTER_NAME}
83+
spec:
84+
clusterNetwork:
85+
pods:
86+
cidrBlocks:
87+
- ${POD_CIDR:-192.168.0.0/16}
88+
serviceDomain: cluster.local
89+
services:
90+
cidrBlocks:
91+
- ${SERVICE_CIDR:-10.128.0.0/12}
92+
topology:
93+
class: test-cre
94+
controlPlane:
95+
metadata: {}
96+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
97+
variables:
98+
- name: clusterConfig
99+
value:
100+
addons:
101+
cni:
102+
provider: Calico
103+
strategy: ClusterResourceSet
104+
version: ${KUBERNETES_VERSION}
105+
workers:
106+
machineDeployments:
107+
- class: ${CLUSTER_CLASS_NAME}-worker
108+
metadata: {}
109+
name: md-0
110+
replicas: ${WORKER_MACHINE_COUNT}
111+
---
112+
apiVersion: cluster.x-k8s.io/v1beta1
113+
kind: Cluster
114+
metadata:
115+
labels:
116+
ccm: nutanix
117+
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
118+
cluster.x-k8s.io/provider: infrastructure-nutanix
119+
name: ${CLUSTER_NAME}
120+
spec:
121+
clusterNetwork:
122+
pods:
123+
cidrBlocks:
124+
- ${POD_CIDR:-192.168.0.0/16}
125+
serviceDomain: cluster.local
126+
services:
127+
cidrBlocks:
128+
- ${SERVICE_CIDR:-10.128.0.0/12}
129+
topology:
130+
class: test-cre
131+
controlPlane:
132+
metadata: {}
133+
replicas: ${CONTROL_PLANE_MACHINE_COUNT}
134+
variables:
135+
- name: clusterConfig
136+
value:
137+
addons:
138+
cni:
139+
provider: Calico
140+
strategy: HelmAddon
141+
version: ${KUBERNETES_VERSION}
142+
workers:
143+
machineDeployments:
144+
- class: ${CLUSTER_CLASS_NAME}-worker
145+
metadata: {}
146+
name: md-0
147+
replicas: ${WORKER_MACHINE_COUNT}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2024 D2iQ, Inc. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
apiVersion: kustomize.config.k8s.io/v1beta1
5+
kind: Kustomization
6+
7+
resources:
8+
- https://github.com/nutanix-cloud-native/cluster-api-provider-nutanix/releases/download/v1.4.0-alpha.1/cluster-template-topology.yaml
9+
10+
patches:
11+
- target:
12+
group: cluster.x-k8s.io
13+
kind: Cluster
14+
patch: |-
15+
- op: "add"
16+
path: "/metadata/name"
17+
value: "quick-start-crs-calico"
18+
- op: "add"
19+
path: "/spec/topology/variables"
20+
value:
21+
- name: "clusterConfig"
22+
value:
23+
addons:
24+
cni:
25+
provider: Calico
26+
strategy: ClusterResourceSet

0 commit comments

Comments
 (0)