allinone-deploy.yaml 3.5 KB

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