UNCLASSIFIED - NO CUI

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

SKIP UPGRADE BB template changes for new Loki Chart Refactor

parent a683196f
No related branches found
No related tags found
1 merge request!1908SKIP UPGRADE BB template changes for new Loki Chart Refactor
......@@ -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 logging-loki
host 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 logging-loki
host loki
{{- else }}
host logging-loki-write
{{- end }}
......
......@@ -55,13 +55,11 @@ spec:
- name: kyvernopolicies
namespace: {{ .Release.Namespace }}
{{- end }}
{{- if (eq .Values.loki.strategy "scalable") }}
{{- 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
namespace: {{ $.Release.Namespace }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
......@@ -21,45 +21,45 @@ networkPolicies:
monitoring:
enabled: {{ .Values.monitoring.enabled }}
{{- if (eq .Values.loki.strategy "scalable") }}
serviceMonitor:
enabled: {{ .Values.monitoring.enabled }}
{{- end }}
istio:
enabled: {{ .Values.istio.enabled }}
{{- if (eq .Values.loki.strategy "scalable") }}
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 }}
loki:
storage:
bucketNames:
{{- toYaml .Values.loki.objectStorage.bucketNames | nindent 6 }}
s3:
endpoint: {{ .Values.loki.objectStorage.endpoint }}
region: {{ .Values.loki.objectStorage.region }}
accessKeyId: {{ .Values.loki.objectStorage.accessKey }}
secretAccessKey: {{ .Values.loki.objectStorage.accessSecret }}
{{- with .Values.loki.objectStorage }}
{{- if not (and .endpoint .bucketNames .accessKey .accessSecret) }}
{{- if and (eq $.Values.loki.strategy "scalable") (not (and .endpoint .region)) }}
minio:
enabled: true
{{- end }}
{{- end }}
{{- end }}
{{- if .Values.istio.enabled }}
podAnnotations:
{{ include "istioAnnotation" . }}
{{- end }}
loki:
monolith:
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 }}
{{- if (eq .Values.loki.strategy "monolith") }}
read:
disabled: true
write:
disabled: true
{{- end }}
{{- end -}}
......@@ -37,7 +37,7 @@ imagePullSecrets:
config:
clients:
{{- 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 }}
- url: http://logging-loki-write.logging.svc.cluster.local:3100/loki/api/v1/push
{{- end }}
......
......@@ -236,7 +236,7 @@ grafana:
- name: Loki
type: loki
{{- if eq .Values.loki.strategy "monolith" }}
url: http://logging-loki.logging.svc.cluster.local:3100
url: http://loki.logging.svc.cluster.local:3100
{{- else }}
url: http://logging-loki-read.logging.svc.cluster.local:3100
{{- end }}
......
......@@ -509,7 +509,7 @@ loki:
git:
repo: https://repo1.dso.mil/platform-one/big-bang/apps/sandbox/loki.git
path: "./chart"
tag: "3.0.5-bb.4"
tag: "1.7.6-bb.0"
# -- Flux reconciliation overrides specifically for the Loki Package
flux: {}
......@@ -521,7 +521,7 @@ loki:
# -- 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: ""
......@@ -532,9 +532,11 @@ loki:
# 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: ""
# -- Bucket Names for the Loki buckets as YAML
# chunks: loki-logs
# 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: {}
......
......@@ -170,7 +170,7 @@ gatekeeper:
- jaeger/jaeger-operator-cypress-test
- monitoring/kube-prometheus-stack-cypress-test
- vault/vault-cypress-test
- logging/loki-cypress-test
- logging/loki-simple-scalable-cypress-test
- twistlock/twistlock-cypress-test
- sonarqube/sonarqube-cypress-test
- logging/logging-cypress-test
......@@ -271,7 +271,7 @@ gatekeeper:
- jaeger/jaeger-operator-cypress-test
- monitoring/kube-prometheus-stack-cypress-test
- vault/vault-cypress-test
- logging/loki-cypress-test
- logging/loki-simple-scalable-cypress-test
- twistlock/twistlock-cypress-test
- sonarqube/sonarqube-cypress-test
- logging/logging-cypress-test
......@@ -569,32 +569,30 @@ loki:
enabled: false
strategy: scalable
values:
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
minio:
enabled: true
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
bbtests:
enabled: true
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