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.

847 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: ApplicationInsights__InstrumentationKey
  194. valueFrom:
  195. configMapKeyRef:
  196. name: externalcfg
  197. key: all__InstrumentationKey
  198. - name: OrchestratorType
  199. value: 'K8S'
  200. ports:
  201. - containerPort: 80
  202. readinessProbe:
  203. httpGet:
  204. path: /hc
  205. port: 80
  206. scheme: HTTP
  207. initialDelaySeconds: 300
  208. periodSeconds: 240
  209. imagePullSecrets:
  210. - name: registry-key
  211. ---
  212. apiVersion: extensions/v1beta1
  213. kind: Deployment
  214. metadata:
  215. name: ordering
  216. spec:
  217. paused: true
  218. template:
  219. metadata:
  220. labels:
  221. app: eshop
  222. component: ordering
  223. spec:
  224. containers:
  225. - name: ordering
  226. image: eshop/ordering.api
  227. imagePullPolicy: Always
  228. env:
  229. - name: PATH_BASE
  230. value: /ordering-api
  231. - name: ConnectionString
  232. valueFrom:
  233. configMapKeyRef:
  234. name: externalcfg
  235. key: ordering__ConnectionString
  236. - name: EventBusConnection
  237. valueFrom:
  238. configMapKeyRef:
  239. name: externalcfg
  240. key: all__EventBusConnection
  241. - name: AzureServiceBusEnabled
  242. valueFrom:
  243. configMapKeyRef:
  244. name: externalcfg
  245. key: all__UseAzureServiceBus
  246. - name: IdentityUrl
  247. valueFrom:
  248. configMapKeyRef:
  249. name: urls
  250. key: identity_e
  251. - name: CheckUpdateTime
  252. valueFrom:
  253. configMapKeyRef:
  254. name: externalcfg
  255. key: GracePeriodManager__CheckUpdateTime
  256. - name: GracePeriodTime
  257. valueFrom:
  258. configMapKeyRef:
  259. name: externalcfg
  260. key: GracePeriodManager__GracePeriodTime
  261. - name: ApplicationInsights__InstrumentationKey
  262. valueFrom:
  263. configMapKeyRef:
  264. name: externalcfg
  265. key: all__InstrumentationKey
  266. - name: UseLoadTest
  267. valueFrom:
  268. configMapKeyRef:
  269. name: externalcfg
  270. key: all__EnableLoadTest
  271. - name: OrchestratorType
  272. value: 'K8S'
  273. ports:
  274. - containerPort: 80
  275. readinessProbe:
  276. httpGet:
  277. path: /hc
  278. port: 80
  279. scheme: HTTP
  280. initialDelaySeconds: 300
  281. periodSeconds: 240
  282. imagePullSecrets:
  283. - name: registry-key
  284. ---
  285. apiVersion: extensions/v1beta1
  286. kind: Deployment
  287. metadata:
  288. name: locations
  289. spec:
  290. paused: true
  291. template:
  292. metadata:
  293. labels:
  294. app: eshop
  295. component: locations
  296. spec:
  297. containers:
  298. - name: locations
  299. image: eshop/locations.api
  300. imagePullPolicy: Always
  301. env:
  302. - name: PATH_BASE
  303. value: /locations-api
  304. - name: ConnectionString
  305. valueFrom:
  306. configMapKeyRef:
  307. name: externalcfg
  308. key: locations__ConnectionString
  309. - name: Database
  310. valueFrom:
  311. configMapKeyRef:
  312. name: externalcfg
  313. key: locations__Database
  314. - name: AzureServiceBusEnabled
  315. valueFrom:
  316. configMapKeyRef:
  317. name: externalcfg
  318. key: all__UseAzureServiceBus
  319. - name: EventBusConnection
  320. valueFrom:
  321. configMapKeyRef:
  322. name: externalcfg
  323. key: all__EventBusConnection
  324. - name: IdentityUrl
  325. valueFrom:
  326. configMapKeyRef:
  327. name: internalurls
  328. key: identity
  329. - name: IdentityUrlExternal
  330. valueFrom:
  331. configMapKeyRef:
  332. name: urls
  333. key: identity_e
  334. - name: ApplicationInsights__InstrumentationKey
  335. valueFrom:
  336. configMapKeyRef:
  337. name: externalcfg
  338. key: all__InstrumentationKey
  339. - name: UseLoadTest
  340. valueFrom:
  341. configMapKeyRef:
  342. name: externalcfg
  343. key: all__EnableLoadTest
  344. - name: OrchestratorType
  345. value: 'K8S'
  346. ports:
  347. - containerPort: 80
  348. readinessProbe:
  349. httpGet:
  350. path: /hc
  351. port: 80
  352. scheme: HTTP
  353. initialDelaySeconds: 300
  354. periodSeconds: 240
  355. imagePullSecrets:
  356. - name: registry-key
  357. ---
  358. apiVersion: extensions/v1beta1
  359. kind: Deployment
  360. metadata:
  361. name: marketing
  362. spec:
  363. paused: true
  364. template:
  365. metadata:
  366. labels:
  367. app: eshop
  368. component: marketing
  369. spec:
  370. containers:
  371. - name: marketing
  372. image: eshop/marketing.api
  373. imagePullPolicy: Always
  374. env:
  375. - name: PATH_BASE
  376. value: /marketing-api
  377. - name: ConnectionString
  378. valueFrom:
  379. configMapKeyRef:
  380. name: externalcfg
  381. key: marketing__ConnectionString
  382. - name: MongoConnectionString
  383. valueFrom:
  384. configMapKeyRef:
  385. name: externalcfg
  386. key: marketing__MongoConnectionString
  387. - name: MongoDatabase
  388. valueFrom:
  389. configMapKeyRef:
  390. name: externalcfg
  391. key: marketing__MongoDatabase
  392. - name: AzureServiceBusEnabled
  393. valueFrom:
  394. configMapKeyRef:
  395. name: externalcfg
  396. key: all__UseAzureServiceBus
  397. - name: EventBusConnection
  398. valueFrom:
  399. configMapKeyRef:
  400. name: externalcfg
  401. key: all__EventBusConnection
  402. - name: IdentityUrl
  403. valueFrom:
  404. configMapKeyRef:
  405. name: internalurls
  406. key: identity
  407. - name: IdentityUrlExternal
  408. valueFrom:
  409. configMapKeyRef:
  410. name: urls
  411. key: identity_e
  412. - name: PicBaseUrl
  413. valueFrom:
  414. configMapKeyRef:
  415. name: urls
  416. key: Marketing_PicBaseUrl
  417. - name: ApplicationInsights__InstrumentationKey
  418. valueFrom:
  419. configMapKeyRef:
  420. name: externalcfg
  421. key: all__InstrumentationKey
  422. - name: UseLoadTest
  423. valueFrom:
  424. configMapKeyRef:
  425. name: externalcfg
  426. key: all__EnableLoadTest
  427. - name: OrchestratorType
  428. value: 'K8S'
  429. ports:
  430. - containerPort: 80
  431. readinessProbe:
  432. httpGet:
  433. path: /hc
  434. port: 80
  435. scheme: HTTP
  436. initialDelaySeconds: 300
  437. periodSeconds: 240
  438. imagePullSecrets:
  439. - name: registry-key
  440. ---
  441. apiVersion: extensions/v1beta1
  442. kind: Deployment
  443. metadata:
  444. name: payment
  445. spec:
  446. paused: true
  447. template:
  448. metadata:
  449. labels:
  450. app: eshop
  451. component: payment
  452. spec:
  453. containers:
  454. - name: payment
  455. image: eshop/payment.api
  456. imagePullPolicy: Always
  457. env:
  458. - name: PATH_BASE
  459. value: /payment-api
  460. - name: AzureServiceBusEnabled
  461. valueFrom:
  462. configMapKeyRef:
  463. name: externalcfg
  464. key: all__UseAzureServiceBus
  465. - name: EventBusConnection
  466. valueFrom:
  467. configMapKeyRef:
  468. name: externalcfg
  469. key: all__EventBusConnection
  470. - name: ApplicationInsights__InstrumentationKey
  471. valueFrom:
  472. configMapKeyRef:
  473. name: externalcfg
  474. key: all__InstrumentationKey
  475. - name: OrchestratorType
  476. value: 'K8S'
  477. ports:
  478. - containerPort: 80
  479. readinessProbe:
  480. httpGet:
  481. path: /hc
  482. port: 80
  483. scheme: HTTP
  484. initialDelaySeconds: 300
  485. periodSeconds: 240
  486. imagePullSecrets:
  487. - name: registry-key
  488. ---
  489. apiVersion: extensions/v1beta1
  490. kind: Deployment
  491. metadata:
  492. name: webmvc
  493. spec:
  494. paused: true
  495. template:
  496. metadata:
  497. labels:
  498. app: eshop
  499. component: webmvc
  500. spec:
  501. containers:
  502. - name: webmvc
  503. image: eshop/webmvc
  504. imagePullPolicy: Always
  505. env:
  506. - name: PATH_BASE
  507. value: /webmvc
  508. - name: DPConnectionString
  509. valueFrom:
  510. configMapKeyRef:
  511. name: externalcfg
  512. key: keystore
  513. - name: IsClusterEnv
  514. value: 'True'
  515. - name: PurchaseUrl
  516. valueFrom:
  517. configMapKeyRef:
  518. name: internalurls
  519. key: apigwws
  520. - name: CallBackUrl
  521. valueFrom:
  522. configMapKeyRef:
  523. name: urls
  524. key: mvc_e
  525. - name: IdentityUrl
  526. valueFrom:
  527. configMapKeyRef:
  528. name: urls
  529. key: identity_e
  530. - name: MarketingUrl
  531. valueFrom:
  532. configMapKeyRef:
  533. name: internalurls
  534. key: apigwwm
  535. - name: BasketUrlHC
  536. valueFrom:
  537. configMapKeyRef:
  538. name: internalurls
  539. key: basket__hc
  540. - name: CatalogUrlHC
  541. valueFrom:
  542. configMapKeyRef:
  543. name: internalurls
  544. key: catalog__hc
  545. - name: IdentityUrlHC
  546. valueFrom:
  547. configMapKeyRef:
  548. name: internalurls
  549. key: identity__hc
  550. - name: OrderingUrlHC
  551. valueFrom:
  552. configMapKeyRef:
  553. name: internalurls
  554. key: ordering__hc
  555. - name: MarketingUrlHC
  556. valueFrom:
  557. configMapKeyRef:
  558. name: internalurls
  559. key: marketing__hc
  560. - name: PaymentUrlHC
  561. valueFrom:
  562. configMapKeyRef:
  563. name: internalurls
  564. key: payment__hc
  565. - name: ApplicationInsights__InstrumentationKey
  566. valueFrom:
  567. configMapKeyRef:
  568. name: externalcfg
  569. key: all__InstrumentationKey
  570. - name: UseLoadTest
  571. valueFrom:
  572. configMapKeyRef:
  573. name: externalcfg
  574. key: all__EnableLoadTest
  575. - name: OrchestratorType
  576. value: 'K8S'
  577. ports:
  578. - containerPort: 80
  579. readinessProbe:
  580. httpGet:
  581. path: /hc
  582. port: 80
  583. scheme: HTTP
  584. initialDelaySeconds: 300
  585. periodSeconds: 240
  586. imagePullSecrets:
  587. - name: registry-key
  588. ---
  589. apiVersion: extensions/v1beta1
  590. kind: Deployment
  591. metadata:
  592. name: webstatus
  593. spec:
  594. paused: true
  595. template:
  596. metadata:
  597. labels:
  598. app: eshop
  599. component: webstatus
  600. spec:
  601. containers:
  602. - name: webstatus
  603. image: eshop/webstatus
  604. imagePullPolicy: Always
  605. env:
  606. - name: PATH_BASE
  607. value: /webstatus
  608. - name: BasketUrl
  609. valueFrom:
  610. configMapKeyRef:
  611. name: internalurls
  612. key: basket__hc
  613. - name: CatalogUrl
  614. valueFrom:
  615. configMapKeyRef:
  616. name: internalurls
  617. key: catalog__hc
  618. - name: IdentityUrl
  619. valueFrom:
  620. configMapKeyRef:
  621. name: internalurls
  622. key: identity__hc
  623. - name: OrderingUrl
  624. valueFrom:
  625. configMapKeyRef:
  626. name: internalurls
  627. key: ordering__hc
  628. - name: LocationsUrl
  629. valueFrom:
  630. configMapKeyRef:
  631. name: internalurls
  632. key: locations__hc
  633. - name: MarketingUrl
  634. valueFrom:
  635. configMapKeyRef:
  636. name: internalurls
  637. key: marketing__hc
  638. - name: mvc
  639. valueFrom:
  640. configMapKeyRef:
  641. name: internalurls
  642. key: mvc__hc
  643. - name: spa
  644. valueFrom:
  645. configMapKeyRef:
  646. name: internalurls
  647. key: spa__hc
  648. - name: PaymentUrl
  649. valueFrom:
  650. configMapKeyRef:
  651. name: internalurls
  652. key: payment__hc
  653. - name: ApplicationInsights__InstrumentationKey
  654. valueFrom:
  655. configMapKeyRef:
  656. name: externalcfg
  657. key: all__InstrumentationKey
  658. - name: OrchestratorType
  659. value: 'K8S'
  660. ports:
  661. - containerPort: 80
  662. imagePullSecrets:
  663. - name: registry-key
  664. ---
  665. apiVersion: extensions/v1beta1
  666. kind: Deployment
  667. metadata:
  668. name: webspa
  669. spec:
  670. paused: true
  671. template:
  672. metadata:
  673. labels:
  674. app: eshop
  675. component: webspa
  676. spec:
  677. containers:
  678. - name: webspa
  679. image: eshop/webspa
  680. imagePullPolicy: Always
  681. env:
  682. - name: ASPNETCORE_URLS
  683. value: http://0.0.0.0:80
  684. - name: DPConnectionString
  685. valueFrom:
  686. configMapKeyRef:
  687. name: externalcfg
  688. key: keystore
  689. - name: IsClusterEnv
  690. value: 'True'
  691. - name: PurchaseUrl
  692. valueFrom:
  693. configMapKeyRef:
  694. name: urls
  695. key: webshoppingapigw_e
  696. - name: CallBackUrl
  697. valueFrom:
  698. configMapKeyRef:
  699. name: urls
  700. key: spa_e
  701. - name: IdentityUrl
  702. valueFrom:
  703. configMapKeyRef:
  704. name: urls
  705. key: identity_e
  706. - name: MarketingUrl
  707. valueFrom:
  708. configMapKeyRef:
  709. name: urls
  710. key: marketingapigw_e
  711. - name: BasketUrlHC
  712. valueFrom:
  713. configMapKeyRef:
  714. name: internalurls
  715. key: basket__hc
  716. - name: CatalogUrlHC
  717. valueFrom:
  718. configMapKeyRef:
  719. name: internalurls
  720. key: catalog__hc
  721. - name: IdentityUrlHC
  722. valueFrom:
  723. configMapKeyRef:
  724. name: internalurls
  725. key: identity__hc
  726. - name: OrderingUrlHC
  727. valueFrom:
  728. configMapKeyRef:
  729. name: internalurls
  730. key: ordering__hc
  731. - name: MarketingUrlHC
  732. valueFrom:
  733. configMapKeyRef:
  734. name: internalurls
  735. key: marketing__hc
  736. - name: PaymentUrlHC
  737. valueFrom:
  738. configMapKeyRef:
  739. name: internalurls
  740. key: payment__hc
  741. - name: ApplicationInsights__InstrumentationKey
  742. valueFrom:
  743. configMapKeyRef:
  744. name: externalcfg
  745. key: all__InstrumentationKey
  746. - name: OrchestratorType
  747. value: 'K8S'
  748. ports:
  749. - containerPort: 80
  750. readinessProbe:
  751. httpGet:
  752. path: /hc
  753. port: 80
  754. scheme: HTTP
  755. initialDelaySeconds: 300
  756. periodSeconds: 240
  757. imagePullSecrets:
  758. - name: registry-key
  759. ---
  760. apiVersion: extensions/v1beta1
  761. kind: Deployment
  762. metadata:
  763. name: webshoppingagg
  764. spec:
  765. paused: true
  766. template:
  767. metadata:
  768. labels:
  769. app: eshop
  770. component: webshoppingagg
  771. spec:
  772. containers:
  773. - name: webshoppingagg
  774. image: eshop/webshoppingagg
  775. imagePullPolicy: Always
  776. env:
  777. - name: ASPNETCORE_URLS
  778. value: http://0.0.0.0:80
  779. - name: urls__basket
  780. valueFrom:
  781. configMapKeyRef:
  782. name: internalurls
  783. key: basket
  784. - name: urls__catalog
  785. valueFrom:
  786. configMapKeyRef:
  787. name: internalurls
  788. key: catalog
  789. - name: urls__orders
  790. valueFrom:
  791. configMapKeyRef:
  792. name: internalurls
  793. key: ordering
  794. - name: urls__identity
  795. valueFrom:
  796. configMapKeyRef:
  797. name: internalurls
  798. key: identity
  799. ports:
  800. - containerPort: 80
  801. imagePullSecrets:
  802. - name: registry-key
  803. ---
  804. apiVersion: extensions/v1beta1
  805. kind: Deployment
  806. metadata:
  807. name: mobileshoppingagg
  808. spec:
  809. paused: true
  810. template:
  811. metadata:
  812. labels:
  813. app: eshop
  814. component: mobileshoppingagg
  815. spec:
  816. containers:
  817. - name: mobileshoppingagg
  818. image: eshop/mobileshoppingagg
  819. imagePullPolicy: Always
  820. env:
  821. - name: ASPNETCORE_URLS
  822. value: http://0.0.0.0:80
  823. - name: urls__basket
  824. valueFrom:
  825. configMapKeyRef:
  826. name: internalurls
  827. key: basket
  828. - name: urls__catalog
  829. valueFrom:
  830. configMapKeyRef:
  831. name: internalurls
  832. key: catalog
  833. - name: urls__orders
  834. valueFrom:
  835. configMapKeyRef:
  836. name: internalurls
  837. key: ordering
  838. - name: urls__identity
  839. valueFrom:
  840. configMapKeyRef:
  841. name: internalurls
  842. key: identity
  843. ports:
  844. - containerPort: 80
  845. imagePullSecrets:
  846. - name: registry-key
  847. ---