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. dnsPolicy: ClusterFirstWithHostNet
  37. nodeSelector:
  38. node-role.kubernetes.io/control-plane: ""
  39. tolerations:
  40. - key: node.cloudprovider.kubernetes.io/uninitialized
  41. value: "true"
  42. effect: NoSchedule
  43. - key: node-role.kubernetes.io/control-plane
  44. operator: Exists
  45. effect: NoSchedule
  46. volumes:
  47. - name: cfg
  48. secret:
  49. secretName: oci-cloud-controller-manager
  50. - name: kubernetes
  51. hostPath:
  52. path: /etc/kubernetes
  53. containers:
  54. - name: oci-cloud-controller-manager
  55. image: {{ oci_cloud_controller_pull_source }}:{{ oci_cloud_controller_version }}
  56. command: ["/usr/local/bin/oci-cloud-controller-manager"]
  57. args:
  58. - --cloud-config=/etc/oci/cloud-provider.yaml
  59. - --cloud-provider=oci
  60. - --leader-elect-resource-lock=configmaps
  61. - -v=2
  62. volumeMounts:
  63. - name: cfg
  64. mountPath: /etc/oci
  65. readOnly: true
  66. - name: kubernetes
  67. mountPath: /etc/kubernetes
  68. readOnly: true