allinone-deploy.yaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {{- if .Values.allInOne.enabled -}}
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: {{ template "jaeger.fullname" . }}
  6. labels:
  7. {{- include "jaeger.labels" . | nindent 4 }}
  8. app.kubernetes.io/component: all-in-one
  9. prometheus.io/port: "14269"
  10. prometheus.io/scrape: "true"
  11. spec:
  12. {{- if hasKey .Values.allInOne "replicas" }}
  13. replicas: {{ .Values.allInOne.replicas }}
  14. {{- end }}
  15. strategy:
  16. type: Recreate
  17. selector:
  18. matchLabels:
  19. {{- include "jaeger.selectorLabels" . | nindent 6 }}
  20. app.kubernetes.io/component: all-in-one
  21. template:
  22. metadata:
  23. labels:
  24. {{- include "jaeger.selectorLabels" . | nindent 8 }}
  25. app.kubernetes.io/component: all-in-one
  26. {{- if .Values.allInOne.podLabels }}
  27. {{- toYaml .Values.allInOne.podLabels | nindent 8 }}
  28. {{- end }}
  29. annotations:
  30. prometheus.io/port: "14269"
  31. prometheus.io/scrape: "true"
  32. spec:
  33. {{- with .Values.allInOne.imagePullSecrets }}
  34. imagePullSecrets:
  35. {{- toYaml . | nindent 8 }}
  36. {{- end }}
  37. containers:
  38. - env:
  39. {{- if .Values.allInOne.extraEnv }}
  40. {{- toYaml .Values.allInOne.extraEnv | nindent 12 }}
  41. {{- end }}
  42. - name: SPAN_STORAGE_TYPE
  43. value: memory
  44. - name: COLLECTOR_ZIPKIN_HOST_PORT
  45. value: :9411
  46. - name: JAEGER_DISABLED
  47. value: "false"
  48. - name: COLLECTOR_OTLP_ENABLED
  49. value: "true"
  50. {{- if .Values.allInOne.samplingConfig }}
  51. - name: SAMPLING_STRATEGIES_FILE
  52. value: /etc/conf/strategies.json
  53. {{- end }}
  54. {{- with .Values.allInOne.envFrom }}
  55. envFrom: {{- toYaml . | nindent 12 }}
  56. {{- end }}
  57. image: {{ .Values.allInOne.image }}:{{- .Values.allInOne.tag | default (include "jaeger.image.tag" .) }}
  58. imagePullPolicy: {{ .Values.allInOne.pullPolicy }}
  59. name: jaeger
  60. args:
  61. {{- range $arg := .Values.allInOne.args }}
  62. - "{{ tpl $arg $ }}"
  63. {{- end }}
  64. ports:
  65. - containerPort: 5775
  66. protocol: UDP
  67. - containerPort: 6831
  68. protocol: UDP
  69. - containerPort: 6832
  70. protocol: UDP
  71. - containerPort: 5778
  72. protocol: TCP
  73. - containerPort: 16686
  74. protocol: TCP
  75. - containerPort: 16685
  76. protocol: TCP
  77. - containerPort: 9411
  78. protocol: TCP
  79. - containerPort: 4317
  80. protocol: TCP
  81. - containerPort: 4318
  82. protocol: TCP
  83. livenessProbe:
  84. failureThreshold: 5
  85. httpGet:
  86. path: /
  87. port: 14269
  88. scheme: HTTP
  89. initialDelaySeconds: 5
  90. periodSeconds: 15
  91. successThreshold: 1
  92. timeoutSeconds: 1
  93. readinessProbe:
  94. failureThreshold: 3
  95. httpGet:
  96. path: /
  97. port: 14269
  98. scheme: HTTP
  99. initialDelaySeconds: 1
  100. periodSeconds: 10
  101. successThreshold: 1
  102. timeoutSeconds: 1
  103. {{- with .Values.allInOne.resources }}
  104. resources:
  105. {{- toYaml . | nindent 12 }}
  106. {{- end }}
  107. volumeMounts:
  108. {{- if .Values.allInOne.samplingConfig}}
  109. - name: strategies
  110. mountPath: /etc/conf/
  111. {{- end }}
  112. {{- range .Values.allInOne.extraSecretMounts }}
  113. - name: {{ .name }}
  114. mountPath: {{ .mountPath }}
  115. subPath: {{ .subPath }}
  116. readOnly: {{ .readOnly }}
  117. {{- end }}
  118. serviceAccountName: {{ template "jaeger.fullname" . }}
  119. volumes:
  120. {{- if .Values.allInOne.samplingConfig}}
  121. - name: strategies
  122. configMap:
  123. name: {{ include "jaeger.fullname" . }}-sampling-strategies
  124. {{- end }}
  125. {{- range .Values.allInOne.extraSecretMounts }}
  126. - name: {{ .name }}
  127. secret:
  128. secretName: {{ .secretName }}
  129. {{- end }}
  130. {{- with .Values.allInOne.nodeSelector }}
  131. nodeSelector:
  132. {{- toYaml . | nindent 8 }}
  133. {{- end }}
  134. {{- end -}}