-
Notifications
You must be signed in to change notification settings - Fork 5
/
cloud-controller-manager.yaml
87 lines (87 loc) · 2.41 KB
/
cloud-controller-manager.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: proxmox-cloud-controller-manager
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: system:proxmox-cloud-controller-manager
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: proxmox-cloud-controller-manager
namespace: kube-system
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
k8s-app: cloud-controller-manager
name: cloud-controller-manager
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: cloud-controller-manager
template:
metadata:
labels:
k8s-app: cloud-controller-manager
spec:
serviceAccountName: proxmox-cloud-controller-manager
containers:
- name: cloud-controller-manager
image: ghcr.io/k8s-proxmox/cloud-provider-proxmox:latest
command:
- /usr/local/bin/cloud-controller-manager
- --cloud-provider=proxmox
- --cloud-config=/etc/proxmox/config.yaml
- --leader-elect=true
- --use-service-account-credentials
- --controllers=cloud-node,cloud-node-lifecycle
volumeMounts:
- name: cloud-config
mountPath: /etc/proxmox
readOnly: true
livenessProbe:
httpGet:
path: /healthz
port: 10258
scheme: HTTPS
initialDelaySeconds: 20
periodSeconds: 30
timeoutSeconds: 5
volumes:
- name: cloud-config
secret:
secretName: cloud-config
tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: node-role.kubernetes.io/control-plane
operator: Exists
effect: NoSchedule
- key: node-role.kubernetes.io/master
operator: Exists
effect: NoSchedule
nodeSelector:
node-role.kubernetes.io/control-plane: ""
---
apiVersion: v1
kind: Secret
metadata:
name: cloud-config
namespace: kube-system
stringData:
config.yaml: |
proxmox:
url: https://X.X.X.X:8006/api2/json
tokenID: root@pam!api-token-id
secret: aaaaaaaaa-bbb-cccc-dddd-ef0123456789