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.

852 lines
22 KiB

7 years ago
7 years ago
  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: PATH_BASE
  19. value: /basket-api
  20. - name: ConnectionString
  21. valueFrom:
  22. configMapKeyRef:
  23. name: externalcfg
  24. key: basket__ConnectionString
  25. - name: EventBusConnection
  26. valueFrom:
  27. configMapKeyRef:
  28. name: externalcfg
  29. key: all__EventBusConnection
  30. - name: AzureServiceBusEnabled
  31. valueFrom:
  32. configMapKeyRef:
  33. name: externalcfg
  34. key: all__UseAzureServiceBus
  35. - name: ApplicationInsights__InstrumentationKey
  36. valueFrom:
  37. configMapKeyRef:
  38. name: externalcfg
  39. key: all__InstrumentationKey
  40. - name: IdentityUrl
  41. valueFrom:
  42. configMapKeyRef:
  43. name: urls
  44. key: identity_e
  45. - name: UseLoadTest
  46. valueFrom:
  47. configMapKeyRef:
  48. name: externalcfg
  49. key: all__EnableLoadTest
  50. - name: OrchestratorType
  51. value: 'K8S'
  52. ports:
  53. - containerPort: 80
  54. readinessProbe:
  55. httpGet:
  56. path: /hc
  57. port: 80
  58. scheme: HTTP
  59. initialDelaySeconds: 300
  60. periodSeconds: 240
  61. imagePullSecrets:
  62. - name: registry-key
  63. ---
  64. apiVersion: extensions/v1beta1
  65. kind: Deployment
  66. metadata:
  67. name: catalog
  68. spec:
  69. paused: true
  70. template:
  71. metadata:
  72. labels:
  73. app: eshop
  74. component: catalog
  75. spec:
  76. containers:
  77. - name: catalog
  78. image: eshop/catalog.api
  79. imagePullPolicy: Always
  80. env:
  81. - name: PATH_BASE
  82. value: /catalog-api
  83. - name: ConnectionString
  84. valueFrom:
  85. configMapKeyRef:
  86. name: externalcfg
  87. key: catalog__ConnectionString
  88. - name: PicBaseUrl
  89. valueFrom:
  90. configMapKeyRef:
  91. name: urls
  92. key: PicBaseUrl
  93. - name: AzureStorageEnabled
  94. valueFrom:
  95. configMapKeyRef:
  96. name: externalcfg
  97. key: catalog__AzureStorageEnabled
  98. - name: EventBusConnection
  99. valueFrom:
  100. configMapKeyRef:
  101. name: externalcfg
  102. key: all__EventBusConnection
  103. - name: ApplicationInsights__InstrumentationKey
  104. valueFrom:
  105. configMapKeyRef:
  106. name: externalcfg
  107. key: all__InstrumentationKey
  108. - name: OrchestratorType
  109. value: 'K8S'
  110. ports:
  111. - containerPort: 80
  112. readinessProbe:
  113. httpGet:
  114. path: /hc
  115. port: 80
  116. scheme: HTTP
  117. initialDelaySeconds: 300
  118. periodSeconds: 240
  119. imagePullSecrets:
  120. - name: registry-key
  121. ---
  122. apiVersion: extensions/v1beta1
  123. kind: Deployment
  124. metadata:
  125. name: identity
  126. spec:
  127. paused: true
  128. template:
  129. metadata:
  130. labels:
  131. app: eshop
  132. component: identity
  133. spec:
  134. containers:
  135. - name: identity
  136. image: eshop/identity.api
  137. imagePullPolicy: Always
  138. env:
  139. - name: PATH_BASE
  140. value: /identity
  141. - name: ConnectionString
  142. valueFrom:
  143. configMapKeyRef:
  144. name: externalcfg
  145. key: identity__ConnectionString
  146. - name: DPConnectionString
  147. valueFrom:
  148. configMapKeyRef:
  149. name: externalcfg
  150. key: keystore
  151. - name: IsClusterEnv
  152. value: 'True'
  153. - name: MvcClient
  154. valueFrom:
  155. configMapKeyRef:
  156. name: urls
  157. key: mvc_e
  158. - name: SpaClient
  159. valueFrom:
  160. configMapKeyRef:
  161. name: urls
  162. key: spa_e
  163. - name: LocationApiClient
  164. valueFrom:
  165. configMapKeyRef:
  166. name: urls
  167. key: locations_e
  168. - name: MarketingApiClient
  169. valueFrom:
  170. configMapKeyRef:
  171. name: urls
  172. key: marketing_e
  173. - name: BasketApiClient
  174. valueFrom:
  175. configMapKeyRef:
  176. name: urls
  177. key: basket_e
  178. - name: OrderingApiClient
  179. valueFrom:
  180. configMapKeyRef:
  181. name: urls
  182. key: ordering_e
  183. - name: MobileShoppingAggClient
  184. valueFrom:
  185. configMapKeyRef:
  186. name: urls
  187. key: mobileshoppingagg_e
  188. - name: WebShoppingAggClient
  189. valueFrom:
  190. configMapKeyRef:
  191. name: urls
  192. key: webshoppingagg_e
  193. - name: XamarinCallback
  194. valueFrom:
  195. configMapKeyRef:
  196. name: urls
  197. key: xamarin_callback_e
  198. - name: ApplicationInsights__InstrumentationKey
  199. valueFrom:
  200. configMapKeyRef:
  201. name: externalcfg
  202. key: all__InstrumentationKey
  203. - name: OrchestratorType
  204. value: 'K8S'
  205. ports:
  206. - containerPort: 80
  207. readinessProbe:
  208. httpGet:
  209. path: /hc
  210. port: 80
  211. scheme: HTTP
  212. initialDelaySeconds: 300
  213. periodSeconds: 240
  214. imagePullSecrets:
  215. - name: registry-key
  216. ---
  217. apiVersion: extensions/v1beta1
  218. kind: Deployment
  219. metadata:
  220. name: ordering
  221. spec:
  222. paused: true
  223. template:
  224. metadata:
  225. labels:
  226. app: eshop
  227. component: ordering
  228. spec:
  229. containers:
  230. - name: ordering
  231. image: eshop/ordering.api
  232. imagePullPolicy: Always
  233. env:
  234. - name: PATH_BASE
  235. value: /ordering-api
  236. - name: ConnectionString
  237. valueFrom:
  238. configMapKeyRef:
  239. name: externalcfg
  240. key: ordering__ConnectionString
  241. - name: EventBusConnection
  242. valueFrom:
  243. configMapKeyRef:
  244. name: externalcfg
  245. key: all__EventBusConnection
  246. - name: AzureServiceBusEnabled
  247. valueFrom:
  248. configMapKeyRef:
  249. name: externalcfg
  250. key: all__UseAzureServiceBus
  251. - name: IdentityUrl
  252. valueFrom:
  253. configMapKeyRef:
  254. name: urls
  255. key: identity_e
  256. - name: CheckUpdateTime
  257. valueFrom:
  258. configMapKeyRef:
  259. name: externalcfg
  260. key: GracePeriodManager__CheckUpdateTime
  261. - name: GracePeriodTime
  262. valueFrom:
  263. configMapKeyRef:
  264. name: externalcfg
  265. key: GracePeriodManager__GracePeriodTime
  266. - name: ApplicationInsights__InstrumentationKey
  267. valueFrom:
  268. configMapKeyRef:
  269. name: externalcfg
  270. key: all__InstrumentationKey
  271. - name: UseLoadTest
  272. valueFrom:
  273. configMapKeyRef:
  274. name: externalcfg
  275. key: all__EnableLoadTest
  276. - name: OrchestratorType
  277. value: 'K8S'
  278. ports:
  279. - containerPort: 80
  280. readinessProbe:
  281. httpGet:
  282. path: /hc
  283. port: 80
  284. scheme: HTTP
  285. initialDelaySeconds: 300
  286. periodSeconds: 240
  287. imagePullSecrets:
  288. - name: registry-key
  289. ---
  290. apiVersion: extensions/v1beta1
  291. kind: Deployment
  292. metadata:
  293. name: locations
  294. spec:
  295. paused: true
  296. template:
  297. metadata:
  298. labels:
  299. app: eshop
  300. component: locations
  301. spec:
  302. containers:
  303. - name: locations
  304. image: eshop/locations.api
  305. imagePullPolicy: Always
  306. env:
  307. - name: PATH_BASE
  308. value: /locations-api
  309. - name: ConnectionString
  310. valueFrom:
  311. configMapKeyRef:
  312. name: externalcfg
  313. key: locations__ConnectionString
  314. - name: Database
  315. valueFrom:
  316. configMapKeyRef:
  317. name: externalcfg
  318. key: locations__Database
  319. - name: AzureServiceBusEnabled
  320. valueFrom:
  321. configMapKeyRef:
  322. name: externalcfg
  323. key: all__UseAzureServiceBus
  324. - name: EventBusConnection
  325. valueFrom:
  326. configMapKeyRef:
  327. name: externalcfg
  328. key: all__EventBusConnection
  329. - name: IdentityUrl
  330. valueFrom:
  331. configMapKeyRef:
  332. name: internalurls
  333. key: identity
  334. - name: IdentityUrlExternal
  335. valueFrom:
  336. configMapKeyRef:
  337. name: urls
  338. key: identity_e
  339. - name: ApplicationInsights__InstrumentationKey
  340. valueFrom:
  341. configMapKeyRef:
  342. name: externalcfg
  343. key: all__InstrumentationKey
  344. - name: UseLoadTest
  345. valueFrom:
  346. configMapKeyRef:
  347. name: externalcfg
  348. key: all__EnableLoadTest
  349. - name: OrchestratorType
  350. value: 'K8S'
  351. ports:
  352. - containerPort: 80
  353. readinessProbe:
  354. httpGet:
  355. path: /hc
  356. port: 80
  357. scheme: HTTP
  358. initialDelaySeconds: 300
  359. periodSeconds: 240
  360. imagePullSecrets:
  361. - name: registry-key
  362. ---
  363. apiVersion: extensions/v1beta1
  364. kind: Deployment
  365. metadata:
  366. name: marketing
  367. spec:
  368. paused: true
  369. template:
  370. metadata:
  371. labels:
  372. app: eshop
  373. component: marketing
  374. spec:
  375. containers:
  376. - name: marketing
  377. image: eshop/marketing.api
  378. imagePullPolicy: Always
  379. env:
  380. - name: PATH_BASE
  381. value: /marketing-api
  382. - name: ConnectionString
  383. valueFrom:
  384. configMapKeyRef:
  385. name: externalcfg
  386. key: marketing__ConnectionString
  387. - name: MongoConnectionString
  388. valueFrom:
  389. configMapKeyRef:
  390. name: externalcfg
  391. key: marketing__MongoConnectionString
  392. - name: MongoDatabase
  393. valueFrom:
  394. configMapKeyRef:
  395. name: externalcfg
  396. key: marketing__MongoDatabase
  397. - name: AzureServiceBusEnabled
  398. valueFrom:
  399. configMapKeyRef:
  400. name: externalcfg
  401. key: all__UseAzureServiceBus
  402. - name: EventBusConnection
  403. valueFrom:
  404. configMapKeyRef:
  405. name: externalcfg
  406. key: all__EventBusConnection
  407. - name: IdentityUrl
  408. valueFrom:
  409. configMapKeyRef:
  410. name: internalurls
  411. key: identity
  412. - name: IdentityUrlExternal
  413. valueFrom:
  414. configMapKeyRef:
  415. name: urls
  416. key: identity_e
  417. - name: PicBaseUrl
  418. valueFrom:
  419. configMapKeyRef:
  420. name: urls
  421. key: Marketing_PicBaseUrl
  422. - name: ApplicationInsights__InstrumentationKey
  423. valueFrom:
  424. configMapKeyRef:
  425. name: externalcfg
  426. key: all__InstrumentationKey
  427. - name: UseLoadTest
  428. valueFrom:
  429. configMapKeyRef:
  430. name: externalcfg
  431. key: all__EnableLoadTest
  432. - name: OrchestratorType
  433. value: 'K8S'
  434. ports:
  435. - containerPort: 80
  436. readinessProbe:
  437. httpGet:
  438. path: /hc
  439. port: 80
  440. scheme: HTTP
  441. initialDelaySeconds: 300
  442. periodSeconds: 240
  443. imagePullSecrets:
  444. - name: registry-key
  445. ---
  446. apiVersion: extensions/v1beta1
  447. kind: Deployment
  448. metadata:
  449. name: payment
  450. spec:
  451. paused: true
  452. template:
  453. metadata:
  454. labels:
  455. app: eshop
  456. component: payment
  457. spec:
  458. containers:
  459. - name: payment
  460. image: eshop/payment.api
  461. imagePullPolicy: Always
  462. env:
  463. - name: PATH_BASE
  464. value: /payment-api
  465. - name: AzureServiceBusEnabled
  466. valueFrom:
  467. configMapKeyRef:
  468. name: externalcfg
  469. key: all__UseAzureServiceBus
  470. - name: EventBusConnection
  471. valueFrom:
  472. configMapKeyRef:
  473. name: externalcfg
  474. key: all__EventBusConnection
  475. - name: ApplicationInsights__InstrumentationKey
  476. valueFrom:
  477. configMapKeyRef:
  478. name: externalcfg
  479. key: all__InstrumentationKey
  480. - name: OrchestratorType
  481. value: 'K8S'
  482. ports:
  483. - containerPort: 80
  484. readinessProbe:
  485. httpGet:
  486. path: /hc
  487. port: 80
  488. scheme: HTTP
  489. initialDelaySeconds: 300
  490. periodSeconds: 240
  491. imagePullSecrets:
  492. - name: registry-key
  493. ---
  494. apiVersion: extensions/v1beta1
  495. kind: Deployment
  496. metadata:
  497. name: webmvc
  498. spec:
  499. paused: true
  500. template:
  501. metadata:
  502. labels:
  503. app: eshop
  504. component: webmvc
  505. spec:
  506. containers:
  507. - name: webmvc
  508. image: eshop/webmvc
  509. imagePullPolicy: Always
  510. env:
  511. - name: PATH_BASE
  512. value: /webmvc
  513. - name: DPConnectionString
  514. valueFrom:
  515. configMapKeyRef:
  516. name: externalcfg
  517. key: keystore
  518. - name: IsClusterEnv
  519. value: 'True'
  520. - name: PurchaseUrl
  521. valueFrom:
  522. configMapKeyRef:
  523. name: internalurls
  524. key: apigwws
  525. - name: CallBackUrl
  526. valueFrom:
  527. configMapKeyRef:
  528. name: urls
  529. key: mvc_e
  530. - name: IdentityUrl
  531. valueFrom:
  532. configMapKeyRef:
  533. name: urls
  534. key: identity_e
  535. - name: MarketingUrl
  536. valueFrom:
  537. configMapKeyRef:
  538. name: internalurls
  539. key: apigwwm
  540. - name: BasketUrlHC
  541. valueFrom:
  542. configMapKeyRef:
  543. name: internalurls
  544. key: basket__hc
  545. - name: CatalogUrlHC
  546. valueFrom:
  547. configMapKeyRef:
  548. name: internalurls
  549. key: catalog__hc
  550. - name: IdentityUrlHC
  551. valueFrom:
  552. configMapKeyRef:
  553. name: internalurls
  554. key: identity__hc
  555. - name: OrderingUrlHC
  556. valueFrom:
  557. configMapKeyRef:
  558. name: internalurls
  559. key: ordering__hc
  560. - name: MarketingUrlHC
  561. valueFrom:
  562. configMapKeyRef:
  563. name: internalurls
  564. key: marketing__hc
  565. - name: PaymentUrlHC
  566. valueFrom:
  567. configMapKeyRef:
  568. name: internalurls
  569. key: payment__hc
  570. - name: ApplicationInsights__InstrumentationKey
  571. valueFrom:
  572. configMapKeyRef:
  573. name: externalcfg
  574. key: all__InstrumentationKey
  575. - name: UseLoadTest
  576. valueFrom:
  577. configMapKeyRef:
  578. name: externalcfg
  579. key: all__EnableLoadTest
  580. - name: OrchestratorType
  581. value: 'K8S'
  582. ports:
  583. - containerPort: 80
  584. readinessProbe:
  585. httpGet:
  586. path: /hc
  587. port: 80
  588. scheme: HTTP
  589. initialDelaySeconds: 300
  590. periodSeconds: 240
  591. imagePullSecrets:
  592. - name: registry-key
  593. ---
  594. apiVersion: extensions/v1beta1
  595. kind: Deployment
  596. metadata:
  597. name: webstatus
  598. spec:
  599. paused: true
  600. template:
  601. metadata:
  602. labels:
  603. app: eshop
  604. component: webstatus
  605. spec:
  606. containers:
  607. - name: webstatus
  608. image: eshop/webstatus
  609. imagePullPolicy: Always
  610. env:
  611. - name: PATH_BASE
  612. value: /webstatus
  613. - name: BasketUrl
  614. valueFrom:
  615. configMapKeyRef:
  616. name: internalurls
  617. key: basket__hc
  618. - name: CatalogUrl
  619. valueFrom:
  620. configMapKeyRef:
  621. name: internalurls
  622. key: catalog__hc
  623. - name: IdentityUrl
  624. valueFrom:
  625. configMapKeyRef:
  626. name: internalurls
  627. key: identity__hc
  628. - name: OrderingUrl
  629. valueFrom:
  630. configMapKeyRef:
  631. name: internalurls
  632. key: ordering__hc
  633. - name: LocationsUrl
  634. valueFrom:
  635. configMapKeyRef:
  636. name: internalurls
  637. key: locations__hc
  638. - name: MarketingUrl
  639. valueFrom:
  640. configMapKeyRef:
  641. name: internalurls
  642. key: marketing__hc
  643. - name: mvc
  644. valueFrom:
  645. configMapKeyRef:
  646. name: internalurls
  647. key: mvc__hc
  648. - name: spa
  649. valueFrom:
  650. configMapKeyRef:
  651. name: internalurls
  652. key: spa__hc
  653. - name: PaymentUrl
  654. valueFrom:
  655. configMapKeyRef:
  656. name: internalurls
  657. key: payment__hc
  658. - name: ApplicationInsights__InstrumentationKey
  659. valueFrom:
  660. configMapKeyRef:
  661. name: externalcfg
  662. key: all__InstrumentationKey
  663. - name: OrchestratorType
  664. value: 'K8S'
  665. ports:
  666. - containerPort: 80
  667. imagePullSecrets:
  668. - name: registry-key
  669. ---
  670. apiVersion: extensions/v1beta1
  671. kind: Deployment
  672. metadata:
  673. name: webspa
  674. spec:
  675. paused: true
  676. template:
  677. metadata:
  678. labels:
  679. app: eshop
  680. component: webspa
  681. spec:
  682. containers:
  683. - name: webspa
  684. image: eshop/webspa
  685. imagePullPolicy: Always
  686. env:
  687. - name: ASPNETCORE_URLS
  688. value: http://0.0.0.0:80
  689. - name: DPConnectionString
  690. valueFrom:
  691. configMapKeyRef:
  692. name: externalcfg
  693. key: keystore
  694. - name: IsClusterEnv
  695. value: 'True'
  696. - name: PurchaseUrl
  697. valueFrom:
  698. configMapKeyRef:
  699. name: urls
  700. key: webshoppingapigw_e
  701. - name: CallBackUrl
  702. valueFrom:
  703. configMapKeyRef:
  704. name: urls
  705. key: spa_e
  706. - name: IdentityUrl
  707. valueFrom:
  708. configMapKeyRef:
  709. name: urls
  710. key: identity_e
  711. - name: MarketingUrl
  712. valueFrom:
  713. configMapKeyRef:
  714. name: urls
  715. key: marketingapigw_e
  716. - name: BasketUrlHC
  717. valueFrom:
  718. configMapKeyRef:
  719. name: internalurls
  720. key: basket__hc
  721. - name: CatalogUrlHC
  722. valueFrom:
  723. configMapKeyRef:
  724. name: internalurls
  725. key: catalog__hc
  726. - name: IdentityUrlHC
  727. valueFrom:
  728. configMapKeyRef:
  729. name: internalurls
  730. key: identity__hc
  731. - name: OrderingUrlHC
  732. valueFrom:
  733. configMapKeyRef:
  734. name: internalurls
  735. key: ordering__hc
  736. - name: MarketingUrlHC
  737. valueFrom:
  738. configMapKeyRef:
  739. name: internalurls
  740. key: marketing__hc
  741. - name: PaymentUrlHC
  742. valueFrom:
  743. configMapKeyRef:
  744. name: internalurls
  745. key: payment__hc
  746. - name: ApplicationInsights__InstrumentationKey
  747. valueFrom:
  748. configMapKeyRef:
  749. name: externalcfg
  750. key: all__InstrumentationKey
  751. - name: OrchestratorType
  752. value: 'K8S'
  753. ports:
  754. - containerPort: 80
  755. readinessProbe:
  756. httpGet:
  757. path: /hc
  758. port: 80
  759. scheme: HTTP
  760. initialDelaySeconds: 300
  761. periodSeconds: 240
  762. imagePullSecrets:
  763. - name: registry-key
  764. ---
  765. apiVersion: extensions/v1beta1
  766. kind: Deployment
  767. metadata:
  768. name: webshoppingagg
  769. spec:
  770. paused: true
  771. template:
  772. metadata:
  773. labels:
  774. app: eshop
  775. component: webshoppingagg
  776. spec:
  777. containers:
  778. - name: webshoppingagg
  779. image: eshop/webshoppingagg
  780. imagePullPolicy: Always
  781. env:
  782. - name: ASPNETCORE_URLS
  783. value: http://0.0.0.0:80
  784. - name: urls__basket
  785. valueFrom:
  786. configMapKeyRef:
  787. name: internalurls
  788. key: basket
  789. - name: urls__catalog
  790. valueFrom:
  791. configMapKeyRef:
  792. name: internalurls
  793. key: catalog
  794. - name: urls__orders
  795. valueFrom:
  796. configMapKeyRef:
  797. name: internalurls
  798. key: ordering
  799. - name: urls__identity
  800. valueFrom:
  801. configMapKeyRef:
  802. name: internalurls
  803. key: identity
  804. ports:
  805. - containerPort: 80
  806. imagePullSecrets:
  807. - name: registry-key
  808. ---
  809. apiVersion: extensions/v1beta1
  810. kind: Deployment
  811. metadata:
  812. name: mobileshoppingagg
  813. spec:
  814. paused: true
  815. template:
  816. metadata:
  817. labels:
  818. app: eshop
  819. component: mobileshoppingagg
  820. spec:
  821. containers:
  822. - name: mobileshoppingagg
  823. image: eshop/mobileshoppingagg
  824. imagePullPolicy: Always
  825. env:
  826. - name: ASPNETCORE_URLS
  827. value: http://0.0.0.0:80
  828. - name: urls__basket
  829. valueFrom:
  830. configMapKeyRef:
  831. name: internalurls
  832. key: basket
  833. - name: urls__catalog
  834. valueFrom:
  835. configMapKeyRef:
  836. name: internalurls
  837. key: catalog
  838. - name: urls__orders
  839. valueFrom:
  840. configMapKeyRef:
  841. name: internalurls
  842. key: ordering
  843. - name: urls__identity
  844. valueFrom:
  845. configMapKeyRef:
  846. name: internalurls
  847. key: identity
  848. ports:
  849. - containerPort: 80
  850. imagePullSecrets:
  851. - name: registry-key
  852. ---