Skip to content

Commit 634ce99

Browse files
committed
SYS-672 wip
1 parent 6570ebe commit 634ce99

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

k8s/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,12 @@ imports/traefik-prom.yaml:
223223

224224
SPLUNK_OPT = $(if $(LOG_TO_SPLUNK), -f install/fluent-bit-splunk.yaml, )
225225
fluent-bit: install/namespace.yaml
226-
K8S_NAMESPACE=logging envsubst < $< | kubectl apply --context=sudo -f -
226+
K8S_NAMESPACE=$(LOG_NAMESPACE) envsubst < $< | \
227+
kubectl apply --context=sudo -f -
227228
helm repo add fluent https://fluent.github.io/helm-charts
228229
helm repo update
229230
@$(eval OVERRIDE := $(shell [ -s ../admin/services/values/$@.yaml ] \
230231
&& echo "-f ../admin/services/values/$@.yaml"))
231232
envsubst < install/fluent-bit.yaml | \
232233
helm install -f - $(SPLUNK_OPT) $(OVERRIDE) \
233-
--kube-context=sudo --namespace=logging $@ fluent/fluent-bit
234+
--kube-context=sudo --namespace=$(LOG_NAMESPACE) $@ fluent/fluent-bit

k8s/Makefile.vars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export LIMIT_CPU_DEFAULT ?= 500m
1818
export LIMIT_CPU_REQUEST ?= 50m
1919
export LIMIT_MEM_DEFAULT ?= 256Mi
2020
export LIMIT_MEM_REQUEST ?= 64Mi
21+
export LOG_NAMESPACE ?= logging
2122
export LOG_TO_SPLUNK ?=
2223
export MYTHTV_VOL_SIZE ?= 400Gi
2324
export NAMED_VOLUMES ?= share $(LOCAL_VOLUMES)

k8s/install/fluent-bit-splunk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ config:
44
Name kubernetes
55
Match kube.*
66
Merge_Log On
7-
# Keep_Log Off
7+
Keep_Log Off
88
K8S-Logging.Parser On
99
K8S-Logging.Exclude Off
1010
[FILTER]

k8s/install/fluent-bit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ config:
55
Name kubernetes
66
Match kube.*
77
Merge_Log On
8+
Keep_Log Off
89
K8S-Logging.Parser On
910
K8S-Logging.Exclude On
1011
[FILTER]

0 commit comments

Comments
 (0)