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.

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