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.

236 lines
5.5 KiB

  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: basket
  5. spec:
  6. paused: true
  7. template:
  8. metadata:
  9. labels:
  10. app: eshop
  11. component: basket
  12. spec:
  13. containers:
  14. - name: basket
  15. image: eshop/basket.api
  16. imagePullPolicy: Always
  17. env:
  18. - name: ASPNETCORE_URLS
  19. value: http://0.0.0.0:80/basket-api
  20. - name: ConnectionString
  21. value: 127.0.0.1
  22. - name: EventBusConnection
  23. value: rabbitmq
  24. - name: IdentityUrl
  25. valueFrom:
  26. configMapKeyRef:
  27. name: urls
  28. key: IdentityUrl
  29. ports:
  30. - containerPort: 80
  31. - name: basket-data
  32. image: redis:3.2-alpine
  33. ports:
  34. - containerPort: 6379
  35. imagePullSecrets:
  36. - name: registry-key
  37. ---
  38. apiVersion: extensions/v1beta1
  39. kind: Deployment
  40. metadata:
  41. name: catalog
  42. spec:
  43. paused: true
  44. template:
  45. metadata:
  46. labels:
  47. app: eshop
  48. component: catalog
  49. spec:
  50. containers:
  51. - name: catalog
  52. image: eshop/catalog.api
  53. imagePullPolicy: Always
  54. env:
  55. - name: ASPNETCORE_URLS
  56. value: http://0.0.0.0:80/catalog-api
  57. - name: ConnectionString
  58. value: "Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word"
  59. - name: EventBusConnection
  60. value: rabbitmq
  61. - name: ExternalCatalogBaseUrl
  62. valueFrom:
  63. configMapKeyRef:
  64. name: urls
  65. key: CatalogUrl
  66. ports:
  67. - containerPort: 80
  68. imagePullSecrets:
  69. - name: registry-key
  70. ---
  71. apiVersion: extensions/v1beta1
  72. kind: Deployment
  73. metadata:
  74. name: identity
  75. spec:
  76. paused: true
  77. template:
  78. metadata:
  79. labels:
  80. app: eshop
  81. component: identity
  82. spec:
  83. containers:
  84. - name: identity
  85. image: eshop/identity.api
  86. imagePullPolicy: Always
  87. env:
  88. - name: ASPNETCORE_URLS
  89. value: http://0.0.0.0:80/identity
  90. - name: ConnectionStrings__DefaultConnection
  91. value: "Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.IdentityDb;User Id=sa;Password=Pass@word"
  92. - name: MvcClient
  93. valueFrom:
  94. configMapKeyRef:
  95. name: urls
  96. key: MvcClient
  97. - name: SpaClient
  98. valueFrom:
  99. configMapKeyRef:
  100. name: urls
  101. key: SpaClient
  102. ports:
  103. - containerPort: 80
  104. imagePullSecrets:
  105. - name: registry-key
  106. ---
  107. apiVersion: extensions/v1beta1
  108. kind: Deployment
  109. metadata:
  110. name: ordering
  111. spec:
  112. paused: true
  113. template:
  114. metadata:
  115. labels:
  116. app: eshop
  117. component: ordering
  118. spec:
  119. containers:
  120. - name: ordering
  121. image: eshop/ordering.api
  122. imagePullPolicy: Always
  123. env:
  124. - name: ASPNETCORE_URLS
  125. value: http://0.0.0.0:80/ordering-api
  126. - name: ConnectionString
  127. value: "Server=sql-data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;"
  128. - name: EventBusConnection
  129. value: rabbitmq
  130. - name: IdentityUrl
  131. valueFrom:
  132. configMapKeyRef:
  133. name: urls
  134. key: IdentityUrl
  135. ports:
  136. - containerPort: 80
  137. imagePullSecrets:
  138. - name: registry-key
  139. ---
  140. apiVersion: extensions/v1beta1
  141. kind: Deployment
  142. metadata:
  143. name: webmvc
  144. spec:
  145. paused: true
  146. template:
  147. metadata:
  148. labels:
  149. app: eshop
  150. component: webmvc
  151. spec:
  152. containers:
  153. - name: webmvc
  154. image: eshop/webmvc
  155. imagePullPolicy: Always
  156. env:
  157. - name: ASPNETCORE_URLS
  158. value: http://0.0.0.0:80/webmvc
  159. - name: BasketUrl
  160. valueFrom:
  161. configMapKeyRef:
  162. name: urls
  163. key: BasketUrl
  164. - name: CallBackUrl
  165. valueFrom:
  166. configMapKeyRef:
  167. name: urls
  168. key: MvcClient
  169. - name: CatalogUrl
  170. valueFrom:
  171. configMapKeyRef:
  172. name: urls
  173. key: CatalogUrl
  174. - name: IdentityUrl
  175. valueFrom:
  176. configMapKeyRef:
  177. name: urls
  178. key: IdentityUrl
  179. - name: OrderingUrl
  180. valueFrom:
  181. configMapKeyRef:
  182. name: urls
  183. key: OrderingUrl
  184. ports:
  185. - containerPort: 80
  186. imagePullSecrets:
  187. - name: registry-key
  188. ---
  189. apiVersion: extensions/v1beta1
  190. kind: Deployment
  191. metadata:
  192. name: webspa
  193. spec:
  194. paused: true
  195. template:
  196. metadata:
  197. labels:
  198. app: eshop
  199. component: webspa
  200. spec:
  201. containers:
  202. - name: webspa
  203. image: eshop/webspa
  204. imagePullPolicy: Always
  205. env:
  206. - name: ASPNETCORE_URLS
  207. value: http://0.0.0.0:80
  208. - name: BasketUrl
  209. valueFrom:
  210. configMapKeyRef:
  211. name: urls
  212. key: BasketUrl
  213. - name: CallBackUrl
  214. valueFrom:
  215. configMapKeyRef:
  216. name: urls
  217. key: SpaClient
  218. - name: CatalogUrl
  219. valueFrom:
  220. configMapKeyRef:
  221. name: urls
  222. key: CatalogUrl
  223. - name: IdentityUrl
  224. valueFrom:
  225. configMapKeyRef:
  226. name: urls
  227. key: IdentityUrl
  228. - name: OrderingUrl
  229. valueFrom:
  230. configMapKeyRef:
  231. name: urls
  232. key: OrderingUrl
  233. ports:
  234. - containerPort: 80
  235. imagePullSecrets:
  236. - name: registry-key