UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit d521596e authored by Micah Nagel's avatar Micah Nagel
Browse files

Merge branch 'loki-modes-gel' into 'master'

Loki strategy switching SKIP UPGRADE

Closes platform-one/big-bang/apps/sandbox/loki#1

See merge request platform-one/big-bang/bigbang!1482
parents f9fc0833 0d92a487
No related branches found
No related tags found
1 merge request!1482Loki strategy switching SKIP UPGRADE
Pipeline #767247 failed
......@@ -44,6 +44,10 @@ spec:
- name: ek
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if .Values.loki.enabled }}
- name: loki
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if .Values.gatekeeper.enabled }}
- name: gatekeeper
namespace: {{ .Release.Namespace }}
......
......@@ -67,7 +67,11 @@ config:
name loki
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 logging-loki
{{- else }}
host logging-loki-write
{{- end }}
port 3100
auto_kubernetes_labels on
Retry_Limit False
......
......@@ -10,6 +10,7 @@ metadata:
app.kubernetes.io/component: "core"
{{- include "commonLabels" . | nindent 4}}
spec:
releaseName: {{ default "loki" .Values.loki.releaseName }}
targetNamespace: logging
chart:
spec:
......@@ -54,5 +55,11 @@ spec:
- name: kyvernopolicies
namespace: {{ .Release.Namespace }}
{{- end }}
{{- with .Values.loki.objectStorage }}
{{- if not (and .endpoint .accessKey .accessSecret .bucketNames) }}
- name: minio-operator
namespace: {{ $.Release.Namespace }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
\ No newline at end of file
......@@ -17,19 +17,47 @@ image:
pullPolicy: {{ .Values.imagePullPolicy }}
networkPolicies:
enabled: {{ .Values.networkPolicies.enabled }}
enabled: {{ .Values.networkPolicies.enabled }}
monitoring:
enabled: {{ .Values.monitoring.enabled }}
istio:
enabled: {{ .Values.istio.enabled }}
serviceMonitor:
enabled: {{ .Values.monitoring.enabled }}
global:
createGlobalConfig: true
existingSecretForConfig: loki-config
objectStorage:
endpoint: {{ .Values.loki.objectStorage.endpoint }}
region: {{ .Values.loki.objectStorage.region }}
bucketnames: {{ .Values.loki.objectStorage.bucketNames }}
access_key_id: {{ .Values.loki.objectStorage.accessKey }}
secret_access_key: {{ .Values.loki.objectStorage.accessSecret }}
{{- with .Values.loki.objectStorage }}
{{- if not (and .endpoint .bucketNames .accessKey .accessSecret) }}
minio:
enabled: true
{{- end }}
{{- end }}
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
loki:
enabled: {{ eq .Values.loki.strategy "monolith" }}
serviceMonitor:
enabled: {{ .Values.monitoring.enabled }}
loki-simple-scalable:
enabled: {{ eq .Values.loki.strategy "scalable" }}
imagePullSecrets:
- name: private-registry
serviceMonitor:
enabled: {{ .Values.monitoring.enabled }}
{{- end -}}
......@@ -32,6 +32,10 @@ imagePullSecrets:
{{- if .Values.loki.enabled }}
config:
{{- if eq .Values.loki.strategy "monolith" }}
lokiAddress: http://logging-loki.logging.svc.cluster.local:3100/loki/api/v1/push
{{- else }}
lokiAddress: http://logging-loki-write.logging.svc.cluster.local:3100/loki/api/v1/push
{{- end }}
{{- end }}
{{- end -}}
......@@ -215,7 +215,11 @@ grafana:
{{- if .Values.loki.enabled }}
- name: Loki
type: loki
{{- if eq .Values.loki.strategy "monolith" }}
url: http://logging-loki.logging.svc.cluster.local:3100
{{- else }}
url: http://logging-loki-read.logging.svc.cluster.local:3100
{{- end }}
access: proxy
{{- end }}
{{- if and .Values.loki.enabled .Values.tempo.enabled }}
......
......@@ -507,7 +507,7 @@ loki:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/sandbox/loki.git
path: "./chart"
tag: "2.10.1-bb.4"
tag: "3.0.1-bb.0"
# -- Flux reconciliation overrides specifically for the Loki Package
flux: {}
......@@ -517,6 +517,28 @@ loki:
# -- Post Renderers. See docs/postrenders.md
postRenderers: []
# -- Loki architecture. Options are monolith and scalable
strategy: monolith
objectStorage:
# -- S3 compatible endpoint to use for connection information.
# examples: "https://s3.amazonaws.com" "https://s3.us-gov-west-1.amazonaws.com" "http://minio.minio.svc.cluster.local:9000"
endpoint: ""
# -- S3 compatible region to use for connection information.
region: ""
# -- Access key for connecting to object storage endpoint.
accessKey: ""
# -- Secret key for connecting to object storage endpoint.
# Unencoded string data. This should be placed in the secret values and then encrypted
accessSecret: ""
# -- Bucket Names for Loki as a comma delimited list.
# examples: "loki-logs"
bucketNames: ""
# ----------------------------------------------------------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------------------------
......
......@@ -50,6 +50,16 @@ logging:
cpu: .5
limits: null
loki:
values:
loki-simple-scalable:
write:
resources:
limits: null
read:
resources:
limits: null
tempo:
values:
tempo:
......
......@@ -460,9 +460,34 @@ fluentbit:
loki:
enabled: false
strategy: scalable
values:
persistence:
enabled: true
global:
createGlobalConfig: true
existingSecretForConfig: "loki-config"
loki-simple-scalable:
write:
replicas: 1
persistence:
size: 2Gi
resources:
limits:
cpu: 200m
memory: 400Mi
requests:
cpu: 200m
memory: 400Mi
read:
replicas: 1
persistence:
size: 2Gi
resources:
limits:
cpu: 200m
memory: 400Mi
requests:
cpu: 200m
memory: 400Mi
tempo:
enabled: false
......
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