hotrod-deploy.yaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {{- if .Values.hotrod.enabled -}}
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: {{ include "jaeger.fullname" . }}-hotrod
  6. labels:
  7. {{- include "jaeger.labels" . | nindent 4 }}
  8. app.kubernetes.io/component: hotrod
  9. spec:
  10. replicas: {{ .Values.hotrod.replicaCount }}
  11. selector:
  12. matchLabels:
  13. {{- include "jaeger.selectorLabels" . | nindent 6 }}
  14. app.kubernetes.io/component: hotrod
  15. template:
  16. metadata:
  17. labels:
  18. {{- include "jaeger.selectorLabels" . | nindent 8 }}
  19. app.kubernetes.io/component: hotrod
  20. spec:
  21. securityContext:
  22. {{- toYaml .Values.hotrod.podSecurityContext | nindent 8 }}
  23. serviceAccountName: {{ template "jaeger.hotrod.serviceAccountName" . }}
  24. {{- with .Values.hotrod.image.pullSecrets }}
  25. imagePullSecrets:
  26. {{- toYaml . | nindent 8 }}
  27. {{- end }}
  28. containers:
  29. - name: {{ include "jaeger.fullname" . }}-hotrod
  30. securityContext:
  31. {{- toYaml .Values.hotrod.securityContext | nindent 12 }}
  32. image: {{ .Values.hotrod.image.repository }}:{{- include "jaeger.image.tag" . }}
  33. imagePullPolicy: {{ .Values.hotrod.image.pullPolicy }}
  34. env:
  35. - name: JAEGER_AGENT_HOST
  36. value: {{ template "jaeger.hotrod.tracing.host" . }}
  37. - name: JAEGER_AGENT_PORT
  38. value: {{ .Values.hotrod.tracing.port | quote }}
  39. ports:
  40. - name: http
  41. containerPort: 8080
  42. protocol: TCP
  43. livenessProbe:
  44. httpGet:
  45. path: /
  46. port: http
  47. readinessProbe:
  48. httpGet:
  49. path: /
  50. port: http
  51. resources:
  52. {{- toYaml .Values.hotrod.resources | nindent 12 }}
  53. {{- with .Values.hotrod.nodeSelector }}
  54. nodeSelector:
  55. {{- toYaml . | nindent 8 }}
  56. {{- end }}
  57. {{- with .Values.hotrod.affinity }}
  58. affinity:
  59. {{- toYaml . | nindent 8 }}
  60. {{- end }}
  61. {{- with .Values.hotrod.tolerations }}
  62. tolerations:
  63. {{- toYaml . | nindent 8 }}
  64. {{- end }}
  65. {{- end }}