component.yaml 53 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752
  1. ---
  2. # Source: opentelemetry-demo/templates/component.yaml
  3. apiVersion: v1
  4. kind: Service
  5. metadata:
  6. name: example-adservice
  7. labels:
  8. helm.sh/chart: opentelemetry-demo-0.26.0
  9. opentelemetry.io/name: example-adservice
  10. app.kubernetes.io/instance: example
  11. app.kubernetes.io/component: adservice
  12. app.kubernetes.io/name: example-adservice
  13. app.kubernetes.io/version: "1.6.0"
  14. app.kubernetes.io/part-of: opentelemetry-demo
  15. app.kubernetes.io/managed-by: Helm
  16. spec:
  17. type: ClusterIP
  18. ports:
  19. - port: 8080
  20. name: tcp-service
  21. targetPort: 8080
  22. selector:
  23. opentelemetry.io/name: example-adservice
  24. ---
  25. # Source: opentelemetry-demo/templates/component.yaml
  26. apiVersion: v1
  27. kind: Service
  28. metadata:
  29. name: example-cartservice
  30. labels:
  31. helm.sh/chart: opentelemetry-demo-0.26.0
  32. opentelemetry.io/name: example-cartservice
  33. app.kubernetes.io/instance: example
  34. app.kubernetes.io/component: cartservice
  35. app.kubernetes.io/name: example-cartservice
  36. app.kubernetes.io/version: "1.6.0"
  37. app.kubernetes.io/part-of: opentelemetry-demo
  38. app.kubernetes.io/managed-by: Helm
  39. spec:
  40. type: ClusterIP
  41. ports:
  42. - port: 8080
  43. name: tcp-service
  44. targetPort: 8080
  45. selector:
  46. opentelemetry.io/name: example-cartservice
  47. ---
  48. # Source: opentelemetry-demo/templates/component.yaml
  49. apiVersion: v1
  50. kind: Service
  51. metadata:
  52. name: example-checkoutservice
  53. labels:
  54. helm.sh/chart: opentelemetry-demo-0.26.0
  55. opentelemetry.io/name: example-checkoutservice
  56. app.kubernetes.io/instance: example
  57. app.kubernetes.io/component: checkoutservice
  58. app.kubernetes.io/name: example-checkoutservice
  59. app.kubernetes.io/version: "1.6.0"
  60. app.kubernetes.io/part-of: opentelemetry-demo
  61. app.kubernetes.io/managed-by: Helm
  62. spec:
  63. type: ClusterIP
  64. ports:
  65. - port: 8080
  66. name: tcp-service
  67. targetPort: 8080
  68. selector:
  69. opentelemetry.io/name: example-checkoutservice
  70. ---
  71. # Source: opentelemetry-demo/templates/component.yaml
  72. apiVersion: v1
  73. kind: Service
  74. metadata:
  75. name: example-currencyservice
  76. labels:
  77. helm.sh/chart: opentelemetry-demo-0.26.0
  78. opentelemetry.io/name: example-currencyservice
  79. app.kubernetes.io/instance: example
  80. app.kubernetes.io/component: currencyservice
  81. app.kubernetes.io/name: example-currencyservice
  82. app.kubernetes.io/version: "1.6.0"
  83. app.kubernetes.io/part-of: opentelemetry-demo
  84. app.kubernetes.io/managed-by: Helm
  85. spec:
  86. type: ClusterIP
  87. ports:
  88. - port: 8080
  89. name: tcp-service
  90. targetPort: 8080
  91. selector:
  92. opentelemetry.io/name: example-currencyservice
  93. ---
  94. # Source: opentelemetry-demo/templates/component.yaml
  95. apiVersion: v1
  96. kind: Service
  97. metadata:
  98. name: example-emailservice
  99. labels:
  100. helm.sh/chart: opentelemetry-demo-0.26.0
  101. opentelemetry.io/name: example-emailservice
  102. app.kubernetes.io/instance: example
  103. app.kubernetes.io/component: emailservice
  104. app.kubernetes.io/name: example-emailservice
  105. app.kubernetes.io/version: "1.6.0"
  106. app.kubernetes.io/part-of: opentelemetry-demo
  107. app.kubernetes.io/managed-by: Helm
  108. spec:
  109. type: ClusterIP
  110. ports:
  111. - port: 8080
  112. name: tcp-service
  113. targetPort: 8080
  114. selector:
  115. opentelemetry.io/name: example-emailservice
  116. ---
  117. # Source: opentelemetry-demo/templates/component.yaml
  118. apiVersion: v1
  119. kind: Service
  120. metadata:
  121. name: example-featureflagservice
  122. labels:
  123. helm.sh/chart: opentelemetry-demo-0.26.0
  124. opentelemetry.io/name: example-featureflagservice
  125. app.kubernetes.io/instance: example
  126. app.kubernetes.io/component: featureflagservice
  127. app.kubernetes.io/name: example-featureflagservice
  128. app.kubernetes.io/version: "1.6.0"
  129. app.kubernetes.io/part-of: opentelemetry-demo
  130. app.kubernetes.io/managed-by: Helm
  131. spec:
  132. type: ClusterIP
  133. ports:
  134. - port: 50053
  135. name: grpc
  136. targetPort: 50053
  137. - port: 8081
  138. name: http
  139. targetPort: 8081
  140. selector:
  141. opentelemetry.io/name: example-featureflagservice
  142. ---
  143. # Source: opentelemetry-demo/templates/component.yaml
  144. apiVersion: v1
  145. kind: Service
  146. metadata:
  147. name: example-ffspostgres
  148. labels:
  149. helm.sh/chart: opentelemetry-demo-0.26.0
  150. opentelemetry.io/name: example-ffspostgres
  151. app.kubernetes.io/instance: example
  152. app.kubernetes.io/component: ffspostgres
  153. app.kubernetes.io/name: example-ffspostgres
  154. app.kubernetes.io/version: "1.6.0"
  155. app.kubernetes.io/part-of: opentelemetry-demo
  156. app.kubernetes.io/managed-by: Helm
  157. spec:
  158. type: ClusterIP
  159. ports:
  160. - port: 5432
  161. name: postgres
  162. targetPort: 5432
  163. selector:
  164. opentelemetry.io/name: example-ffspostgres
  165. ---
  166. # Source: opentelemetry-demo/templates/component.yaml
  167. apiVersion: v1
  168. kind: Service
  169. metadata:
  170. name: example-frontend
  171. labels:
  172. helm.sh/chart: opentelemetry-demo-0.26.0
  173. opentelemetry.io/name: example-frontend
  174. app.kubernetes.io/instance: example
  175. app.kubernetes.io/component: frontend
  176. app.kubernetes.io/name: example-frontend
  177. app.kubernetes.io/version: "1.6.0"
  178. app.kubernetes.io/part-of: opentelemetry-demo
  179. app.kubernetes.io/managed-by: Helm
  180. spec:
  181. type: ClusterIP
  182. ports:
  183. - port: 8080
  184. name: tcp-service
  185. targetPort: 8080
  186. selector:
  187. opentelemetry.io/name: example-frontend
  188. ---
  189. # Source: opentelemetry-demo/templates/component.yaml
  190. apiVersion: v1
  191. kind: Service
  192. metadata:
  193. name: example-frontendproxy
  194. labels:
  195. helm.sh/chart: opentelemetry-demo-0.26.0
  196. opentelemetry.io/name: example-frontendproxy
  197. app.kubernetes.io/instance: example
  198. app.kubernetes.io/component: frontendproxy
  199. app.kubernetes.io/name: example-frontendproxy
  200. app.kubernetes.io/version: "1.6.0"
  201. app.kubernetes.io/part-of: opentelemetry-demo
  202. app.kubernetes.io/managed-by: Helm
  203. spec:
  204. type: ClusterIP
  205. ports:
  206. - port: 8080
  207. name: tcp-service
  208. targetPort: 8080
  209. selector:
  210. opentelemetry.io/name: example-frontendproxy
  211. ---
  212. # Source: opentelemetry-demo/templates/component.yaml
  213. apiVersion: v1
  214. kind: Service
  215. metadata:
  216. name: example-kafka
  217. labels:
  218. helm.sh/chart: opentelemetry-demo-0.26.0
  219. opentelemetry.io/name: example-kafka
  220. app.kubernetes.io/instance: example
  221. app.kubernetes.io/component: kafka
  222. app.kubernetes.io/name: example-kafka
  223. app.kubernetes.io/version: "1.6.0"
  224. app.kubernetes.io/part-of: opentelemetry-demo
  225. app.kubernetes.io/managed-by: Helm
  226. spec:
  227. type: ClusterIP
  228. ports:
  229. - port: 9092
  230. name: plaintext
  231. targetPort: 9092
  232. - port: 9093
  233. name: controller
  234. targetPort: 9093
  235. selector:
  236. opentelemetry.io/name: example-kafka
  237. ---
  238. # Source: opentelemetry-demo/templates/component.yaml
  239. apiVersion: v1
  240. kind: Service
  241. metadata:
  242. name: example-loadgenerator
  243. labels:
  244. helm.sh/chart: opentelemetry-demo-0.26.0
  245. opentelemetry.io/name: example-loadgenerator
  246. app.kubernetes.io/instance: example
  247. app.kubernetes.io/component: loadgenerator
  248. app.kubernetes.io/name: example-loadgenerator
  249. app.kubernetes.io/version: "1.6.0"
  250. app.kubernetes.io/part-of: opentelemetry-demo
  251. app.kubernetes.io/managed-by: Helm
  252. spec:
  253. type: ClusterIP
  254. ports:
  255. - port: 8089
  256. name: tcp-service
  257. targetPort: 8089
  258. selector:
  259. opentelemetry.io/name: example-loadgenerator
  260. ---
  261. # Source: opentelemetry-demo/templates/component.yaml
  262. apiVersion: v1
  263. kind: Service
  264. metadata:
  265. name: example-paymentservice
  266. labels:
  267. helm.sh/chart: opentelemetry-demo-0.26.0
  268. opentelemetry.io/name: example-paymentservice
  269. app.kubernetes.io/instance: example
  270. app.kubernetes.io/component: paymentservice
  271. app.kubernetes.io/name: example-paymentservice
  272. app.kubernetes.io/version: "1.6.0"
  273. app.kubernetes.io/part-of: opentelemetry-demo
  274. app.kubernetes.io/managed-by: Helm
  275. spec:
  276. type: ClusterIP
  277. ports:
  278. - port: 8080
  279. name: tcp-service
  280. targetPort: 8080
  281. selector:
  282. opentelemetry.io/name: example-paymentservice
  283. ---
  284. # Source: opentelemetry-demo/templates/component.yaml
  285. apiVersion: v1
  286. kind: Service
  287. metadata:
  288. name: example-productcatalogservice
  289. labels:
  290. helm.sh/chart: opentelemetry-demo-0.26.0
  291. opentelemetry.io/name: example-productcatalogservice
  292. app.kubernetes.io/instance: example
  293. app.kubernetes.io/component: productcatalogservice
  294. app.kubernetes.io/name: example-productcatalogservice
  295. app.kubernetes.io/version: "1.6.0"
  296. app.kubernetes.io/part-of: opentelemetry-demo
  297. app.kubernetes.io/managed-by: Helm
  298. spec:
  299. type: ClusterIP
  300. ports:
  301. - port: 8080
  302. name: tcp-service
  303. targetPort: 8080
  304. selector:
  305. opentelemetry.io/name: example-productcatalogservice
  306. ---
  307. # Source: opentelemetry-demo/templates/component.yaml
  308. apiVersion: v1
  309. kind: Service
  310. metadata:
  311. name: example-quoteservice
  312. labels:
  313. helm.sh/chart: opentelemetry-demo-0.26.0
  314. opentelemetry.io/name: example-quoteservice
  315. app.kubernetes.io/instance: example
  316. app.kubernetes.io/component: quoteservice
  317. app.kubernetes.io/name: example-quoteservice
  318. app.kubernetes.io/version: "1.6.0"
  319. app.kubernetes.io/part-of: opentelemetry-demo
  320. app.kubernetes.io/managed-by: Helm
  321. spec:
  322. type: ClusterIP
  323. ports:
  324. - port: 8080
  325. name: tcp-service
  326. targetPort: 8080
  327. selector:
  328. opentelemetry.io/name: example-quoteservice
  329. ---
  330. # Source: opentelemetry-demo/templates/component.yaml
  331. apiVersion: v1
  332. kind: Service
  333. metadata:
  334. name: example-recommendationservice
  335. labels:
  336. helm.sh/chart: opentelemetry-demo-0.26.0
  337. opentelemetry.io/name: example-recommendationservice
  338. app.kubernetes.io/instance: example
  339. app.kubernetes.io/component: recommendationservice
  340. app.kubernetes.io/name: example-recommendationservice
  341. app.kubernetes.io/version: "1.6.0"
  342. app.kubernetes.io/part-of: opentelemetry-demo
  343. app.kubernetes.io/managed-by: Helm
  344. spec:
  345. type: ClusterIP
  346. ports:
  347. - port: 8080
  348. name: tcp-service
  349. targetPort: 8080
  350. selector:
  351. opentelemetry.io/name: example-recommendationservice
  352. ---
  353. # Source: opentelemetry-demo/templates/component.yaml
  354. apiVersion: v1
  355. kind: Service
  356. metadata:
  357. name: example-redis
  358. labels:
  359. helm.sh/chart: opentelemetry-demo-0.26.0
  360. opentelemetry.io/name: example-redis
  361. app.kubernetes.io/instance: example
  362. app.kubernetes.io/component: redis
  363. app.kubernetes.io/name: example-redis
  364. app.kubernetes.io/version: "1.6.0"
  365. app.kubernetes.io/part-of: opentelemetry-demo
  366. app.kubernetes.io/managed-by: Helm
  367. spec:
  368. type: ClusterIP
  369. ports:
  370. - port: 6379
  371. name: redis
  372. targetPort: 6379
  373. selector:
  374. opentelemetry.io/name: example-redis
  375. ---
  376. # Source: opentelemetry-demo/templates/component.yaml
  377. apiVersion: v1
  378. kind: Service
  379. metadata:
  380. name: example-shippingservice
  381. labels:
  382. helm.sh/chart: opentelemetry-demo-0.26.0
  383. opentelemetry.io/name: example-shippingservice
  384. app.kubernetes.io/instance: example
  385. app.kubernetes.io/component: shippingservice
  386. app.kubernetes.io/name: example-shippingservice
  387. app.kubernetes.io/version: "1.6.0"
  388. app.kubernetes.io/part-of: opentelemetry-demo
  389. app.kubernetes.io/managed-by: Helm
  390. spec:
  391. type: ClusterIP
  392. ports:
  393. - port: 8080
  394. name: tcp-service
  395. targetPort: 8080
  396. selector:
  397. opentelemetry.io/name: example-shippingservice
  398. ---
  399. # Source: opentelemetry-demo/templates/component.yaml
  400. apiVersion: apps/v1
  401. kind: Deployment
  402. metadata:
  403. name: example-accountingservice
  404. labels:
  405. helm.sh/chart: opentelemetry-demo-0.26.0
  406. opentelemetry.io/name: example-accountingservice
  407. app.kubernetes.io/instance: example
  408. app.kubernetes.io/component: accountingservice
  409. app.kubernetes.io/name: example-accountingservice
  410. app.kubernetes.io/version: "1.6.0"
  411. app.kubernetes.io/part-of: opentelemetry-demo
  412. app.kubernetes.io/managed-by: Helm
  413. spec:
  414. replicas: 1
  415. selector:
  416. matchLabels:
  417. opentelemetry.io/name: example-accountingservice
  418. template:
  419. metadata:
  420. labels:
  421. opentelemetry.io/name: example-accountingservice
  422. app.kubernetes.io/instance: example
  423. app.kubernetes.io/component: accountingservice
  424. app.kubernetes.io/name: example-accountingservice
  425. spec:
  426. serviceAccountName: example
  427. containers:
  428. - name: accountingservice
  429. image: 'ghcr.io/open-telemetry/demo:1.6.0-accountingservice'
  430. imagePullPolicy: IfNotPresent
  431. env:
  432. - name: OTEL_SERVICE_NAME
  433. valueFrom:
  434. fieldRef:
  435. apiVersion: v1
  436. fieldPath: metadata.labels['app.kubernetes.io/component']
  437. - name: OTEL_COLLECTOR_NAME
  438. value: 'example-otelcol'
  439. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  440. value: cumulative
  441. - name: KAFKA_SERVICE_ADDR
  442. value: 'example-kafka:9092'
  443. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  444. value: http://$(OTEL_COLLECTOR_NAME):4317
  445. - name: OTEL_RESOURCE_ATTRIBUTES
  446. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  447. resources:
  448. limits:
  449. memory: 20Mi
  450. initContainers:
  451. - command:
  452. - sh
  453. - -c
  454. - until nc -z -v -w30 example-kafka 9092; do echo waiting
  455. for kafka; sleep 2; done;
  456. image: busybox:latest
  457. name: wait-for-kafka
  458. ---
  459. # Source: opentelemetry-demo/templates/component.yaml
  460. apiVersion: apps/v1
  461. kind: Deployment
  462. metadata:
  463. name: example-adservice
  464. labels:
  465. helm.sh/chart: opentelemetry-demo-0.26.0
  466. opentelemetry.io/name: example-adservice
  467. app.kubernetes.io/instance: example
  468. app.kubernetes.io/component: adservice
  469. app.kubernetes.io/name: example-adservice
  470. app.kubernetes.io/version: "1.6.0"
  471. app.kubernetes.io/part-of: opentelemetry-demo
  472. app.kubernetes.io/managed-by: Helm
  473. spec:
  474. replicas: 1
  475. selector:
  476. matchLabels:
  477. opentelemetry.io/name: example-adservice
  478. template:
  479. metadata:
  480. labels:
  481. opentelemetry.io/name: example-adservice
  482. app.kubernetes.io/instance: example
  483. app.kubernetes.io/component: adservice
  484. app.kubernetes.io/name: example-adservice
  485. spec:
  486. serviceAccountName: example
  487. containers:
  488. - name: adservice
  489. image: 'ghcr.io/open-telemetry/demo:1.6.0-adservice'
  490. imagePullPolicy: IfNotPresent
  491. ports:
  492. - containerPort: 8080
  493. name: service
  494. env:
  495. - name: OTEL_SERVICE_NAME
  496. valueFrom:
  497. fieldRef:
  498. apiVersion: v1
  499. fieldPath: metadata.labels['app.kubernetes.io/component']
  500. - name: OTEL_COLLECTOR_NAME
  501. value: 'example-otelcol'
  502. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  503. value: cumulative
  504. - name: AD_SERVICE_PORT
  505. value: "8080"
  506. - name: FEATURE_FLAG_GRPC_SERVICE_ADDR
  507. value: 'example-featureflagservice:50053'
  508. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  509. value: http://$(OTEL_COLLECTOR_NAME):4317
  510. - name: OTEL_LOGS_EXPORTER
  511. value: otlp
  512. - name: OTEL_RESOURCE_ATTRIBUTES
  513. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  514. resources:
  515. limits:
  516. memory: 300Mi
  517. ---
  518. # Source: opentelemetry-demo/templates/component.yaml
  519. apiVersion: apps/v1
  520. kind: Deployment
  521. metadata:
  522. name: example-cartservice
  523. labels:
  524. helm.sh/chart: opentelemetry-demo-0.26.0
  525. opentelemetry.io/name: example-cartservice
  526. app.kubernetes.io/instance: example
  527. app.kubernetes.io/component: cartservice
  528. app.kubernetes.io/name: example-cartservice
  529. app.kubernetes.io/version: "1.6.0"
  530. app.kubernetes.io/part-of: opentelemetry-demo
  531. app.kubernetes.io/managed-by: Helm
  532. spec:
  533. replicas: 1
  534. selector:
  535. matchLabels:
  536. opentelemetry.io/name: example-cartservice
  537. template:
  538. metadata:
  539. labels:
  540. opentelemetry.io/name: example-cartservice
  541. app.kubernetes.io/instance: example
  542. app.kubernetes.io/component: cartservice
  543. app.kubernetes.io/name: example-cartservice
  544. spec:
  545. serviceAccountName: example
  546. containers:
  547. - name: cartservice
  548. image: 'ghcr.io/open-telemetry/demo:1.6.0-cartservice'
  549. imagePullPolicy: IfNotPresent
  550. ports:
  551. - containerPort: 8080
  552. name: service
  553. env:
  554. - name: OTEL_SERVICE_NAME
  555. valueFrom:
  556. fieldRef:
  557. apiVersion: v1
  558. fieldPath: metadata.labels['app.kubernetes.io/component']
  559. - name: OTEL_COLLECTOR_NAME
  560. value: 'example-otelcol'
  561. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  562. value: cumulative
  563. - name: CART_SERVICE_PORT
  564. value: "8080"
  565. - name: ASPNETCORE_URLS
  566. value: http://*:$(CART_SERVICE_PORT)
  567. - name: FEATURE_FLAG_GRPC_SERVICE_ADDR
  568. value: 'example-featureflagservice:50053'
  569. - name: REDIS_ADDR
  570. value: 'example-redis:6379'
  571. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  572. value: http://$(OTEL_COLLECTOR_NAME):4317
  573. - name: OTEL_RESOURCE_ATTRIBUTES
  574. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  575. resources:
  576. limits:
  577. memory: 160Mi
  578. initContainers:
  579. - command:
  580. - sh
  581. - -c
  582. - until nc -z -v -w30 example-redis 6379; do echo waiting
  583. for redis; sleep 2; done;
  584. image: busybox:latest
  585. name: wait-for-redis
  586. ---
  587. # Source: opentelemetry-demo/templates/component.yaml
  588. apiVersion: apps/v1
  589. kind: Deployment
  590. metadata:
  591. name: example-checkoutservice
  592. labels:
  593. helm.sh/chart: opentelemetry-demo-0.26.0
  594. opentelemetry.io/name: example-checkoutservice
  595. app.kubernetes.io/instance: example
  596. app.kubernetes.io/component: checkoutservice
  597. app.kubernetes.io/name: example-checkoutservice
  598. app.kubernetes.io/version: "1.6.0"
  599. app.kubernetes.io/part-of: opentelemetry-demo
  600. app.kubernetes.io/managed-by: Helm
  601. spec:
  602. replicas: 1
  603. selector:
  604. matchLabels:
  605. opentelemetry.io/name: example-checkoutservice
  606. template:
  607. metadata:
  608. labels:
  609. opentelemetry.io/name: example-checkoutservice
  610. app.kubernetes.io/instance: example
  611. app.kubernetes.io/component: checkoutservice
  612. app.kubernetes.io/name: example-checkoutservice
  613. spec:
  614. serviceAccountName: example
  615. containers:
  616. - name: checkoutservice
  617. image: 'ghcr.io/open-telemetry/demo:1.6.0-checkoutservice'
  618. imagePullPolicy: IfNotPresent
  619. ports:
  620. - containerPort: 8080
  621. name: service
  622. env:
  623. - name: OTEL_SERVICE_NAME
  624. valueFrom:
  625. fieldRef:
  626. apiVersion: v1
  627. fieldPath: metadata.labels['app.kubernetes.io/component']
  628. - name: OTEL_COLLECTOR_NAME
  629. value: 'example-otelcol'
  630. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  631. value: cumulative
  632. - name: CHECKOUT_SERVICE_PORT
  633. value: "8080"
  634. - name: CART_SERVICE_ADDR
  635. value: 'example-cartservice:8080'
  636. - name: CURRENCY_SERVICE_ADDR
  637. value: 'example-currencyservice:8080'
  638. - name: EMAIL_SERVICE_ADDR
  639. value: http://example-emailservice:8080
  640. - name: PAYMENT_SERVICE_ADDR
  641. value: 'example-paymentservice:8080'
  642. - name: PRODUCT_CATALOG_SERVICE_ADDR
  643. value: 'example-productcatalogservice:8080'
  644. - name: SHIPPING_SERVICE_ADDR
  645. value: 'example-shippingservice:8080'
  646. - name: KAFKA_SERVICE_ADDR
  647. value: 'example-kafka:9092'
  648. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  649. value: http://$(OTEL_COLLECTOR_NAME):4317
  650. - name: OTEL_RESOURCE_ATTRIBUTES
  651. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  652. resources:
  653. limits:
  654. memory: 20Mi
  655. initContainers:
  656. - command:
  657. - sh
  658. - -c
  659. - until nc -z -v -w30 example-kafka 9092; do echo waiting
  660. for kafka; sleep 2; done;
  661. image: busybox:latest
  662. name: wait-for-kafka
  663. ---
  664. # Source: opentelemetry-demo/templates/component.yaml
  665. apiVersion: apps/v1
  666. kind: Deployment
  667. metadata:
  668. name: example-currencyservice
  669. labels:
  670. helm.sh/chart: opentelemetry-demo-0.26.0
  671. opentelemetry.io/name: example-currencyservice
  672. app.kubernetes.io/instance: example
  673. app.kubernetes.io/component: currencyservice
  674. app.kubernetes.io/name: example-currencyservice
  675. app.kubernetes.io/version: "1.6.0"
  676. app.kubernetes.io/part-of: opentelemetry-demo
  677. app.kubernetes.io/managed-by: Helm
  678. spec:
  679. replicas: 1
  680. selector:
  681. matchLabels:
  682. opentelemetry.io/name: example-currencyservice
  683. template:
  684. metadata:
  685. labels:
  686. opentelemetry.io/name: example-currencyservice
  687. app.kubernetes.io/instance: example
  688. app.kubernetes.io/component: currencyservice
  689. app.kubernetes.io/name: example-currencyservice
  690. spec:
  691. serviceAccountName: example
  692. containers:
  693. - name: currencyservice
  694. image: 'ghcr.io/open-telemetry/demo:1.6.0-currencyservice'
  695. imagePullPolicy: IfNotPresent
  696. ports:
  697. - containerPort: 8080
  698. name: service
  699. env:
  700. - name: OTEL_SERVICE_NAME
  701. valueFrom:
  702. fieldRef:
  703. apiVersion: v1
  704. fieldPath: metadata.labels['app.kubernetes.io/component']
  705. - name: OTEL_COLLECTOR_NAME
  706. value: 'example-otelcol'
  707. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  708. value: cumulative
  709. - name: CURRENCY_SERVICE_PORT
  710. value: "8080"
  711. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  712. value: http://$(OTEL_COLLECTOR_NAME):4317
  713. - name: OTEL_RESOURCE_ATTRIBUTES
  714. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  715. resources:
  716. limits:
  717. memory: 20Mi
  718. ---
  719. # Source: opentelemetry-demo/templates/component.yaml
  720. apiVersion: apps/v1
  721. kind: Deployment
  722. metadata:
  723. name: example-emailservice
  724. labels:
  725. helm.sh/chart: opentelemetry-demo-0.26.0
  726. opentelemetry.io/name: example-emailservice
  727. app.kubernetes.io/instance: example
  728. app.kubernetes.io/component: emailservice
  729. app.kubernetes.io/name: example-emailservice
  730. app.kubernetes.io/version: "1.6.0"
  731. app.kubernetes.io/part-of: opentelemetry-demo
  732. app.kubernetes.io/managed-by: Helm
  733. spec:
  734. replicas: 1
  735. selector:
  736. matchLabels:
  737. opentelemetry.io/name: example-emailservice
  738. template:
  739. metadata:
  740. labels:
  741. opentelemetry.io/name: example-emailservice
  742. app.kubernetes.io/instance: example
  743. app.kubernetes.io/component: emailservice
  744. app.kubernetes.io/name: example-emailservice
  745. spec:
  746. serviceAccountName: example
  747. containers:
  748. - name: emailservice
  749. image: 'ghcr.io/open-telemetry/demo:1.6.0-emailservice'
  750. imagePullPolicy: IfNotPresent
  751. ports:
  752. - containerPort: 8080
  753. name: service
  754. env:
  755. - name: OTEL_SERVICE_NAME
  756. valueFrom:
  757. fieldRef:
  758. apiVersion: v1
  759. fieldPath: metadata.labels['app.kubernetes.io/component']
  760. - name: OTEL_COLLECTOR_NAME
  761. value: 'example-otelcol'
  762. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  763. value: cumulative
  764. - name: EMAIL_SERVICE_PORT
  765. value: "8080"
  766. - name: APP_ENV
  767. value: production
  768. - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
  769. value: http://$(OTEL_COLLECTOR_NAME):4318/v1/traces
  770. - name: OTEL_RESOURCE_ATTRIBUTES
  771. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  772. resources:
  773. limits:
  774. memory: 100Mi
  775. ---
  776. # Source: opentelemetry-demo/templates/component.yaml
  777. apiVersion: apps/v1
  778. kind: Deployment
  779. metadata:
  780. name: example-featureflagservice
  781. labels:
  782. helm.sh/chart: opentelemetry-demo-0.26.0
  783. opentelemetry.io/name: example-featureflagservice
  784. app.kubernetes.io/instance: example
  785. app.kubernetes.io/component: featureflagservice
  786. app.kubernetes.io/name: example-featureflagservice
  787. app.kubernetes.io/version: "1.6.0"
  788. app.kubernetes.io/part-of: opentelemetry-demo
  789. app.kubernetes.io/managed-by: Helm
  790. spec:
  791. replicas: 1
  792. selector:
  793. matchLabels:
  794. opentelemetry.io/name: example-featureflagservice
  795. template:
  796. metadata:
  797. labels:
  798. opentelemetry.io/name: example-featureflagservice
  799. app.kubernetes.io/instance: example
  800. app.kubernetes.io/component: featureflagservice
  801. app.kubernetes.io/name: example-featureflagservice
  802. spec:
  803. serviceAccountName: example
  804. containers:
  805. - name: featureflagservice
  806. image: 'ghcr.io/open-telemetry/demo:1.6.0-featureflagservice'
  807. imagePullPolicy: IfNotPresent
  808. ports:
  809. - containerPort: 50053
  810. name: grpc
  811. - containerPort: 8081
  812. name: http
  813. env:
  814. - name: OTEL_SERVICE_NAME
  815. valueFrom:
  816. fieldRef:
  817. apiVersion: v1
  818. fieldPath: metadata.labels['app.kubernetes.io/component']
  819. - name: OTEL_COLLECTOR_NAME
  820. value: 'example-otelcol'
  821. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  822. value: cumulative
  823. - name: FEATURE_FLAG_SERVICE_PORT
  824. value: "8081"
  825. - name: FEATURE_FLAG_GRPC_SERVICE_PORT
  826. value: "50053"
  827. - name: DATABASE_URL
  828. value: ecto://ffs:ffs@example-ffspostgres:5432/ffs
  829. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  830. value: http://$(OTEL_COLLECTOR_NAME):4317
  831. - name: OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
  832. value: grpc
  833. - name: OTEL_RESOURCE_ATTRIBUTES
  834. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  835. resources:
  836. limits:
  837. memory: 175Mi
  838. livenessProbe:
  839. httpGet:
  840. path: /featureflags/
  841. port: 8081
  842. initialDelaySeconds: 30
  843. periodSeconds: 10
  844. initContainers:
  845. - command:
  846. - sh
  847. - -c
  848. - until nc -z -v -w30 example-ffspostgres 5432; do echo
  849. waiting for ffspostgres; sleep 2; done
  850. image: busybox:latest
  851. name: wait-for-ffspostgres
  852. ---
  853. # Source: opentelemetry-demo/templates/component.yaml
  854. apiVersion: apps/v1
  855. kind: Deployment
  856. metadata:
  857. name: example-ffspostgres
  858. labels:
  859. helm.sh/chart: opentelemetry-demo-0.26.0
  860. opentelemetry.io/name: example-ffspostgres
  861. app.kubernetes.io/instance: example
  862. app.kubernetes.io/component: ffspostgres
  863. app.kubernetes.io/name: example-ffspostgres
  864. app.kubernetes.io/version: "1.6.0"
  865. app.kubernetes.io/part-of: opentelemetry-demo
  866. app.kubernetes.io/managed-by: Helm
  867. spec:
  868. replicas: 1
  869. selector:
  870. matchLabels:
  871. opentelemetry.io/name: example-ffspostgres
  872. template:
  873. metadata:
  874. labels:
  875. opentelemetry.io/name: example-ffspostgres
  876. app.kubernetes.io/instance: example
  877. app.kubernetes.io/component: ffspostgres
  878. app.kubernetes.io/name: example-ffspostgres
  879. spec:
  880. serviceAccountName: example
  881. containers:
  882. - name: ffspostgres
  883. image: 'postgres:14'
  884. imagePullPolicy: IfNotPresent
  885. ports:
  886. - containerPort: 5432
  887. name: postgres
  888. env:
  889. - name: OTEL_SERVICE_NAME
  890. valueFrom:
  891. fieldRef:
  892. apiVersion: v1
  893. fieldPath: metadata.labels['app.kubernetes.io/component']
  894. - name: OTEL_COLLECTOR_NAME
  895. value: 'example-otelcol'
  896. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  897. value: cumulative
  898. - name: POSTGRES_DB
  899. value: ffs
  900. - name: POSTGRES_USER
  901. value: ffs
  902. - name: POSTGRES_PASSWORD
  903. value: ffs
  904. - name: OTEL_RESOURCE_ATTRIBUTES
  905. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  906. resources:
  907. limits:
  908. memory: 120Mi
  909. securityContext:
  910. runAsGroup: 999
  911. runAsNonRoot: true
  912. runAsUser: 999
  913. ---
  914. # Source: opentelemetry-demo/templates/component.yaml
  915. apiVersion: apps/v1
  916. kind: Deployment
  917. metadata:
  918. name: example-frauddetectionservice
  919. labels:
  920. helm.sh/chart: opentelemetry-demo-0.26.0
  921. opentelemetry.io/name: example-frauddetectionservice
  922. app.kubernetes.io/instance: example
  923. app.kubernetes.io/component: frauddetectionservice
  924. app.kubernetes.io/name: example-frauddetectionservice
  925. app.kubernetes.io/version: "1.6.0"
  926. app.kubernetes.io/part-of: opentelemetry-demo
  927. app.kubernetes.io/managed-by: Helm
  928. spec:
  929. replicas: 1
  930. selector:
  931. matchLabels:
  932. opentelemetry.io/name: example-frauddetectionservice
  933. template:
  934. metadata:
  935. labels:
  936. opentelemetry.io/name: example-frauddetectionservice
  937. app.kubernetes.io/instance: example
  938. app.kubernetes.io/component: frauddetectionservice
  939. app.kubernetes.io/name: example-frauddetectionservice
  940. spec:
  941. serviceAccountName: example
  942. containers:
  943. - name: frauddetectionservice
  944. image: 'ghcr.io/open-telemetry/demo:1.6.0-frauddetectionservice'
  945. imagePullPolicy: IfNotPresent
  946. env:
  947. - name: OTEL_SERVICE_NAME
  948. valueFrom:
  949. fieldRef:
  950. apiVersion: v1
  951. fieldPath: metadata.labels['app.kubernetes.io/component']
  952. - name: OTEL_COLLECTOR_NAME
  953. value: 'example-otelcol'
  954. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  955. value: cumulative
  956. - name: KAFKA_SERVICE_ADDR
  957. value: 'example-kafka:9092'
  958. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  959. value: http://$(OTEL_COLLECTOR_NAME):4317
  960. - name: OTEL_RESOURCE_ATTRIBUTES
  961. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  962. resources:
  963. limits:
  964. memory: 200Mi
  965. initContainers:
  966. - command:
  967. - sh
  968. - -c
  969. - until nc -z -v -w30 example-kafka 9092; do echo waiting
  970. for kafka; sleep 2; done;
  971. image: busybox:latest
  972. name: wait-for-kafka
  973. ---
  974. # Source: opentelemetry-demo/templates/component.yaml
  975. apiVersion: apps/v1
  976. kind: Deployment
  977. metadata:
  978. name: example-frontend
  979. labels:
  980. helm.sh/chart: opentelemetry-demo-0.26.0
  981. opentelemetry.io/name: example-frontend
  982. app.kubernetes.io/instance: example
  983. app.kubernetes.io/component: frontend
  984. app.kubernetes.io/name: example-frontend
  985. app.kubernetes.io/version: "1.6.0"
  986. app.kubernetes.io/part-of: opentelemetry-demo
  987. app.kubernetes.io/managed-by: Helm
  988. spec:
  989. replicas: 1
  990. selector:
  991. matchLabels:
  992. opentelemetry.io/name: example-frontend
  993. template:
  994. metadata:
  995. labels:
  996. opentelemetry.io/name: example-frontend
  997. app.kubernetes.io/instance: example
  998. app.kubernetes.io/component: frontend
  999. app.kubernetes.io/name: example-frontend
  1000. spec:
  1001. serviceAccountName: example
  1002. containers:
  1003. - name: frontend
  1004. image: 'ghcr.io/open-telemetry/demo:1.6.0-frontend'
  1005. imagePullPolicy: IfNotPresent
  1006. ports:
  1007. - containerPort: 8080
  1008. name: service
  1009. env:
  1010. - name: OTEL_SERVICE_NAME
  1011. valueFrom:
  1012. fieldRef:
  1013. apiVersion: v1
  1014. fieldPath: metadata.labels['app.kubernetes.io/component']
  1015. - name: OTEL_COLLECTOR_NAME
  1016. value: 'example-otelcol'
  1017. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1018. value: cumulative
  1019. - name: FRONTEND_PORT
  1020. value: "8080"
  1021. - name: FRONTEND_ADDR
  1022. value: :8080
  1023. - name: AD_SERVICE_ADDR
  1024. value: 'example-adservice:8080'
  1025. - name: CART_SERVICE_ADDR
  1026. value: 'example-cartservice:8080'
  1027. - name: CHECKOUT_SERVICE_ADDR
  1028. value: 'example-checkoutservice:8080'
  1029. - name: CURRENCY_SERVICE_ADDR
  1030. value: 'example-currencyservice:8080'
  1031. - name: PRODUCT_CATALOG_SERVICE_ADDR
  1032. value: 'example-productcatalogservice:8080'
  1033. - name: RECOMMENDATION_SERVICE_ADDR
  1034. value: 'example-recommendationservice:8080'
  1035. - name: SHIPPING_SERVICE_ADDR
  1036. value: 'example-shippingservice:8080'
  1037. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  1038. value: http://$(OTEL_COLLECTOR_NAME):4317
  1039. - name: WEB_OTEL_SERVICE_NAME
  1040. value: frontend-web
  1041. - name: PUBLIC_OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
  1042. value: https://otel-demo-collector.example.com/v1/traces
  1043. - name: OTEL_RESOURCE_ATTRIBUTES
  1044. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1045. resources:
  1046. limits:
  1047. memory: 200Mi
  1048. securityContext:
  1049. runAsGroup: 1001
  1050. runAsNonRoot: true
  1051. runAsUser: 1001
  1052. ---
  1053. # Source: opentelemetry-demo/templates/component.yaml
  1054. apiVersion: apps/v1
  1055. kind: Deployment
  1056. metadata:
  1057. name: example-frontendproxy
  1058. labels:
  1059. helm.sh/chart: opentelemetry-demo-0.26.0
  1060. opentelemetry.io/name: example-frontendproxy
  1061. app.kubernetes.io/instance: example
  1062. app.kubernetes.io/component: frontendproxy
  1063. app.kubernetes.io/name: example-frontendproxy
  1064. app.kubernetes.io/version: "1.6.0"
  1065. app.kubernetes.io/part-of: opentelemetry-demo
  1066. app.kubernetes.io/managed-by: Helm
  1067. spec:
  1068. replicas: 1
  1069. selector:
  1070. matchLabels:
  1071. opentelemetry.io/name: example-frontendproxy
  1072. template:
  1073. metadata:
  1074. labels:
  1075. opentelemetry.io/name: example-frontendproxy
  1076. app.kubernetes.io/instance: example
  1077. app.kubernetes.io/component: frontendproxy
  1078. app.kubernetes.io/name: example-frontendproxy
  1079. spec:
  1080. serviceAccountName: example
  1081. containers:
  1082. - name: frontendproxy
  1083. image: 'ghcr.io/open-telemetry/demo:1.6.0-frontendproxy'
  1084. imagePullPolicy: IfNotPresent
  1085. ports:
  1086. - containerPort: 8080
  1087. name: service
  1088. env:
  1089. - name: OTEL_SERVICE_NAME
  1090. valueFrom:
  1091. fieldRef:
  1092. apiVersion: v1
  1093. fieldPath: metadata.labels['app.kubernetes.io/component']
  1094. - name: OTEL_COLLECTOR_NAME
  1095. value: 'example-otelcol'
  1096. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1097. value: cumulative
  1098. - name: ENVOY_PORT
  1099. value: "8080"
  1100. - name: FRONTEND_PORT
  1101. value: "8080"
  1102. - name: FRONTEND_HOST
  1103. value: 'example-frontend'
  1104. - name: FEATURE_FLAG_SERVICE_PORT
  1105. value: "8081"
  1106. - name: FEATURE_FLAG_SERVICE_HOST
  1107. value: 'example-featureflagservice'
  1108. - name: LOCUST_WEB_PORT
  1109. value: "8089"
  1110. - name: LOCUST_WEB_HOST
  1111. value: 'example-loadgenerator'
  1112. - name: GRAFANA_SERVICE_PORT
  1113. value: "80"
  1114. - name: GRAFANA_SERVICE_HOST
  1115. value: 'example-grafana'
  1116. - name: JAEGER_SERVICE_PORT
  1117. value: "16686"
  1118. - name: JAEGER_SERVICE_HOST
  1119. value: 'example-jaeger-query'
  1120. - name: OTEL_COLLECTOR_PORT_GRPC
  1121. value: "4317"
  1122. - name: OTEL_COLLECTOR_PORT_HTTP
  1123. value: "4318"
  1124. - name: OTEL_COLLECTOR_HOST
  1125. value: $(OTEL_COLLECTOR_NAME)
  1126. - name: OTEL_RESOURCE_ATTRIBUTES
  1127. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1128. resources:
  1129. limits:
  1130. memory: 50Mi
  1131. securityContext:
  1132. runAsGroup: 101
  1133. runAsNonRoot: true
  1134. runAsUser: 101
  1135. ---
  1136. # Source: opentelemetry-demo/templates/component.yaml
  1137. apiVersion: apps/v1
  1138. kind: Deployment
  1139. metadata:
  1140. name: example-kafka
  1141. labels:
  1142. helm.sh/chart: opentelemetry-demo-0.26.0
  1143. opentelemetry.io/name: example-kafka
  1144. app.kubernetes.io/instance: example
  1145. app.kubernetes.io/component: kafka
  1146. app.kubernetes.io/name: example-kafka
  1147. app.kubernetes.io/version: "1.6.0"
  1148. app.kubernetes.io/part-of: opentelemetry-demo
  1149. app.kubernetes.io/managed-by: Helm
  1150. spec:
  1151. replicas: 1
  1152. selector:
  1153. matchLabels:
  1154. opentelemetry.io/name: example-kafka
  1155. template:
  1156. metadata:
  1157. labels:
  1158. opentelemetry.io/name: example-kafka
  1159. app.kubernetes.io/instance: example
  1160. app.kubernetes.io/component: kafka
  1161. app.kubernetes.io/name: example-kafka
  1162. spec:
  1163. serviceAccountName: example
  1164. containers:
  1165. - name: kafka
  1166. image: 'ghcr.io/open-telemetry/demo:1.6.0-kafka'
  1167. imagePullPolicy: IfNotPresent
  1168. ports:
  1169. - containerPort: 9092
  1170. name: plaintext
  1171. - containerPort: 9093
  1172. name: controller
  1173. env:
  1174. - name: OTEL_SERVICE_NAME
  1175. valueFrom:
  1176. fieldRef:
  1177. apiVersion: v1
  1178. fieldPath: metadata.labels['app.kubernetes.io/component']
  1179. - name: OTEL_COLLECTOR_NAME
  1180. value: 'example-otelcol'
  1181. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1182. value: cumulative
  1183. - name: KAFKA_ADVERTISED_LISTENERS
  1184. value: PLAINTEXT://example-kafka:9092
  1185. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  1186. value: http://$(OTEL_COLLECTOR_NAME):4317
  1187. - name: KAFKA_HEAP_OPTS
  1188. value: -Xmx200M -Xms200M
  1189. - name: OTEL_RESOURCE_ATTRIBUTES
  1190. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1191. resources:
  1192. limits:
  1193. memory: 500Mi
  1194. securityContext:
  1195. runAsGroup: 1000
  1196. runAsNonRoot: true
  1197. runAsUser: 1000
  1198. ---
  1199. # Source: opentelemetry-demo/templates/component.yaml
  1200. apiVersion: apps/v1
  1201. kind: Deployment
  1202. metadata:
  1203. name: example-loadgenerator
  1204. labels:
  1205. helm.sh/chart: opentelemetry-demo-0.26.0
  1206. opentelemetry.io/name: example-loadgenerator
  1207. app.kubernetes.io/instance: example
  1208. app.kubernetes.io/component: loadgenerator
  1209. app.kubernetes.io/name: example-loadgenerator
  1210. app.kubernetes.io/version: "1.6.0"
  1211. app.kubernetes.io/part-of: opentelemetry-demo
  1212. app.kubernetes.io/managed-by: Helm
  1213. spec:
  1214. replicas: 1
  1215. selector:
  1216. matchLabels:
  1217. opentelemetry.io/name: example-loadgenerator
  1218. template:
  1219. metadata:
  1220. labels:
  1221. opentelemetry.io/name: example-loadgenerator
  1222. app.kubernetes.io/instance: example
  1223. app.kubernetes.io/component: loadgenerator
  1224. app.kubernetes.io/name: example-loadgenerator
  1225. spec:
  1226. serviceAccountName: example
  1227. containers:
  1228. - name: loadgenerator
  1229. image: 'ghcr.io/open-telemetry/demo:1.6.0-loadgenerator'
  1230. imagePullPolicy: IfNotPresent
  1231. ports:
  1232. - containerPort: 8089
  1233. name: service
  1234. env:
  1235. - name: OTEL_SERVICE_NAME
  1236. valueFrom:
  1237. fieldRef:
  1238. apiVersion: v1
  1239. fieldPath: metadata.labels['app.kubernetes.io/component']
  1240. - name: OTEL_COLLECTOR_NAME
  1241. value: 'example-otelcol'
  1242. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1243. value: cumulative
  1244. - name: LOCUST_WEB_PORT
  1245. value: "8089"
  1246. - name: LOCUST_USERS
  1247. value: "10"
  1248. - name: LOCUST_SPAWN_RATE
  1249. value: "1"
  1250. - name: LOCUST_HOST
  1251. value: http://example-frontendproxy:8080
  1252. - name: LOCUST_HEADLESS
  1253. value: "false"
  1254. - name: LOCUST_AUTOSTART
  1255. value: "true"
  1256. - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
  1257. value: python
  1258. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  1259. value: http://$(OTEL_COLLECTOR_NAME):4317
  1260. - name: OTEL_RESOURCE_ATTRIBUTES
  1261. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1262. resources:
  1263. limits:
  1264. memory: 120Mi
  1265. ---
  1266. # Source: opentelemetry-demo/templates/component.yaml
  1267. apiVersion: apps/v1
  1268. kind: Deployment
  1269. metadata:
  1270. name: example-paymentservice
  1271. labels:
  1272. helm.sh/chart: opentelemetry-demo-0.26.0
  1273. opentelemetry.io/name: example-paymentservice
  1274. app.kubernetes.io/instance: example
  1275. app.kubernetes.io/component: paymentservice
  1276. app.kubernetes.io/name: example-paymentservice
  1277. app.kubernetes.io/version: "1.6.0"
  1278. app.kubernetes.io/part-of: opentelemetry-demo
  1279. app.kubernetes.io/managed-by: Helm
  1280. spec:
  1281. replicas: 1
  1282. selector:
  1283. matchLabels:
  1284. opentelemetry.io/name: example-paymentservice
  1285. template:
  1286. metadata:
  1287. labels:
  1288. opentelemetry.io/name: example-paymentservice
  1289. app.kubernetes.io/instance: example
  1290. app.kubernetes.io/component: paymentservice
  1291. app.kubernetes.io/name: example-paymentservice
  1292. spec:
  1293. serviceAccountName: example
  1294. containers:
  1295. - name: paymentservice
  1296. image: 'ghcr.io/open-telemetry/demo:1.6.0-paymentservice'
  1297. imagePullPolicy: IfNotPresent
  1298. ports:
  1299. - containerPort: 8080
  1300. name: service
  1301. env:
  1302. - name: OTEL_SERVICE_NAME
  1303. valueFrom:
  1304. fieldRef:
  1305. apiVersion: v1
  1306. fieldPath: metadata.labels['app.kubernetes.io/component']
  1307. - name: OTEL_COLLECTOR_NAME
  1308. value: 'example-otelcol'
  1309. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1310. value: cumulative
  1311. - name: PAYMENT_SERVICE_PORT
  1312. value: "8080"
  1313. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  1314. value: http://$(OTEL_COLLECTOR_NAME):4317
  1315. - name: OTEL_RESOURCE_ATTRIBUTES
  1316. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1317. resources:
  1318. limits:
  1319. memory: 120Mi
  1320. securityContext:
  1321. runAsGroup: 1000
  1322. runAsNonRoot: true
  1323. runAsUser: 1000
  1324. ---
  1325. # Source: opentelemetry-demo/templates/component.yaml
  1326. apiVersion: apps/v1
  1327. kind: Deployment
  1328. metadata:
  1329. name: example-productcatalogservice
  1330. labels:
  1331. helm.sh/chart: opentelemetry-demo-0.26.0
  1332. opentelemetry.io/name: example-productcatalogservice
  1333. app.kubernetes.io/instance: example
  1334. app.kubernetes.io/component: productcatalogservice
  1335. app.kubernetes.io/name: example-productcatalogservice
  1336. app.kubernetes.io/version: "1.6.0"
  1337. app.kubernetes.io/part-of: opentelemetry-demo
  1338. app.kubernetes.io/managed-by: Helm
  1339. spec:
  1340. replicas: 1
  1341. selector:
  1342. matchLabels:
  1343. opentelemetry.io/name: example-productcatalogservice
  1344. template:
  1345. metadata:
  1346. labels:
  1347. opentelemetry.io/name: example-productcatalogservice
  1348. app.kubernetes.io/instance: example
  1349. app.kubernetes.io/component: productcatalogservice
  1350. app.kubernetes.io/name: example-productcatalogservice
  1351. spec:
  1352. serviceAccountName: example
  1353. containers:
  1354. - name: productcatalogservice
  1355. image: 'ghcr.io/open-telemetry/demo:1.6.0-productcatalogservice'
  1356. imagePullPolicy: IfNotPresent
  1357. ports:
  1358. - containerPort: 8080
  1359. name: service
  1360. env:
  1361. - name: OTEL_SERVICE_NAME
  1362. valueFrom:
  1363. fieldRef:
  1364. apiVersion: v1
  1365. fieldPath: metadata.labels['app.kubernetes.io/component']
  1366. - name: OTEL_COLLECTOR_NAME
  1367. value: 'example-otelcol'
  1368. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1369. value: cumulative
  1370. - name: PRODUCT_CATALOG_SERVICE_PORT
  1371. value: "8080"
  1372. - name: FEATURE_FLAG_GRPC_SERVICE_ADDR
  1373. value: 'example-featureflagservice:50053'
  1374. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  1375. value: http://$(OTEL_COLLECTOR_NAME):4317
  1376. - name: OTEL_RESOURCE_ATTRIBUTES
  1377. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1378. resources:
  1379. limits:
  1380. memory: 20Mi
  1381. ---
  1382. # Source: opentelemetry-demo/templates/component.yaml
  1383. apiVersion: apps/v1
  1384. kind: Deployment
  1385. metadata:
  1386. name: example-quoteservice
  1387. labels:
  1388. helm.sh/chart: opentelemetry-demo-0.26.0
  1389. opentelemetry.io/name: example-quoteservice
  1390. app.kubernetes.io/instance: example
  1391. app.kubernetes.io/component: quoteservice
  1392. app.kubernetes.io/name: example-quoteservice
  1393. app.kubernetes.io/version: "1.6.0"
  1394. app.kubernetes.io/part-of: opentelemetry-demo
  1395. app.kubernetes.io/managed-by: Helm
  1396. spec:
  1397. replicas: 1
  1398. selector:
  1399. matchLabels:
  1400. opentelemetry.io/name: example-quoteservice
  1401. template:
  1402. metadata:
  1403. labels:
  1404. opentelemetry.io/name: example-quoteservice
  1405. app.kubernetes.io/instance: example
  1406. app.kubernetes.io/component: quoteservice
  1407. app.kubernetes.io/name: example-quoteservice
  1408. spec:
  1409. serviceAccountName: example
  1410. containers:
  1411. - name: quoteservice
  1412. image: 'ghcr.io/open-telemetry/demo:1.6.0-quoteservice'
  1413. imagePullPolicy: IfNotPresent
  1414. ports:
  1415. - containerPort: 8080
  1416. name: service
  1417. env:
  1418. - name: OTEL_SERVICE_NAME
  1419. valueFrom:
  1420. fieldRef:
  1421. apiVersion: v1
  1422. fieldPath: metadata.labels['app.kubernetes.io/component']
  1423. - name: OTEL_COLLECTOR_NAME
  1424. value: 'example-otelcol'
  1425. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1426. value: cumulative
  1427. - name: QUOTE_SERVICE_PORT
  1428. value: "8080"
  1429. - name: OTEL_PHP_AUTOLOAD_ENABLED
  1430. value: "true"
  1431. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  1432. value: http://$(OTEL_COLLECTOR_NAME):4318
  1433. - name: OTEL_RESOURCE_ATTRIBUTES
  1434. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1435. resources:
  1436. limits:
  1437. memory: 40Mi
  1438. securityContext:
  1439. runAsGroup: 33
  1440. runAsNonRoot: true
  1441. runAsUser: 33
  1442. ---
  1443. # Source: opentelemetry-demo/templates/component.yaml
  1444. apiVersion: apps/v1
  1445. kind: Deployment
  1446. metadata:
  1447. name: example-recommendationservice
  1448. labels:
  1449. helm.sh/chart: opentelemetry-demo-0.26.0
  1450. opentelemetry.io/name: example-recommendationservice
  1451. app.kubernetes.io/instance: example
  1452. app.kubernetes.io/component: recommendationservice
  1453. app.kubernetes.io/name: example-recommendationservice
  1454. app.kubernetes.io/version: "1.6.0"
  1455. app.kubernetes.io/part-of: opentelemetry-demo
  1456. app.kubernetes.io/managed-by: Helm
  1457. spec:
  1458. replicas: 1
  1459. selector:
  1460. matchLabels:
  1461. opentelemetry.io/name: example-recommendationservice
  1462. template:
  1463. metadata:
  1464. labels:
  1465. opentelemetry.io/name: example-recommendationservice
  1466. app.kubernetes.io/instance: example
  1467. app.kubernetes.io/component: recommendationservice
  1468. app.kubernetes.io/name: example-recommendationservice
  1469. spec:
  1470. serviceAccountName: example
  1471. containers:
  1472. - name: recommendationservice
  1473. image: 'ghcr.io/open-telemetry/demo:1.6.0-recommendationservice'
  1474. imagePullPolicy: IfNotPresent
  1475. ports:
  1476. - containerPort: 8080
  1477. name: service
  1478. env:
  1479. - name: OTEL_SERVICE_NAME
  1480. valueFrom:
  1481. fieldRef:
  1482. apiVersion: v1
  1483. fieldPath: metadata.labels['app.kubernetes.io/component']
  1484. - name: OTEL_COLLECTOR_NAME
  1485. value: 'example-otelcol'
  1486. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1487. value: cumulative
  1488. - name: RECOMMENDATION_SERVICE_PORT
  1489. value: "8080"
  1490. - name: PRODUCT_CATALOG_SERVICE_ADDR
  1491. value: 'example-productcatalogservice:8080'
  1492. - name: FEATURE_FLAG_GRPC_SERVICE_ADDR
  1493. value: 'example-featureflagservice:50053'
  1494. - name: OTEL_PYTHON_LOG_CORRELATION
  1495. value: "true"
  1496. - name: PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION
  1497. value: python
  1498. - name: OTEL_EXPORTER_OTLP_ENDPOINT
  1499. value: http://$(OTEL_COLLECTOR_NAME):4317
  1500. - name: OTEL_RESOURCE_ATTRIBUTES
  1501. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1502. resources:
  1503. limits:
  1504. memory: 500Mi
  1505. ---
  1506. # Source: opentelemetry-demo/templates/component.yaml
  1507. apiVersion: apps/v1
  1508. kind: Deployment
  1509. metadata:
  1510. name: example-redis
  1511. labels:
  1512. helm.sh/chart: opentelemetry-demo-0.26.0
  1513. opentelemetry.io/name: example-redis
  1514. app.kubernetes.io/instance: example
  1515. app.kubernetes.io/component: redis
  1516. app.kubernetes.io/name: example-redis
  1517. app.kubernetes.io/version: "1.6.0"
  1518. app.kubernetes.io/part-of: opentelemetry-demo
  1519. app.kubernetes.io/managed-by: Helm
  1520. spec:
  1521. replicas: 1
  1522. selector:
  1523. matchLabels:
  1524. opentelemetry.io/name: example-redis
  1525. template:
  1526. metadata:
  1527. labels:
  1528. opentelemetry.io/name: example-redis
  1529. app.kubernetes.io/instance: example
  1530. app.kubernetes.io/component: redis
  1531. app.kubernetes.io/name: example-redis
  1532. spec:
  1533. serviceAccountName: example
  1534. containers:
  1535. - name: redis
  1536. image: 'redis:alpine'
  1537. imagePullPolicy: IfNotPresent
  1538. ports:
  1539. - containerPort: 6379
  1540. name: redis
  1541. env:
  1542. - name: OTEL_SERVICE_NAME
  1543. valueFrom:
  1544. fieldRef:
  1545. apiVersion: v1
  1546. fieldPath: metadata.labels['app.kubernetes.io/component']
  1547. - name: OTEL_COLLECTOR_NAME
  1548. value: 'example-otelcol'
  1549. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1550. value: cumulative
  1551. - name: OTEL_RESOURCE_ATTRIBUTES
  1552. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1553. resources:
  1554. limits:
  1555. memory: 20Mi
  1556. securityContext:
  1557. runAsGroup: 1000
  1558. runAsNonRoot: true
  1559. runAsUser: 999
  1560. ---
  1561. # Source: opentelemetry-demo/templates/component.yaml
  1562. apiVersion: apps/v1
  1563. kind: Deployment
  1564. metadata:
  1565. name: example-shippingservice
  1566. labels:
  1567. helm.sh/chart: opentelemetry-demo-0.26.0
  1568. opentelemetry.io/name: example-shippingservice
  1569. app.kubernetes.io/instance: example
  1570. app.kubernetes.io/component: shippingservice
  1571. app.kubernetes.io/name: example-shippingservice
  1572. app.kubernetes.io/version: "1.6.0"
  1573. app.kubernetes.io/part-of: opentelemetry-demo
  1574. app.kubernetes.io/managed-by: Helm
  1575. spec:
  1576. replicas: 1
  1577. selector:
  1578. matchLabels:
  1579. opentelemetry.io/name: example-shippingservice
  1580. template:
  1581. metadata:
  1582. labels:
  1583. opentelemetry.io/name: example-shippingservice
  1584. app.kubernetes.io/instance: example
  1585. app.kubernetes.io/component: shippingservice
  1586. app.kubernetes.io/name: example-shippingservice
  1587. spec:
  1588. serviceAccountName: example
  1589. containers:
  1590. - name: shippingservice
  1591. image: 'ghcr.io/open-telemetry/demo:1.6.0-shippingservice'
  1592. imagePullPolicy: IfNotPresent
  1593. ports:
  1594. - containerPort: 8080
  1595. name: service
  1596. env:
  1597. - name: OTEL_SERVICE_NAME
  1598. valueFrom:
  1599. fieldRef:
  1600. apiVersion: v1
  1601. fieldPath: metadata.labels['app.kubernetes.io/component']
  1602. - name: OTEL_COLLECTOR_NAME
  1603. value: 'example-otelcol'
  1604. - name: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
  1605. value: cumulative
  1606. - name: SHIPPING_SERVICE_PORT
  1607. value: "8080"
  1608. - name: QUOTE_SERVICE_ADDR
  1609. value: http://example-quoteservice:8080
  1610. - name: OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
  1611. value: http://$(OTEL_COLLECTOR_NAME):4317/v1/traces
  1612. - name: OTEL_RESOURCE_ATTRIBUTES
  1613. value: service.name=$(OTEL_SERVICE_NAME),service.namespace=opentelemetry-demo
  1614. resources:
  1615. limits:
  1616. memory: 20Mi
  1617. ---
  1618. # Source: opentelemetry-demo/templates/component.yaml
  1619. apiVersion: "networking.k8s.io/v1"
  1620. kind: Ingress
  1621. metadata:
  1622. name: example-frontendproxy
  1623. labels:
  1624. helm.sh/chart: opentelemetry-demo-0.26.0
  1625. opentelemetry.io/name: example-frontendproxy
  1626. app.kubernetes.io/instance: example
  1627. app.kubernetes.io/component: frontendproxy
  1628. app.kubernetes.io/name: example-frontendproxy
  1629. app.kubernetes.io/version: "1.6.0"
  1630. app.kubernetes.io/part-of: opentelemetry-demo
  1631. app.kubernetes.io/managed-by: Helm
  1632. spec:
  1633. rules:
  1634. - host: "otel-demo.example.com"
  1635. http:
  1636. paths:
  1637. - path: /
  1638. pathType: Prefix
  1639. backend:
  1640. service:
  1641. name: example-frontendproxy
  1642. port:
  1643. number: 8080