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.

69 lines
1.9 KiB

  1. apiVersion: v1
  2. data:
  3. cloud-provider.yaml: {{ controller_manager_config_base64 }}
  4. kind: Secret
  5. metadata:
  6. name: oci-cloud-controller-manager
  7. namespace: kube-system
  8. type: Opaque
  9. ---
  10. apiVersion: apps/v1
  11. kind: DaemonSet
  12. metadata:
  13. name: oci-cloud-controller-manager
  14. namespace: kube-system
  15. labels:
  16. k8s-app: oci-cloud-controller-manager
  17. spec:
  18. selector:
  19. matchLabels:
  20. component: oci-cloud-controller-manager
  21. tier: control-plane
  22. updateStrategy:
  23. type: RollingUpdate
  24. template:
  25. metadata:
  26. labels:
  27. component: oci-cloud-controller-manager
  28. tier: control-plane
  29. spec:
  30. {% if oci_cloud_controller_pull_secret is defined %}
  31. imagePullSecrets:
  32. - name: {{oci_cloud_controller_pull_secret}}
  33. {% endif %}
  34. serviceAccountName: cloud-controller-manager
  35. hostNetwork: true
  36. nodeSelector:
  37. node-role.kubernetes.io/master: ""
  38. tolerations:
  39. - key: node.cloudprovider.kubernetes.io/uninitialized
  40. value: "true"
  41. effect: NoSchedule
  42. - key: node-role.kubernetes.io/master
  43. operator: Exists
  44. effect: NoSchedule
  45. volumes:
  46. - name: cfg
  47. secret:
  48. secretName: oci-cloud-controller-manager
  49. - name: kubernetes
  50. hostPath:
  51. path: /etc/kubernetes
  52. containers:
  53. - name: oci-cloud-controller-manager
  54. image: {{oci_cloud_controller_pull_source}}:{{oci_cloud_controller_version}}
  55. command: ["/usr/local/bin/oci-cloud-controller-manager"]
  56. args:
  57. - --cloud-config=/etc/oci/cloud-provider.yaml
  58. - --cloud-provider=oci
  59. - --leader-elect-resource-lock=configmaps
  60. - -v=2
  61. volumeMounts:
  62. - name: cfg
  63. mountPath: /etc/oci
  64. readOnly: true
  65. - name: kubernetes
  66. mountPath: /etc/kubernetes
  67. readOnly: true