controller_manager.j2 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. apiVersion: extensions/v1beta1
  2. kind: DaemonSet
  3. metadata:
  4. labels:
  5. app: controller-manager
  6. name: controller-manager
  7. spec:
  8. selector:
  9. matchLabels:
  10. app: controller-manager
  11. updateStrategy:
  12. rollingUpdate:
  13. maxUnavailable: 1
  14. type: RollingUpdate
  15. template:
  16. metadata:
  17. labels:
  18. app: controller-manager
  19. spec:
  20. serviceAccountName: service-catalog-controller
  21. nodeSelector:
  22. {% for key, value in node_selector.items() %}
  23. {{key}}: "{{value}}"
  24. {% endfor %}
  25. containers:
  26. - env:
  27. - name: K8S_NAMESPACE
  28. valueFrom:
  29. fieldRef:
  30. fieldPath: metadata.namespace
  31. args:
  32. - controller-manager
  33. - --secure-port
  34. - "6443"
  35. - -v
  36. - "3"
  37. - --leader-election-namespace
  38. - kube-service-catalog
  39. - --leader-elect-resource-lock
  40. - configmaps
  41. - --broker-relist-interval
  42. - "5m"
  43. - --feature-gates
  44. - OriginatingIdentity=true
  45. {% if openshift_service_catalog_async_bindings_enabled | bool %}
  46. - --feature-gates
  47. - AsyncBindingOperations=true
  48. {% endif %}
  49. image: {{ openshift_service_catalog_image_prefix }}service-catalog:{{ openshift_service_catalog_image_version }}
  50. command: ["/usr/bin/service-catalog"]
  51. imagePullPolicy: IfNotPresent
  52. name: controller-manager
  53. ports:
  54. - containerPort: 6443
  55. protocol: TCP
  56. resources: {}
  57. terminationMessagePath: /dev/termination-log
  58. volumeMounts:
  59. - mountPath: /var/run/kubernetes-service-catalog
  60. name: service-catalog-ssl
  61. readOnly: true
  62. dnsPolicy: ClusterFirst
  63. restartPolicy: Always
  64. securityContext: {}
  65. terminationGracePeriodSeconds: 30
  66. volumes:
  67. - name: service-catalog-ssl
  68. secret:
  69. defaultMode: 420
  70. items:
  71. - key: tls.crt
  72. path: apiserver.crt
  73. - key: tls.key
  74. path: apiserver.key
  75. secretName: controllermanager-ssl