UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit e254cf6d authored by Ryan Garcia's avatar Ryan Garcia :dizzy:
Browse files

Merge branch 'loki-4-x-update' into 'master'

SKIP UPGRADE BB template changes for new Loki Chart Refactor

Closes platform-one/big-bang/apps/sandbox/loki#22, #1245, and #1256

See merge request platform-one/big-bang/bigbang!1908
parents a683196f d9b55032
No related branches found
No related tags found
1 merge request!1908SKIP UPGRADE BB template changes for new Loki Chart Refactor
Pipeline #938532 passed with warnings
...@@ -70,7 +70,7 @@ config: ...@@ -70,7 +70,7 @@ config:
match kube.* match kube.*
labels job=fluentbit, container=$kubernetes['container_name'], pod=$kubernetes['pod_name'], namespace=$kubernetes['namespace_name'], node_name=$kubernetes['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" }} {{- if eq .Values.loki.strategy "monolith" }}
host logging-loki host loki
{{- else }} {{- else }}
host logging-loki-write host logging-loki-write
{{- end }} {{- end }}
...@@ -84,7 +84,7 @@ config: ...@@ -84,7 +84,7 @@ config:
match host.* match host.*
labels job=fluentbit, container=$kubernetes['container_name'], pod=$kubernetes['pod_name'], namespace=$kubernetes['namespace_name'], node_name=$kubernetes['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" }} {{- if eq .Values.loki.strategy "monolith" }}
host logging-loki host loki
{{- else }} {{- else }}
host logging-loki-write host logging-loki-write
{{- end }} {{- end }}
......
...@@ -55,13 +55,11 @@ spec: ...@@ -55,13 +55,11 @@ spec:
- name: kyvernopolicies - name: kyvernopolicies
namespace: {{ .Release.Namespace }} namespace: {{ .Release.Namespace }}
{{- end }} {{- end }}
{{- if (eq .Values.loki.strategy "scalable") }}
{{- with .Values.loki.objectStorage }} {{- with .Values.loki.objectStorage }}
{{- if not (and .endpoint .accessKey .accessSecret .bucketNames) }} {{- if and (eq $.Values.loki.strategy "scalable") (not (and .endpoint .bucketNames)) }}
- name: minio-operator - name: minio-operator
namespace: {{ $.Release.Namespace }} namespace: {{ $.Release.Namespace }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
...@@ -21,45 +21,45 @@ networkPolicies: ...@@ -21,45 +21,45 @@ networkPolicies:
monitoring: monitoring:
enabled: {{ .Values.monitoring.enabled }} enabled: {{ .Values.monitoring.enabled }}
{{- if (eq .Values.loki.strategy "scalable") }}
serviceMonitor:
enabled: {{ .Values.monitoring.enabled }}
{{- end }}
istio: istio:
enabled: {{ .Values.istio.enabled }} enabled: {{ .Values.istio.enabled }}
{{- if (eq .Values.loki.strategy "scalable") }} loki:
global: storage:
createGlobalConfig: true bucketNames:
existingSecretForConfig: loki-config {{- toYaml .Values.loki.objectStorage.bucketNames | nindent 6 }}
s3:
objectStorage: endpoint: {{ .Values.loki.objectStorage.endpoint }}
endpoint: {{ .Values.loki.objectStorage.endpoint }} region: {{ .Values.loki.objectStorage.region }}
region: {{ .Values.loki.objectStorage.region }} accessKeyId: {{ .Values.loki.objectStorage.accessKey }}
bucketnames: {{ .Values.loki.objectStorage.bucketNames }} secretAccessKey: {{ .Values.loki.objectStorage.accessSecret }}
access_key_id: {{ .Values.loki.objectStorage.accessKey }}
secret_access_key: {{ .Values.loki.objectStorage.accessSecret }}
{{- with .Values.loki.objectStorage }} {{- with .Values.loki.objectStorage }}
{{- if not (and .endpoint .bucketNames .accessKey .accessSecret) }} {{- if and (eq $.Values.loki.strategy "scalable") (not (and .endpoint .region)) }}
minio: minio:
enabled: true enabled: true
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }}
{{- if .Values.istio.enabled }} {{- if .Values.istio.enabled }}
podAnnotations: podAnnotations:
{{ include "istioAnnotation" . }} {{ include "istioAnnotation" . }}
{{- end }} {{- end }}
loki: monolith:
enabled: {{ eq .Values.loki.strategy "monolith" }} enabled: {{ eq .Values.loki.strategy "monolith" }}
serviceMonitor: serviceMonitor:
enabled: {{ .Values.monitoring.enabled }} enabled: {{ .Values.monitoring.enabled }}
{{- if (eq .Values.loki.strategy "monolith") }}
loki-simple-scalable: read:
enabled: {{ eq .Values.loki.strategy "scalable" }} disabled: true
imagePullSecrets: write:
- name: private-registry disabled: true
serviceMonitor: {{- end }}
enabled: {{ .Values.monitoring.enabled }}
{{- end -}} {{- end -}}
...@@ -37,7 +37,7 @@ imagePullSecrets: ...@@ -37,7 +37,7 @@ imagePullSecrets:
config: config:
clients: clients:
{{- if eq .Values.loki.strategy "monolith" }} {{- if eq .Values.loki.strategy "monolith" }}
- url: http://logging-loki.logging.svc.cluster.local:3100/loki/api/v1/push - url: http://loki.logging.svc.cluster.local:3100/loki/api/v1/push
{{- else }} {{- else }}
- url: http://logging-loki-write.logging.svc.cluster.local:3100/loki/api/v1/push - url: http://logging-loki-write.logging.svc.cluster.local:3100/loki/api/v1/push
{{- end }} {{- end }}
......
...@@ -236,7 +236,7 @@ grafana: ...@@ -236,7 +236,7 @@ grafana:
- name: Loki - name: Loki
type: loki type: loki
{{- if eq .Values.loki.strategy "monolith" }} {{- if eq .Values.loki.strategy "monolith" }}
url: http://logging-loki.logging.svc.cluster.local:3100 url: http://loki.logging.svc.cluster.local:3100
{{- else }} {{- else }}
url: http://logging-loki-read.logging.svc.cluster.local:3100 url: http://logging-loki-read.logging.svc.cluster.local:3100
{{- end }} {{- end }}
......
...@@ -509,7 +509,7 @@ loki: ...@@ -509,7 +509,7 @@ loki:
git: git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/sandbox/loki.git repo: https://repo1.dso.mil/platform-one/big-bang/apps/sandbox/loki.git
path: "./chart" path: "./chart"
tag: "3.0.5-bb.4" tag: "1.7.6-bb.0"
# -- Flux reconciliation overrides specifically for the Loki Package # -- Flux reconciliation overrides specifically for the Loki Package
flux: {} flux: {}
...@@ -521,7 +521,7 @@ loki: ...@@ -521,7 +521,7 @@ loki:
# -- S3 compatible endpoint to use for connection information. # -- 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" # examples: "https://s3.amazonaws.com" "https://s3.us-gov-west-1.amazonaws.com" "http://minio.minio.svc.cluster.local:9000"
endpoint: "" endpoint: ""
# -- S3 compatible region to use for connection information. # -- S3 compatible region to use for connection information.
region: "" region: ""
...@@ -532,9 +532,11 @@ loki: ...@@ -532,9 +532,11 @@ loki:
# Unencoded string data. This should be placed in the secret values and then encrypted # Unencoded string data. This should be placed in the secret values and then encrypted
accessSecret: "" accessSecret: ""
# -- Bucket Names for Loki as a comma delimited list. # -- Bucket Names for the Loki buckets as YAML
# examples: "loki-logs" # chunks: loki-logs
bucketNames: "" # ruler: loki-ruler
# admin: loki-admin
bucketNames: {}
# -- Values to passthrough to the Loki chart: https://repo1.dso.mil/platform-one/big-bang/apps/sandbox/loki.git # -- Values to passthrough to the Loki chart: https://repo1.dso.mil/platform-one/big-bang/apps/sandbox/loki.git
values: {} values: {}
......
...@@ -170,7 +170,7 @@ gatekeeper: ...@@ -170,7 +170,7 @@ gatekeeper:
- jaeger/jaeger-operator-cypress-test - jaeger/jaeger-operator-cypress-test
- monitoring/kube-prometheus-stack-cypress-test - monitoring/kube-prometheus-stack-cypress-test
- vault/vault-cypress-test - vault/vault-cypress-test
- logging/loki-cypress-test - logging/loki-simple-scalable-cypress-test
- twistlock/twistlock-cypress-test - twistlock/twistlock-cypress-test
- sonarqube/sonarqube-cypress-test - sonarqube/sonarqube-cypress-test
- logging/logging-cypress-test - logging/logging-cypress-test
...@@ -271,7 +271,7 @@ gatekeeper: ...@@ -271,7 +271,7 @@ gatekeeper:
- jaeger/jaeger-operator-cypress-test - jaeger/jaeger-operator-cypress-test
- monitoring/kube-prometheus-stack-cypress-test - monitoring/kube-prometheus-stack-cypress-test
- vault/vault-cypress-test - vault/vault-cypress-test
- logging/loki-cypress-test - logging/loki-simple-scalable-cypress-test
- twistlock/twistlock-cypress-test - twistlock/twistlock-cypress-test
- sonarqube/sonarqube-cypress-test - sonarqube/sonarqube-cypress-test
- logging/logging-cypress-test - logging/logging-cypress-test
...@@ -569,32 +569,30 @@ loki: ...@@ -569,32 +569,30 @@ loki:
enabled: false enabled: false
strategy: scalable strategy: scalable
values: values:
global: minio:
createGlobalConfig: true enabled: true
existingSecretForConfig: "loki-config" write:
loki-simple-scalable: replicas: 1
write: persistence:
replicas: 1 size: 2Gi
persistence: resources:
size: 2Gi limits:
resources: cpu: 200m
limits: memory: 400Mi
cpu: 200m requests:
memory: 400Mi cpu: 200m
requests: memory: 400Mi
cpu: 200m read:
memory: 400Mi replicas: 1
read: persistence:
replicas: 1 size: 2Gi
persistence: resources:
size: 2Gi limits:
resources: cpu: 200m
limits: memory: 400Mi
cpu: 200m requests:
memory: 400Mi cpu: 200m
requests: memory: 400Mi
cpu: 200m
memory: 400Mi
bbtests: bbtests:
enabled: true enabled: true
cypress: cypress:
......
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