Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 7833665

Browse files
committed
build: remove nutanix CCM from examples
1 parent 9b92854 commit 7833665

File tree

9 files changed

+46
-1076
lines changed

9 files changed

+46
-1076
lines changed

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

Lines changed: 0 additions & 269 deletions
Original file line numberDiff line numberDiff line change
@@ -8,226 +8,6 @@ stringData:
88
key: ${NUTANIX_PRISM_ELEMENT_ENDPOINT}:${NUTANIX_PORT}:${NUTANIX_USER}:${NUTANIX_PASSWORD}
99
---
1010
apiVersion: v1
11-
data:
12-
nutanix-ccm.yaml: |
13-
---
14-
apiVersion: v1
15-
kind: ConfigMap
16-
metadata:
17-
name: nutanix-ccm-pc-trusted-ca-bundle
18-
namespace: kube-system
19-
binaryData:
20-
ca.crt: ${NUTANIX_ADDITIONAL_TRUST_BUNDLE=""}
21-
---
22-
# Source: nutanix-cloud-provider/templates/rbac.yaml
23-
apiVersion: v1
24-
kind: ServiceAccount
25-
metadata:
26-
name: cloud-controller-manager
27-
namespace: kube-system
28-
---
29-
# Source: nutanix-cloud-provider/templates/cm.yaml
30-
kind: ConfigMap
31-
apiVersion: v1
32-
metadata:
33-
name: nutanix-config
34-
namespace: kube-system
35-
data:
36-
nutanix_config.json: |-
37-
{
38-
"prismCentral": {
39-
"address": "${NUTANIX_ENDPOINT}",
40-
"port": ${NUTANIX_PORT=9440},
41-
"insecure": ${NUTANIX_INSECURE=false},
42-
"credentialRef": {
43-
"kind": "secret",
44-
"name": "nutanix-creds",
45-
"namespace": "kube-system"
46-
},
47-
"additionalTrustBundle": {
48-
"kind": "ConfigMap",
49-
"name": "nutanix-ccm-pc-trusted-ca-bundle",
50-
"namespace": "kube-system"
51-
}
52-
},
53-
"enableCustomLabeling": ${CCM_CUSTOM_LABEL=false},
54-
"topologyDiscovery": {
55-
"type": "Prism"
56-
}
57-
}
58-
---
59-
# Source: nutanix-cloud-provider/templates/rbac.yaml
60-
apiVersion: rbac.authorization.k8s.io/v1
61-
kind: ClusterRole
62-
metadata:
63-
annotations:
64-
rbac.authorization.kubernetes.io/autoupdate: "true"
65-
name: system:cloud-controller-manager
66-
rules:
67-
- apiGroups:
68-
- ""
69-
resources:
70-
- secrets
71-
verbs:
72-
- get
73-
- list
74-
- watch
75-
- apiGroups:
76-
- ""
77-
resources:
78-
- configmaps
79-
verbs:
80-
- get
81-
- list
82-
- watch
83-
- apiGroups:
84-
- ""
85-
resources:
86-
- events
87-
verbs:
88-
- create
89-
- patch
90-
- update
91-
- apiGroups:
92-
- ""
93-
resources:
94-
- nodes
95-
verbs:
96-
- "*"
97-
- apiGroups:
98-
- ""
99-
resources:
100-
- nodes/status
101-
verbs:
102-
- patch
103-
- apiGroups:
104-
- ""
105-
resources:
106-
- serviceaccounts
107-
verbs:
108-
- create
109-
- apiGroups:
110-
- ""
111-
resources:
112-
- endpoints
113-
verbs:
114-
- create
115-
- get
116-
- list
117-
- watch
118-
- update
119-
- apiGroups:
120-
- coordination.k8s.io
121-
resources:
122-
- leases
123-
verbs:
124-
- get
125-
- list
126-
- watch
127-
- create
128-
- update
129-
- patch
130-
- delete
131-
---
132-
# Source: nutanix-cloud-provider/templates/rbac.yaml
133-
kind: ClusterRoleBinding
134-
apiVersion: rbac.authorization.k8s.io/v1
135-
metadata:
136-
name: system:cloud-controller-manager
137-
roleRef:
138-
apiGroup: rbac.authorization.k8s.io
139-
kind: ClusterRole
140-
name: system:cloud-controller-manager
141-
subjects:
142-
- kind: ServiceAccount
143-
name: cloud-controller-manager
144-
namespace: kube-system
145-
---
146-
# Source: nutanix-cloud-provider/templates/cloud-provider-nutanix-deployment.yaml
147-
apiVersion: apps/v1
148-
kind: Deployment
149-
metadata:
150-
labels:
151-
k8s-app: nutanix-cloud-controller-manager
152-
name: nutanix-cloud-controller-manager
153-
namespace: kube-system
154-
spec:
155-
replicas: 1
156-
selector:
157-
matchLabels:
158-
k8s-app: nutanix-cloud-controller-manager
159-
strategy:
160-
type: Recreate
161-
template:
162-
metadata:
163-
labels:
164-
k8s-app: nutanix-cloud-controller-manager
165-
spec:
166-
hostNetwork: true
167-
priorityClassName: system-cluster-critical
168-
nodeSelector:
169-
node-role.kubernetes.io/control-plane: ""
170-
serviceAccountName: cloud-controller-manager
171-
affinity:
172-
podAntiAffinity:
173-
requiredDuringSchedulingIgnoredDuringExecution:
174-
- labelSelector:
175-
matchLabels:
176-
k8s-app: nutanix-cloud-controller-manager
177-
topologyKey: kubernetes.io/hostname
178-
dnsPolicy: Default
179-
tolerations:
180-
- effect: NoSchedule
181-
key: node-role.kubernetes.io/master
182-
operator: Exists
183-
- effect: NoSchedule
184-
key: node-role.kubernetes.io/control-plane
185-
operator: Exists
186-
- effect: NoExecute
187-
key: node.kubernetes.io/unreachable
188-
operator: Exists
189-
tolerationSeconds: 120
190-
- effect: NoExecute
191-
key: node.kubernetes.io/not-ready
192-
operator: Exists
193-
tolerationSeconds: 120
194-
- effect: NoSchedule
195-
key: node.cloudprovider.kubernetes.io/uninitialized
196-
operator: Exists
197-
- effect: NoSchedule
198-
key: node.kubernetes.io/not-ready
199-
operator: Exists
200-
containers:
201-
- image: "${CCM_REPO=ghcr.io/nutanix-cloud-native/cloud-provider-nutanix/controller}:${CCM_TAG=v0.3.2}"
202-
imagePullPolicy: IfNotPresent
203-
name: nutanix-cloud-controller-manager
204-
env:
205-
- name: POD_NAMESPACE
206-
valueFrom:
207-
fieldRef:
208-
fieldPath: metadata.namespace
209-
args:
210-
- "--leader-elect=true"
211-
- "--cloud-config=/etc/cloud/nutanix_config.json"
212-
resources:
213-
requests:
214-
cpu: 100m
215-
memory: 50Mi
216-
volumeMounts:
217-
- mountPath: /etc/cloud
218-
name: nutanix-config-volume
219-
readOnly: true
220-
volumes:
221-
- name: nutanix-config-volume
222-
configMap:
223-
name: nutanix-config
224-
kind: ConfigMap
225-
metadata:
226-
labels:
227-
cluster.x-k8s.io/provider: nutanix
228-
name: nutanix-ccm
229-
---
230-
apiVersion: v1
23111
kind: Secret
23212
metadata:
23313
labels:
@@ -247,59 +27,10 @@ stringData:
24727
}
24828
]
24929
---
250-
apiVersion: v1
251-
kind: Secret
252-
metadata:
253-
labels:
254-
cluster.x-k8s.io/provider: nutanix
255-
name: nutanix-ccm-secret
256-
stringData:
257-
nutanix-ccm-secret.yaml: |
258-
apiVersion: v1
259-
kind: Secret
260-
metadata:
261-
name: nutanix-creds
262-
namespace: kube-system
263-
stringData:
264-
credentials: |
265-
[
266-
{
267-
"type": "basic_auth",
268-
"data": {
269-
"prismCentral":{
270-
"username": "${NUTANIX_USER}",
271-
"password": "${NUTANIX_PASSWORD}"
272-
},
273-
"prismElements": null
274-
}
275-
}
276-
]
277-
type: addons.cluster.x-k8s.io/resource-set
278-
---
279-
apiVersion: addons.cluster.x-k8s.io/v1beta1
280-
kind: ClusterResourceSet
281-
metadata:
282-
labels:
283-
cluster.x-k8s.io/provider: nutanix
284-
name: nutanix-ccm-crs
285-
spec:
286-
clusterSelector:
287-
matchLabels:
288-
ccm: nutanix
289-
resources:
290-
- kind: ConfigMap
291-
name: nutanix-ccm
292-
- kind: Secret
293-
name: nutanix-ccm-secret
294-
- kind: ConfigMap
295-
name: nutanix-ccm-pc-trusted-ca-bundle
296-
strategy: ApplyOnce
297-
---
29830
apiVersion: cluster.x-k8s.io/v1beta1
29931
kind: Cluster
30032
metadata:
30133
labels:
302-
ccm: nutanix
30334
cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
30435
cluster.x-k8s.io/provider: nutanix
30536
name: ${CLUSTER_NAME}

0 commit comments

Comments
 (0)