UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 614eb5eb authored by brandt keller's avatar brandt keller Committed by Ryan Garcia
Browse files

Integrating loki updates

parent cca98c74
No related branches found
No related tags found
1 merge request!2188Integrating loki updates
......@@ -70,7 +70,7 @@ config:
match kube.*
labels job=fluentbit, container=$kubernetes['container_name'], pod=$kubernetes['pod_name'], namespace=$kubernetes['namespace_name'], node_name=$kubernetes['host']
{{- if eq .Values.loki.strategy "monolith" }}
host loki
host logging-loki
{{- else }}
host logging-loki-write
{{- end }}
......@@ -84,7 +84,7 @@ config:
match host.*
labels job=fluentbit, container=$kubernetes['container_name'], pod=$kubernetes['pod_name'], namespace=$kubernetes['namespace_name'], node_name=$kubernetes['host']
{{- if eq .Values.loki.strategy "monolith" }}
host loki
host logging-loki
{{- else }}
host logging-loki-write
{{- end }}
......
......@@ -18,10 +18,10 @@ image:
networkPolicies:
enabled: {{ .Values.networkPolicies.enabled }}
controlPlaneCidr: {{ .Values.networkPolicies.controlPlaneCidr }}
monitoring:
enabled: {{ .Values.monitoring.enabled }}
{{- if (eq .Values.loki.strategy "scalable") }}
serviceMonitor:
enabled: {{ .Values.monitoring.enabled }}
# conditional passes only for default istio: enabled, mTLS: SCRICT
......@@ -33,13 +33,16 @@ monitoring:
keyFile: /etc/prom-certs/key.pem
insecureSkipVerify: true # Prometheus does not support Istio security naming, thus skip verifying target pod certificate
{{- end }}
{{- end }}
istio:
enabled: {{ .Values.istio.enabled }}
loki:
storage:
{{- if (eq .Values.loki.strategy "monolith") }}
type: "filesystem"
{{- else }}
type: "s3"
bucketNames:
{{- toYaml .Values.loki.objectStorage.bucketNames | nindent 6 }}
s3:
......@@ -47,6 +50,20 @@ loki:
region: {{ .Values.loki.objectStorage.region }}
accessKeyId: {{ .Values.loki.objectStorage.accessKey }}
secretAccessKey: {{ .Values.loki.objectStorage.accessSecret }}
{{- end }}
{{- if (eq .Values.loki.strategy "monolith") }}
rulerConfig:
storage:
type: local
storage_config:
boltdb_shipper:
active_index_directory: /var/loki/boltdb-shipper-active
cache_location: /var/loki/boltdb-shipper-cache
cache_ttl: 24h
shared_store: filesystem
filesystem:
directory: /var/loki/chunks
{{- end }}
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
......@@ -56,33 +73,8 @@ loki:
{{- if and (eq $.Values.loki.strategy "scalable") (not (and .endpoint .region)) }}
minio:
enabled: true
{{- end }}
{{- end }}
monolith:
enabled: {{ eq .Values.loki.strategy "monolith" }}
serviceMonitor:
enabled: {{ .Values.monitoring.enabled }}
# conditional passes only for default istio: enabled, mTLS: SCRICT
{{- if and .Values.istio.enabled (eq (dig "istio" "mtls" "mode" "STRICT" .Values.loki.values) "STRICT") }}
scheme: https
tlsConfig:
caFile: /etc/prom-certs/root-cert.pem
certFile: /etc/prom-certs/cert-chain.pem
keyFile: /etc/prom-certs/key.pem
insecureSkipVerify: true # Prometheus does not support Istio security naming, thus skip verifying target pod certificate
{{- end }}
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
{{- if (eq .Values.loki.strategy "monolith") }}
read:
disabled: true
write:
disabled: true
{{- end }}
{{- end }}
{{- end -}}
......@@ -47,7 +47,7 @@ imagePullSecrets:
config:
clients:
{{- if eq .Values.loki.strategy "monolith" }}
- url: http://loki.logging.svc.cluster.local:3100/loki/api/v1/push
- url: http://logging-loki.logging.svc.cluster.local:3100/loki/api/v1/push
{{- else }}
- url: http://logging-loki-write.logging.svc.cluster.local:3100/loki/api/v1/push
{{- end }}
......
......@@ -254,7 +254,7 @@ grafana:
- name: Loki
type: loki
{{- if eq .Values.loki.strategy "monolith" }}
url: http://loki.logging.svc.cluster.local:3100
url: http://logging-loki.logging.svc.cluster.local:3100
{{- else }}
url: http://logging-loki-read.logging.svc.cluster.local:3100
{{- end }}
......
......@@ -526,7 +526,7 @@ loki:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/sandbox/loki.git
path: "./chart"
tag: "1.8.10-bb.2"
tag: "3.2.1-bb.1"
# -- Flux reconciliation overrides specifically for the Loki Package
flux: {}
......
......@@ -166,7 +166,7 @@ gatekeeper:
- jaeger/jaeger-operator-cypress-test
- monitoring/kube-prometheus-stack-cypress-test
- vault/vault-cypress-test
- logging/loki-simple-scalable-cypress-test
- logging/loki-cypress-test
- twistlock/twistlock-cypress-test
- sonarqube/sonarqube-cypress-test
- logging/logging-cypress-test
......@@ -268,7 +268,7 @@ gatekeeper:
- jaeger/jaeger-operator-cypress-test
- monitoring/kube-prometheus-stack-cypress-test
- vault/vault-cypress-test
- logging/loki-simple-scalable-cypress-test
- logging/loki-cypress-test
- twistlock/twistlock-cypress-test
- sonarqube/sonarqube-cypress-test
- logging/logging-cypress-test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment