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.

242 lines
5.8 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_ENVIRONMENT
  19. value: Development
  20. - name: ASPNETCORE_URLS
  21. value: http://0.0.0.0:80/basket-api
  22. - name: ConnectionString
  23. value: 127.0.0.1
  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_ENVIRONMENT
  56. value: Development
  57. - name: ASPNETCORE_URLS
  58. value: http://0.0.0.0:80/catalog-api
  59. - name: ConnectionString
  60. value: "Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word"
  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_ENVIRONMENT
  89. value: Development
  90. - name: ASPNETCORE_URLS
  91. value: http://0.0.0.0:80/identity
  92. - name: ConnectionStrings__DefaultConnection
  93. value: "Server=sql-data;Initial Catalog=Microsoft.eShopOnContainers.Services.CatalogDb;User Id=sa;Password=Pass@word"
  94. - name: MvcClient
  95. valueFrom:
  96. configMapKeyRef:
  97. name: urls
  98. key: MvcClient
  99. - name: SpaClient
  100. valueFrom:
  101. configMapKeyRef:
  102. name: urls
  103. key: SpaClient
  104. ports:
  105. - containerPort: 80
  106. imagePullSecrets:
  107. - name: registry-key
  108. ---
  109. apiVersion: extensions/v1beta1
  110. kind: Deployment
  111. metadata:
  112. name: ordering
  113. spec:
  114. paused: true
  115. template:
  116. metadata:
  117. labels:
  118. app: eshop
  119. component: ordering
  120. spec:
  121. containers:
  122. - name: ordering
  123. image: eshop/ordering.api
  124. imagePullPolicy: Always
  125. env:
  126. - name: ASPNETCORE_ENVIRONMENT
  127. value: Development
  128. - name: ASPNETCORE_URLS
  129. value: http://0.0.0.0:80/ordering-api
  130. - name: ConnectionString
  131. value: "Server=sql-data;Database=Microsoft.eShopOnContainers.Services.OrderingDb;User Id=sa;Password=Pass@word;"
  132. - name: IdentityUrl
  133. valueFrom:
  134. configMapKeyRef:
  135. name: urls
  136. key: IdentityUrl
  137. ports:
  138. - containerPort: 80
  139. imagePullSecrets:
  140. - name: registry-key
  141. ---
  142. apiVersion: extensions/v1beta1
  143. kind: Deployment
  144. metadata:
  145. name: webmvc
  146. spec:
  147. paused: true
  148. template:
  149. metadata:
  150. labels:
  151. app: eshop
  152. component: webmvc
  153. spec:
  154. containers:
  155. - name: webmvc
  156. image: eshop/webmvc
  157. imagePullPolicy: Always
  158. env:
  159. - name: ASPNETCORE_ENVIRONMENT
  160. value: Development
  161. - name: ASPNETCORE_URLS
  162. value: http://0.0.0.0:80/webmvc
  163. - name: BasketUrl
  164. valueFrom:
  165. configMapKeyRef:
  166. name: urls
  167. key: BasketUrl
  168. - name: CallBackUrl
  169. valueFrom:
  170. configMapKeyRef:
  171. name: urls
  172. key: MvcClient
  173. - name: CatalogUrl
  174. valueFrom:
  175. configMapKeyRef:
  176. name: urls
  177. key: CatalogUrl
  178. - name: IdentityUrl
  179. valueFrom:
  180. configMapKeyRef:
  181. name: urls
  182. key: IdentityUrl
  183. - name: OrderingUrl
  184. valueFrom:
  185. configMapKeyRef:
  186. name: urls
  187. key: OrderingUrl
  188. ports:
  189. - containerPort: 80
  190. imagePullSecrets:
  191. - name: registry-key
  192. ---
  193. apiVersion: extensions/v1beta1
  194. kind: Deployment
  195. metadata:
  196. name: webspa
  197. spec:
  198. paused: true
  199. template:
  200. metadata:
  201. labels:
  202. app: eshop
  203. component: webspa
  204. spec:
  205. containers:
  206. - name: webspa
  207. image: eshop/webspa
  208. imagePullPolicy: Always
  209. env:
  210. - name: ASPNETCORE_ENVIRONMENT
  211. value: Development
  212. - name: ASPNETCORE_URLS
  213. value: http://0.0.0.0:80
  214. - name: BasketUrl
  215. valueFrom:
  216. configMapKeyRef:
  217. name: urls
  218. key: BasketUrl
  219. - name: CallBackUrl
  220. valueFrom:
  221. configMapKeyRef:
  222. name: urls
  223. key: SpaClient
  224. - name: CatalogUrl
  225. valueFrom:
  226. configMapKeyRef:
  227. name: urls
  228. key: CatalogUrl
  229. - name: IdentityUrl
  230. valueFrom:
  231. configMapKeyRef:
  232. name: urls
  233. key: IdentityUrl
  234. - name: OrderingUrl
  235. valueFrom:
  236. configMapKeyRef:
  237. name: urls
  238. key: OrderingUrl
  239. ports:
  240. - containerPort: 80
  241. imagePullSecrets:
  242. - name: registry-key