controller_manager.j2 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.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. image: {{ openshift_service_catalog_image_prefix }}service-catalog:{{ openshift_service_catalog_image_version }}
  42. command: ["/usr/bin/service-catalog"]
  43. imagePullPolicy: Always
  44. name: controller-manager
  45. ports:
  46. - containerPort: 8080
  47. protocol: TCP
  48. resources: {}
  49. terminationMessagePath: /dev/termination-log
  50. volumeMounts:
  51. - mountPath: /var/run/kubernetes-service-catalog
  52. name: service-catalog-ssl
  53. readOnly: true
  54. dnsPolicy: ClusterFirst
  55. restartPolicy: Always
  56. securityContext: {}
  57. terminationGracePeriodSeconds: 30
  58. volumes:
  59. - name: service-catalog-ssl
  60. secret:
  61. defaultMode: 420
  62. items:
  63. - key: tls.crt
  64. path: apiserver.crt
  65. secretName: apiserver-ssl