added repo
This commit is contained in:
+148
@@ -0,0 +1,148 @@
|
||||
{{- if and .Values.enterprise.enabled .Values.graphite.enabled -}}
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "mimir.resourceName" (dict "ctx" . "component" "graphite-write-proxy") }}
|
||||
labels:
|
||||
{{- include "mimir.labels" (dict "ctx" . "component" "graphite-write-proxy") | nindent 4 }}
|
||||
annotations:
|
||||
{{- toYaml .Values.graphite.write_proxy.annotations | nindent 4 }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
spec:
|
||||
replicas: {{ .Values.graphite.write_proxy.replicas }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "mimir.selectorLabels" (dict "ctx" . "component" "graphite-write-proxy") | nindent 6 }}
|
||||
strategy:
|
||||
{{- toYaml .Values.graphite.write_proxy.strategy | nindent 4 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "mimir.podLabels" (dict "ctx" . "component" "graphite-write-proxy") | nindent 8 }}
|
||||
annotations:
|
||||
{{- include "mimir.podAnnotations" (dict "ctx" . "component" "graphite-write-proxy") | nindent 8 }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
spec:
|
||||
serviceAccountName: {{ template "mimir.serviceAccountName" . }}
|
||||
{{- if .Values.graphite.write_proxy.priorityClassName }}
|
||||
priorityClassName: {{ .Values.graphite.write_proxy.priorityClassName }}
|
||||
{{- end }}
|
||||
securityContext:
|
||||
{{- include "mimir.lib.podSecurityContext" (dict "ctx" . "component" "graphite-write-proxy") | nindent 8 }}
|
||||
{{- with .Values.graphite.write_proxy.initContainers }}
|
||||
initContainers:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.image.pullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- range .Values.image.pullSecrets }}
|
||||
- name: {{ . }}
|
||||
{{- end}}
|
||||
{{- end }}
|
||||
containers:
|
||||
{{- if .Values.graphite.write_proxy.extraContainers }}
|
||||
{{ toYaml .Values.graphite.write_proxy.extraContainers | nindent 8 }}
|
||||
{{- end }}
|
||||
- name: graphite-write-proxy
|
||||
image: "{{ include "mimir.imageReference" . }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
args:
|
||||
- -target=graphite-write-proxy
|
||||
- -config.file=/etc/mimir/mimir.yaml
|
||||
{{- range $key, $value := .Values.graphite.write_proxy.extraArgs }}
|
||||
- "-{{ $key }}={{ $value }}"
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
{{- if .Values.graphite.write_proxy.extraVolumeMounts }}
|
||||
{{ toYaml .Values.graphite.write_proxy.extraVolumeMounts | nindent 12}}
|
||||
{{- end }}
|
||||
{{- if .Values.global.extraVolumeMounts }}
|
||||
{{ toYaml .Values.global.extraVolumeMounts | nindent 12}}
|
||||
{{- end }}
|
||||
- name: config
|
||||
mountPath: /etc/mimir
|
||||
- name: runtime-config
|
||||
mountPath: /var/{{ include "mimir.name" . }}
|
||||
- name: license
|
||||
mountPath: /license
|
||||
- name: storage
|
||||
mountPath: "/data"
|
||||
{{- if .Values.graphite.write_proxy.persistence.subPath }}
|
||||
subPath: {{ .Values.graphite.write_proxy.persistence.subPath }}
|
||||
{{- end }}
|
||||
- name: active-queries
|
||||
mountPath: /active-query-tracker
|
||||
ports:
|
||||
- name: http-metrics
|
||||
containerPort: {{ include "mimir.serverHttpListenPort" . }}
|
||||
protocol: TCP
|
||||
- name: grpc
|
||||
containerPort: {{ include "mimir.serverGrpcListenPort" . }}
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
{{- toYaml .Values.graphite.write_proxy.livenessProbe | nindent 12 }}
|
||||
readinessProbe:
|
||||
{{- toYaml .Values.graphite.write_proxy.readinessProbe | nindent 12 }}
|
||||
resources:
|
||||
{{- toYaml .Values.graphite.write_proxy.resources | nindent 12 }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.graphite.write_proxy.containerSecurityContext | nindent 12 }}
|
||||
{{- $jaeger_queue_size := dig "jaegerReporterMaxQueueSize" nil .Values.graphite.write_proxy }}
|
||||
{{- if or .Values.global.extraEnv .Values.graphite.write_proxy.env $jaeger_queue_size }}
|
||||
env:
|
||||
{{- with .Values.global.extraEnv }}
|
||||
{{ toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.graphite.write_proxy.env }}
|
||||
{{ toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- if $jaeger_queue_size }}
|
||||
- name: "JAEGER_REPORTER_MAX_QUEUE_SIZE"
|
||||
value: {{$jaeger_queue_size | toString | toYaml }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if or .Values.global.extraEnvFrom .Values.graphite.write_proxy.extraEnvFrom }}
|
||||
envFrom:
|
||||
{{- with .Values.global.extraEnvFrom }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.graphite.write_proxy.extraEnvFrom }}
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- with .Values.graphite.write_proxy.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.graphite.write_proxy.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.graphite.write_proxy.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
terminationGracePeriodSeconds: {{ .Values.graphite.write_proxy.terminationGracePeriodSeconds }}
|
||||
volumes:
|
||||
- name: config
|
||||
{{- include "mimir.configVolume" . | nindent 10 }}
|
||||
- name: runtime-config
|
||||
configMap:
|
||||
name: {{ template "mimir.fullname" . }}-runtime
|
||||
- name: graphite-schemas
|
||||
configMap:
|
||||
name: {{ template "mimir.fullname" . }}-graphite-schemas
|
||||
{{- if .Values.graphite.write_proxy.extraVolumes }}
|
||||
{{ toYaml .Values.graphite.write_proxy.extraVolumes | indent 8}}
|
||||
{{- end }}
|
||||
{{- if .Values.global.extraVolumes }}
|
||||
{{ toYaml .Values.global.extraVolumes | indent 8}}
|
||||
{{- end }}
|
||||
- name: license
|
||||
secret:
|
||||
secretName: {{ tpl .Values.license.secretName . }}
|
||||
- name: storage
|
||||
emptyDir: {}
|
||||
- name: active-queries
|
||||
emptyDir: {}
|
||||
{{- end -}}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{{- if and .Values.enterprise.enabled .Values.graphite.enabled -}}
|
||||
{{- include "mimir.lib.podDisruptionBudget" (dict "ctx" $ "component" "graphite-write-proxy") }}
|
||||
{{- end -}}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
{{- if and .Values.enterprise.enabled .Values.graphite.enabled -}}
|
||||
{{- include "mimir.lib.serviceMonitor" (dict "ctx" $ "component" "graphite-write-proxy") }}
|
||||
{{- end -}}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
{{- if and .Values.enterprise.enabled .Values.graphite.enabled -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "mimir.resourceName" (dict "ctx" . "component" "graphite-write-proxy") }}
|
||||
labels:
|
||||
{{- include "mimir.labels" (dict "ctx" . "component" "graphite-write-proxy") | nindent 4 }}
|
||||
{{- with .Values.graphite.write_proxy.service.labels }}
|
||||
{{- toYaml . | nindent 4 }}
|
||||
{{- end }}
|
||||
annotations:
|
||||
{{- toYaml .Values.graphite.write_proxy.service.annotations | nindent 4 }}
|
||||
namespace: {{ .Release.Namespace | quote }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: {{ include "mimir.serverHttpListenPort" . }}
|
||||
protocol: TCP
|
||||
name: http-metrics
|
||||
targetPort: http-metrics
|
||||
- port: {{ include "mimir.serverGrpcListenPort" . }}
|
||||
protocol: TCP
|
||||
name: grpc
|
||||
targetPort: grpc
|
||||
selector:
|
||||
{{- include "mimir.selectorLabels" (dict "ctx" . "component" "graphite-write-proxy") | nindent 4 }}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user