asb_dc.yaml.j2 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. ---
  2. apiVersion: v1
  3. kind: DeploymentConfig
  4. metadata:
  5. name: asb
  6. labels:
  7. app: openshift-ansible-service-broker
  8. service: asb
  9. spec:
  10. replicas: 1
  11. selector:
  12. app: openshift-ansible-service-broker
  13. strategy:
  14. type: Rolling
  15. template:
  16. metadata:
  17. labels:
  18. app: openshift-ansible-service-broker
  19. service: asb
  20. spec:
  21. nodeSelector: {{ ansible_service_broker_node_selector | to_json }}
  22. serviceAccount: asb
  23. containers:
  24. {% if ansible_service_broker_enable_dashboard_redirector %}
  25. - image: {{ ansible_service_broker_image }}
  26. name: dashboard-redirector
  27. imagePullPolicy: IfNotPresent
  28. ports:
  29. - containerPort: 1337
  30. protocol: TCP
  31. command:
  32. - dashboard-redirector
  33. imagePullPolicy: IfNotPresent
  34. {% endif %}
  35. - image: {{ ansible_service_broker_image }}
  36. name: asb
  37. imagePullPolicy: IfNotPresent
  38. volumeMounts:
  39. - name: config-volume
  40. mountPath: /etc/ansible-service-broker
  41. - name: asb-tls
  42. mountPath: /etc/tls/private
  43. ports:
  44. - containerPort: 1338
  45. protocol: TCP
  46. env:
  47. - name: BROKER_CONFIG
  48. value: /etc/ansible-service-broker/config.yaml
  49. - name: HTTP_PROXY
  50. value: {{ openshift.common.http_proxy | default('') }}
  51. - name: HTTPS_PROXY
  52. value: {{ openshift.common.https_proxy | default('') }}
  53. - name: NO_PROXY
  54. value: {{ ([openshift.common.no_proxy, '.default'] | join(',')) if openshift.get('common', {}).get('no_proxy') else '' }}
  55. resources: {}
  56. terminationMessagePath: /tmp/termination-log
  57. readinessProbe:
  58. httpGet:
  59. port: 1338
  60. path: /healthz
  61. scheme: HTTPS
  62. initialDelaySeconds: 15
  63. timeoutSeconds: 1
  64. livenessProbe:
  65. httpGet:
  66. port: 1338
  67. path: /healthz
  68. scheme: HTTPS
  69. initialDelaySeconds: 15
  70. timeoutSeconds: 1
  71. volumes:
  72. - name: config-volume
  73. configMap:
  74. name: broker-config
  75. items:
  76. - key: broker-config
  77. path: config.yaml
  78. - name: asb-tls
  79. secret:
  80. secretName: asb-tls