controller_manager.j2 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. nodeSelector:
  21. {% for key, value in node_selector.iteritems() %}
  22. {{key}}: "{{value}}"
  23. {% endfor %}
  24. containers:
  25. - env:
  26. - name: K8S_NAMESPACE
  27. valueFrom:
  28. fieldRef:
  29. fieldPath: metadata.namespace
  30. args:
  31. - -v
  32. - "5"
  33. - "--leader-election-namespace=$(K8S_NAMESPACE)"
  34. image: {{ openshift_service_catalog_image_prefix }}service-catalog:{{ openshift_service_catalog_image_version }}
  35. command: ["/usr/bin/controller-manager"]
  36. imagePullPolicy: Always
  37. name: controller-manager
  38. ports:
  39. - containerPort: 8080
  40. protocol: TCP
  41. resources: {}
  42. terminationMessagePath: /dev/termination-log
  43. dnsPolicy: ClusterFirst
  44. restartPolicy: Always
  45. securityContext: {}
  46. terminationGracePeriodSeconds: 30