asb_dc.yaml.j2 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. nodeSelector: {{ ansible_service_broker_node_selector }}
  14. strategy:
  15. type: Rolling
  16. template:
  17. metadata:
  18. labels:
  19. app: openshift-ansible-service-broker
  20. service: asb
  21. spec:
  22. serviceAccount: asb
  23. containers:
  24. - image: {{ ansible_service_broker_image }}
  25. name: asb
  26. imagePullPolicy: IfNotPresent
  27. volumeMounts:
  28. - name: config-volume
  29. mountPath: /etc/ansible-service-broker
  30. - name: asb-tls
  31. mountPath: /etc/tls/private
  32. ports:
  33. - containerPort: 1338
  34. protocol: TCP
  35. env:
  36. - name: BROKER_CONFIG
  37. value: /etc/ansible-service-broker/config.yaml
  38. - name: HTTP_PROXY
  39. value: {{ openshift.common.http_proxy | default('') }}
  40. - name: HTTPS_PROXY
  41. value: {{ openshift.common.https_proxy | default('') }}
  42. - name: NO_PROXY
  43. value: {{ ([openshift.common.no_proxy, '.default'] | join(',')) if openshift.get('common', {}).get('no_proxy') else '' }}
  44. resources: {}
  45. terminationMessagePath: /tmp/termination-log
  46. readinessProbe:
  47. httpGet:
  48. port: 1338
  49. path: /healthz
  50. scheme: HTTPS
  51. initialDelaySeconds: 15
  52. timeoutSeconds: 1
  53. livenessProbe:
  54. httpGet:
  55. port: 1338
  56. path: /healthz
  57. scheme: HTTPS
  58. initialDelaySeconds: 15
  59. timeoutSeconds: 1
  60. volumes:
  61. - name: config-volume
  62. configMap:
  63. name: broker-config
  64. items:
  65. - key: broker-config
  66. path: config.yaml
  67. - name: asb-tls
  68. secret:
  69. secretName: asb-tls