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.

841 lines
21 KiB

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