You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

160 lines
5.1 KiB

  1. apiVersion: template.openshift.io/v1
  2. kind: Template
  3. metadata:
  4. name: ${TEMPLATE_NAME}
  5. objects:
  6. - apiVersion: apps.openshift.io/v1
  7. kind: DeploymentConfig
  8. metadata:
  9. labels:
  10. app: ${APPLICATION_NAME}
  11. template: ${TEMPLATE_NAME}
  12. name: ${APPLICATION_NAME}
  13. spec:
  14. replicas: 1
  15. selector:
  16. app: ${APPLICATION_NAME}
  17. deploymentconfig: ${APPLICATION_NAME}
  18. strategy:
  19. type: Rolling
  20. revisionHistoryLimit: 2
  21. template:
  22. metadata:
  23. labels:
  24. app: ${APPLICATION_NAME}
  25. deploymentconfig: ${APPLICATION_NAME}
  26. spec:
  27. containers:
  28. - env:
  29. - name: IdentityUrlExternal
  30. value: ${IDENTITY_URL_EXTERNAL}
  31. - name: SpaClient
  32. value: ${WEB_SPA_URL}
  33. - name: XamarinCallback
  34. value:
  35. - name: MvcClient
  36. value: ${WEB_MVC_URL}
  37. - name: LocationApiClient
  38. value: ${LOCATION_API_URL}
  39. - name: MarketingApiClient
  40. value: ${MARKETING_API_URL}
  41. - name: BasketApiClient
  42. value: ${BASKET_API_URL}
  43. - name: OrderingApiClient
  44. value: ${ORDERING_API_URL}
  45. - name: MobileShoppingAggClient
  46. value: ${MOBILE_SHOPPING_AGGREGATOR_URL}
  47. - name: WebShoppingAggClient
  48. value: ${WEB_SHOPPING_AGGREGATOR_URL}
  49. - name: WebhooksApiClient
  50. value: ${WEBHOOKS_API_URL}
  51. - name: WebhooksWebClient
  52. value: ${WEBHOOKS_WEB_CLIENT_URL}
  53. - name: ConnectionString
  54. valueFrom:
  55. secretKeyRef:
  56. key: ConnectionString
  57. name: identity-db-connection-secret
  58. image: docker-registry.default.svc:5000/${IMAGE_REGISTRY_PROJECT_NAME}/${APPLICATION_NAME}:latest
  59. imagePullPolicy: Always
  60. name: ${APPLICATION_NAME}
  61. ports:
  62. - containerPort: 8080
  63. protocol: TCP
  64. resources: {}
  65. terminationMessagePath: /dev/termination-log
  66. terminationMessagePolicy: File
  67. dnsPolicy: ClusterFirst
  68. restartPolicy: Always
  69. schedulerName: default-scheduler
  70. securityContext: {}
  71. terminationGracePeriodSeconds: 30
  72. triggers:
  73. - type: ConfigChange
  74. - imageChangeParams:
  75. automatic: true
  76. containerNames:
  77. - ${APPLICATION_NAME}
  78. from:
  79. kind: ImageStreamTag
  80. name: ${APPLICATION_NAME}:latest
  81. namespace: ${IMAGE_REGISTRY_PROJECT_NAME}
  82. type: ImageChange
  83. - apiVersion: v1
  84. kind: Service
  85. metadata:
  86. labels:
  87. app: ${APPLICATION_NAME}
  88. template: ${TEMPLATE_NAME}
  89. name: ${APPLICATION_NAME}
  90. spec:
  91. ports:
  92. - name: 8080-tcp
  93. port: 8080
  94. protocol: TCP
  95. targetPort: 8080
  96. selector:
  97. app: ${APPLICATION_NAME}
  98. deploymentconfig: ${APPLICATION_NAME}
  99. sessionAffinity: None
  100. type: ClusterIP
  101. status:
  102. loadBalancer: {}
  103. parameters:
  104. - description: The name for the application.
  105. displayName: Application Name
  106. name: APPLICATION_NAME
  107. required: true
  108. value: identityapi
  109. - description: The OpenShift project name that is hosting the image registry.
  110. displayName: Image Registry Project Name
  111. name: IMAGE_REGISTRY_PROJECT_NAME
  112. required: true
  113. - description: The template name.
  114. displayName: Template Name
  115. name: TEMPLATE_NAME
  116. required: true
  117. value: identityapi-deploy-template
  118. - description: The external URL of the Identity endpoint
  119. displayName: Identity URL External
  120. name: IDENTITY_URL_EXTERNAL
  121. required: true
  122. - description: The cluster internal URL of the Web SPA endpoint
  123. displayName: Web SPA URL
  124. name: WEB_SPA_URL
  125. required: true
  126. - description: The public URL of the Web MVC endpoint
  127. displayName: Web MVC URL
  128. name: WEB_MVC_URL
  129. required: true
  130. - description: The cluster internal URL of the Location API endpoint
  131. displayName: Location API URL
  132. name: LOCATION_API_URL
  133. required: true
  134. - description: The cluster internal URL of the Marketing API endpoint
  135. displayName: Marketing API URL
  136. name: MARKETING_API_URL
  137. required: true
  138. - description: The cluster internal URL of the Basket API endpoint
  139. displayName: Basket API URL
  140. name: BASKET_API_URL
  141. required: true
  142. - description: The cluster internal URL of the Ordering API endpoint
  143. displayName: Ordering API URL
  144. name: ORDERING_API_URL
  145. required: true
  146. - description: The cluster internal URL of the Mobile Shopping Aggregator endpoint
  147. displayName: Mobile Shopping Aggregator URL
  148. name: MOBILE_SHOPPING_AGGREGATOR_URL
  149. required: true
  150. - description: The cluster internal URL of the Web Shopping Aggregator endpoint
  151. displayName: Web Shopping Aggregator URL
  152. name: WEB_SHOPPING_AGGREGATOR_URL
  153. required: true
  154. - description: The cluster internal URL of the Webhooks API endpoint
  155. displayName: Webhooks API URL
  156. name: WEBHOOKS_API_URL
  157. required: true
  158. - description: The cluster internal URL of the Webhooks Client endpoint
  159. displayName: Webhooks Client URL
  160. name: WEBHOOKS_WEB_CLIENT_URL
  161. required: true