You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.8 KiB

  1. ---
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: cloud-controller-manager
  6. namespace: kube-system
  7. ---
  8. apiVersion: apps/v1
  9. kind: DaemonSet
  10. metadata:
  11. name: vsphere-cloud-controller-manager
  12. namespace: kube-system
  13. labels:
  14. k8s-app: vsphere-cloud-controller-manager
  15. spec:
  16. selector:
  17. matchLabels:
  18. k8s-app: vsphere-cloud-controller-manager
  19. updateStrategy:
  20. type: RollingUpdate
  21. template:
  22. metadata:
  23. labels:
  24. k8s-app: vsphere-cloud-controller-manager
  25. spec:
  26. nodeSelector:
  27. node-role.kubernetes.io/master: ""
  28. securityContext:
  29. runAsUser: 0
  30. tolerations:
  31. - key: node.cloudprovider.kubernetes.io/uninitialized
  32. value: "true"
  33. effect: NoSchedule
  34. - key: node-role.kubernetes.io/master
  35. effect: NoSchedule
  36. serviceAccountName: cloud-controller-manager
  37. containers:
  38. - name: vsphere-cloud-controller-manager
  39. image: {{ gcr_image_repo }}/cloud-provider-vsphere/cpi/release/manager:{{ external_vsphere_cloud_controller_image_tag }}
  40. args:
  41. - --v=2
  42. - --cloud-provider=vsphere
  43. - --cloud-config=/etc/cloud/vsphere.conf
  44. volumeMounts:
  45. - mountPath: /etc/cloud
  46. name: vsphere-config-volume
  47. readOnly: true
  48. resources:
  49. requests:
  50. cpu: 200m
  51. hostNetwork: true
  52. volumes:
  53. - name: vsphere-config-volume
  54. configMap:
  55. name: cloud-config
  56. ---
  57. apiVersion: v1
  58. kind: Service
  59. metadata:
  60. labels:
  61. component: cloud-controller-manager
  62. name: vsphere-cloud-controller-manager
  63. namespace: kube-system
  64. spec:
  65. type: NodePort
  66. ports:
  67. - port: 43001
  68. protocol: TCP
  69. targetPort: 43001
  70. selector:
  71. component: cloud-controller-manager