Some checks failed
continuous-integration/drone Build is failing
* add distributed tracing to application * add jaeger helm chart * Create Interceptor to propagate trace context to gRPC server * Create Tower Layer to extract trace context and add to request extensions * Retrieve trace context from request extensions and set inside request handlers * add registration to frontend * use one image for all core services Reviewed-on: #1 Co-authored-by: Steve Sampson <mail@stephensampson.dev> Co-committed-by: Steve Sampson <mail@stephensampson.dev>
68 lines
2.0 KiB
YAML
68 lines
2.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "producer.fullname" . }}
|
|
labels:
|
|
{{- include "producer.labels" . | nindent 4 }}
|
|
spec:
|
|
{{- if not .Values.autoscaling.enabled }}
|
|
replicas: {{ .Values.replicaCount }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
{{- include "producer.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
{{- with .Values.podAnnotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
labels:
|
|
{{- include "producer.selectorLabels" . | nindent 8 }}
|
|
spec:
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
serviceAccountName: {{ include "producer.serviceAccountName" . }}
|
|
securityContext:
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
containers:
|
|
- name: {{ .Chart.Name }}
|
|
command: {{ .Values.command }}
|
|
securityContext:
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
env:
|
|
- name: "RUST_LOG"
|
|
value: {{ .Values.RUST_LOG }}
|
|
ports:
|
|
- name: http
|
|
containerPort: 8082
|
|
protocol: TCP
|
|
livenessProbe:
|
|
initialDelaySeconds: 5
|
|
httpGet:
|
|
path: /healthy
|
|
port: 8082
|
|
readinessProbe:
|
|
initialDelaySeconds: 5
|
|
httpGet:
|
|
path: /ready
|
|
port: 8082
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
{{- with .Values.nodeSelector }}
|
|
nodeSelector:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.affinity }}
|
|
affinity:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
{{- with .Values.tolerations }}
|
|
tolerations:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|