controller_manager.j2 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. strategy:
  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.iteritems() %}
  23. {{key}}: "{{value}}"
  24. {% endfor %}
  25. containers:
  26. - env:
  27. - name: K8S_NAMESPACE
  28. valueFrom:
  29. fieldRef:
  30. fieldPath: metadata.namespace
  31. args:
  32. - -v
  33. - "5"
  34. - --leader-election-namespace
  35. - kube-service-catalog
  36. - --broker-relist-interval
  37. - "5m"
  38. - --feature-gates
  39. - OriginatingIdentity=true
  40. image: {{ openshift_service_catalog_image_prefix }}service-catalog:{{ openshift_service_catalog_image_version }}
  41. command: ["/usr/bin/controller-manager"]
  42. imagePullPolicy: Always
  43. name: controller-manager
  44. ports:
  45. - containerPort: 8080
  46. protocol: TCP
  47. resources: {}
  48. terminationMessagePath: /dev/termination-log
  49. volumeMounts:
  50. - mountPath: /var/run/kubernetes-service-catalog
  51. name: service-catalog-ssl
  52. readOnly: true
  53. dnsPolicy: ClusterFirst
  54. restartPolicy: Always
  55. securityContext: {}
  56. terminationGracePeriodSeconds: 30
  57. volumes:
  58. - name: service-catalog-ssl
  59. secret:
  60. defaultMode: 420
  61. items:
  62. - key: tls.crt
  63. path: apiserver.crt
  64. secretName: apiserver-ssl