Skip to content

Commit dd8ebf6

Browse files
committed
Merge branch 'dev'
2 parents 4a2a454 + 4fbac13 commit dd8ebf6

6 files changed

Lines changed: 1414 additions & 5269 deletions

File tree

helm/grafana/values.yaml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,7 @@ resources: {}
362362
## Node labels for pod assignment
363363
## ref: https://kubernetes.io/docs/user-guide/node-selection/
364364
#
365-
nodeSelector:
366-
kubernetes.io/hostname: minikube-m03
365+
nodeSelector: {}
367366

368367
## Tolerations for pod assignment
369368
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
@@ -416,13 +415,13 @@ extraContainerVolumes: []
416415
##
417416
persistence:
418417
type: pvc
419-
enabled: true
418+
enabled: false
420419
# storageClassName: default
421420
## (Optional) Use this to bind the claim to an existing PersistentVolume (PV) by name.
422421
volumeName: ""
423422
accessModes:
424423
- ReadWriteOnce
425-
size: 1Gi
424+
size: 10Gi
426425
# annotations: {}
427426
finalizers:
428427
- kubernetes.io/pvc-protection
@@ -477,7 +476,7 @@ initChownData:
477476
# cpu: 100m
478477
# memory: 128Mi
479478
securityContext:
480-
readOnlyRootFilesystem: true
479+
readOnlyRootFilesystem: false
481480
runAsNonRoot: false
482481
runAsUser: 0
483482
seccompProfile:
@@ -489,15 +488,15 @@ initChownData:
489488
- ALL
490489

491490
# Administrator credentials when not using an existing secret (see below)
492-
# adminUser: admin
491+
adminUser: admin
493492
# adminPassword: strongpassword
494493

495494
# Use an existing secret for the admin user.
496495
admin:
497496
## Name of the secret. Can be templated.
498-
existingSecret: "grafana-secret"
499-
userKey: "admin-user"
500-
passwordKey: "admin-password"
497+
existingSecret: ""
498+
userKey: admin-user
499+
passwordKey: admin-password
501500

502501
## Define command to be executed at startup by grafana container
503502
## Needed if using `vault-env` to manage secrets (ref: https://banzaicloud.com/blog/inject-secrets-into-pods-vault/)
@@ -887,8 +886,7 @@ grafana.ini:
887886
grafana_net:
888887
url: https://grafana.net
889888
server:
890-
domain: localhost
891-
root_url: http://localhost:3000
889+
domain: "{{ if (and .Values.ingress.enabled .Values.ingress.hosts) }}{{ tpl (.Values.ingress.hosts | first) . }}{{ else }}''{{ end }}"
892890
## grafana Authentication can be enabled with the following values on grafana.ini
893891
# server:
894892
# The full public facing url you use in browser, used for redirects and emails
@@ -1390,7 +1388,7 @@ sidecar:
13901388

13911389
## Override the deployment namespace
13921390
##
1393-
namespaceOverride: "observability"
1391+
namespaceOverride: ""
13941392

13951393
## Number of old ReplicaSets to retain
13961394
##

helm/loki/values.yaml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
test_pod:
2+
enabled: true
3+
image: bats/bats:1.8.2
4+
pullPolicy: IfNotPresent
5+
6+
loki:
7+
enabled: true
8+
isDefault: true
9+
url: http://{{(include "loki.serviceName" .)}}:{{ .Values.loki.service.port }}
10+
readinessProbe:
11+
httpGet:
12+
path: /ready
13+
port: http-metrics
14+
initialDelaySeconds: 45
15+
livenessProbe:
16+
httpGet:
17+
path: /ready
18+
port: http-metrics
19+
initialDelaySeconds: 45
20+
datasource:
21+
jsonData: "{}"
22+
uid: ""
23+
24+
25+
promtail:
26+
enabled: false
27+
config:
28+
logLevel: info
29+
serverPort: 3101
30+
clients:
31+
- url: http://{{ .Release.Name }}:3100/loki/api/v1/push
32+
33+
fluent-bit:
34+
enabled: false
35+
36+
grafana:
37+
enabled: false
38+
sidecar:
39+
datasources:
40+
label: ""
41+
labelValue: ""
42+
enabled: true
43+
maxLines: 1000
44+
image:
45+
tag: 10.3.3
46+
47+
prometheus:
48+
enabled: false
49+
isDefault: false
50+
url: http://{{ include "prometheus.fullname" .}}:{{ .Values.prometheus.server.service.servicePort }}{{ .Values.prometheus.server.prefixURL }}
51+
datasource:
52+
jsonData: "{}"
53+
54+
filebeat:
55+
enabled: false
56+
filebeatConfig:
57+
filebeat.yml: |
58+
# logging.level: debug
59+
filebeat.inputs:
60+
- type: container
61+
paths:
62+
- /var/log/containers/*.log
63+
processors:
64+
- add_kubernetes_metadata:
65+
host: ${NODE_NAME}
66+
matchers:
67+
- logs_path:
68+
logs_path: "/var/log/containers/"
69+
output.logstash:
70+
hosts: ["logstash-loki:5044"]
71+
72+
logstash:
73+
enabled: false
74+
image: grafana/logstash-output-loki
75+
imageTag: 1.0.1
76+
filters:
77+
main: |-
78+
filter {
79+
if [kubernetes] {
80+
mutate {
81+
add_field => {
82+
"container_name" => "%{[kubernetes][container][name]}"
83+
"namespace" => "%{[kubernetes][namespace]}"
84+
"pod" => "%{[kubernetes][pod][name]}"
85+
}
86+
replace => { "host" => "%{[kubernetes][node][name]}"}
87+
}
88+
}
89+
mutate {
90+
remove_field => ["tags"]
91+
}
92+
}
93+
outputs:
94+
main: |-
95+
output {
96+
loki {
97+
url => "http://loki:3100/loki/api/v1/push"
98+
#username => "test"
99+
#password => "test"
100+
}
101+
# stdout { codec => rubydebug }
102+
}
103+
104+
# proxy is currently only used by loki test pod
105+
# Note: If http_proxy/https_proxy are set, then no_proxy should include the
106+
# loki service name, so that tests are able to communicate with the loki
107+
# service.
108+
proxy:
109+
http_proxy: ""
110+
https_proxy: ""
111+
no_proxy: ""

0 commit comments

Comments
 (0)