forked from kubevirt/cloud-provider-kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 3
/
kubevirt-cloud-controller-manager-deploy.yaml
72 lines (72 loc) · 2 KB
/
kubevirt-cloud-controller-manager-deploy.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
apiVersion: v1
kind: ServiceAccount
metadata:
name: cloud-controller-manager
namespace: kube-system
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubevirt-cloud-controller-manager
namespace: kube-system
labels:
k8s-app: kubevirt-cloud-controller-manager
spec:
replicas: 1
selector:
matchLabels:
k8s-app: kubevirt-cloud-controller-manager
template:
metadata:
labels:
k8s-app: kubevirt-cloud-controller-manager
spec:
containers:
- name: kubevirt-cloud-controller-manager
args:
- --cloud-provider=kubevirt
- --cloud-config=/etc/cloud/cloud-config
- --use-service-account-credentials=true
- --kubeconfig=/etc/kubernetes/controller-manager.conf
image: docker.io/dgonzalez/kubevirt-cloud-controller-manager:v0.0.7
resources:
requests:
cpu: 100m
volumeMounts:
- mountPath: /etc/kubernetes/pki
name: k8s-certs
readOnly: true
- mountPath: /etc/ssl/certs
name: ca-certs
readOnly: true
- mountPath: /etc/kubernetes/controller-manager.conf
name: kubeconfig
readOnly: true
- mountPath: /etc/cloud
name: cloud-config
readOnly: true
volumes:
- hostPath:
path: /etc/kubernetes/pki
type: DirectoryOrCreate
name: k8s-certs
- hostPath:
path: /etc/ssl/certs
type: DirectoryOrCreate
name: ca-certs
- hostPath:
path: /etc/kubernetes/controller-manager.conf
type: FileOrCreate
name: kubeconfig
- secret:
secretName: cloud-config
name: cloud-config
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"
effect: NoSchedule
- key: node-role.kubernetes.io/master
effect: NoSchedule
serviceAccountName: cloud-controller-manager