controller_manager.j2 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. - -v
  34. - "5"
  35. - --leader-election-namespace
  36. - kube-service-catalog
  37. - --broker-relist-interval
  38. - "5m"
  39. - --feature-gates
  40. - OriginatingIdentity=true
  41. {% if openshift_service_catalog_async_bindings_enabled | bool %}
  42. - --feature-gates
  43. - AsyncBindingOperations=true
  44. {% endif %}
  45. image: {{ openshift_service_catalog_image_prefix }}service-catalog:{{ openshift_service_catalog_image_version }}
  46. command: ["/usr/bin/service-catalog"]
  47. imagePullPolicy: IfNotPresent
  48. name: controller-manager
  49. ports:
  50. - containerPort: 8080
  51. protocol: TCP
  52. resources: {}
  53. terminationMessagePath: /dev/termination-log
  54. volumeMounts:
  55. - mountPath: /var/run/kubernetes-service-catalog
  56. name: service-catalog-ssl
  57. readOnly: true
  58. dnsPolicy: ClusterFirst
  59. restartPolicy: Always
  60. securityContext: {}
  61. terminationGracePeriodSeconds: 30
  62. volumes:
  63. - name: service-catalog-ssl
  64. secret:
  65. defaultMode: 420
  66. items:
  67. - key: tls.crt
  68. path: apiserver.crt
  69. secretName: apiserver-ssl