ingester-deploy.yaml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {{- if .Values.ingester.enabled -}}
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: {{ include "jaeger.fullname" . }}-ingester
  6. labels:
  7. {{- include "jaeger.labels" . | nindent 4 }}
  8. app.kubernetes.io/component: ingester
  9. {{- if .Values.ingester.annotations }}
  10. annotations:
  11. {{- toYaml .Values.ingester.annotations | nindent 4 }}
  12. {{- end }}
  13. spec:
  14. {{- if not .Values.ingester.autoscaling.enabled }}
  15. replicas: {{ .Values.ingester.replicaCount }}
  16. {{- end }}
  17. selector:
  18. matchLabels:
  19. {{- include "jaeger.selectorLabels" . | nindent 6 }}
  20. app.kubernetes.io/component: ingester
  21. template:
  22. metadata:
  23. annotations:
  24. {{- if .Values.ingester.podAnnotations }}
  25. {{- toYaml .Values.ingester.podAnnotations | nindent 8 }}
  26. {{- end }}
  27. labels:
  28. {{- include "jaeger.selectorLabels" . | nindent 8 }}
  29. app.kubernetes.io/component: ingester
  30. {{- if .Values.ingester.podLabels }}
  31. {{- toYaml .Values.ingester.podLabels | nindent 8 }}
  32. {{- end }}
  33. spec:
  34. serviceAccountName: {{ include "jaeger.ingester.serviceAccountName" . }}
  35. securityContext:
  36. {{- toYaml .Values.ingester.podSecurityContext | nindent 8 }}
  37. {{- with .Values.ingester.imagePullSecrets }}
  38. imagePullSecrets:
  39. {{- toYaml . | nindent 8 }}
  40. {{- end }}
  41. {{- with .Values.ingester.nodeSelector }}
  42. nodeSelector:
  43. {{- toYaml . | nindent 8 }}
  44. {{- end }}
  45. {{- with .Values.ingester.affinity }}
  46. affinity:
  47. {{- toYaml . | nindent 8 }}
  48. {{- end }}
  49. {{- with .Values.ingester.tolerations }}
  50. tolerations:
  51. {{- toYaml . | nindent 8 }}
  52. {{- end }}
  53. containers:
  54. - name: {{ include "jaeger.fullname" . }}-ingester
  55. securityContext:
  56. {{- toYaml .Values.ingester.securityContext | nindent 10 }}
  57. image: {{ .Values.ingester.image }}:{{- include "jaeger.image.tag" . }}
  58. imagePullPolicy: {{ .Values.ingester.pullPolicy }}
  59. args:
  60. {{ include "extra.cmdArgs" ( dict "cmdlineParams" .Values.ingester.cmdlineParams ) | nindent 10 }}
  61. {{- include "storage.cmdArgs" . | nindent 10 }}
  62. env:
  63. {{- if .Values.ingester.extraEnv }}
  64. {{- toYaml .Values.ingester.extraEnv | nindent 10 }}
  65. {{- end }}
  66. - name: SPAN_STORAGE_TYPE
  67. value: {{ .Values.storage.type }}
  68. {{- include "storage.env" . | nindent 10 }}
  69. - name: KAFKA_CONSUMER_BROKERS
  70. value: {{ tpl (include "helm-toolkit.utils.joinListWithComma" .Values.storage.kafka.brokers) . }}
  71. - name: KAFKA_CONSUMER_TOPIC
  72. value: {{ .Values.storage.kafka.topic }}
  73. - name: KAFKA_CONSUMER_AUTHENTICATION
  74. value: {{ .Values.storage.kafka.authentication }}
  75. ports:
  76. - containerPort: 14270
  77. name: admin
  78. protocol: TCP
  79. readinessProbe:
  80. httpGet:
  81. path: /
  82. port: admin
  83. livenessProbe:
  84. httpGet:
  85. path: /
  86. port: admin
  87. resources:
  88. {{- toYaml .Values.ingester.resources | nindent 10 }}
  89. volumeMounts:
  90. {{- range .Values.ingester.extraConfigmapMounts }}
  91. - name: {{ .name }}
  92. mountPath: {{ .mountPath }}
  93. subPath: {{ .subPath }}
  94. readOnly: {{ .readOnly }}
  95. {{- end }}
  96. {{- range .Values.ingester.extraSecretMounts }}
  97. - name: {{ .name }}
  98. mountPath: {{ .mountPath }}
  99. subPath: {{ .subPath }}
  100. readOnly: {{ .readOnly }}
  101. {{- end }}
  102. {{- if .Values.storage.cassandra.tls.enabled }}
  103. - name: {{ .Values.storage.cassandra.tls.secretName }}
  104. mountPath: "/cassandra-tls/ca-cert.pem"
  105. subPath: "ca-cert.pem"
  106. readOnly: true
  107. - name: {{ .Values.storage.cassandra.tls.secretName }}
  108. mountPath: "/cassandra-tls/client-cert.pem"
  109. subPath: "client-cert.pem"
  110. readOnly: true
  111. - name: {{ .Values.storage.cassandra.tls.secretName }}
  112. mountPath: "/cassandra-tls/client-key.pem"
  113. subPath: "client-key.pem"
  114. readOnly: true
  115. {{- end }}
  116. dnsPolicy: {{ .Values.ingester.dnsPolicy }}
  117. restartPolicy: Always
  118. volumes:
  119. {{- range .Values.ingester.extraConfigmapMounts }}
  120. - name: {{ .name }}
  121. configMap:
  122. name: {{ .configMap }}
  123. {{- end }}
  124. {{- range .Values.ingester.extraSecretMounts }}
  125. - name: {{ .name }}
  126. secret:
  127. secretName: {{ .secretName }}
  128. {{- end }}
  129. {{- if .Values.storage.cassandra.tls.enabled }}
  130. - name: {{ .Values.storage.cassandra.tls.secretName }}
  131. secret:
  132. secretName: {{ .Values.storage.cassandra.tls.secretName }}
  133. {{- end }}
  134. {{- end -}}