Skip to content

Commit e29514c

Browse files
authored
Merge pull request #946 from traPtitech/chore/update-dev-environment
chore(dev-env): update dependencies / configs
2 parents a393225 + c1b5e24 commit e29514c

File tree

8 files changed

+77
-67
lines changed

8 files changed

+77
-67
lines changed

.local-dev/config/loki.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ auth_enabled: false
33
server:
44
http_listen_port: 3100
55

6+
common:
7+
path_prefix: /var/lib/loki
8+
69
ingester:
710
lifecycler:
811
address: 127.0.0.1
@@ -19,22 +22,19 @@ ingester:
1922

2023
schema_config:
2124
configs:
22-
- from: 2020-11-18
23-
store: boltdb
25+
- from: "2024-04-01"
2426
object_store: filesystem
25-
schema: v12
27+
store: tsdb
28+
schema: v13
2629
index:
27-
prefix: loki_index_
28-
period: 168h
30+
prefix: index_
31+
period: 24h
2932

3033
storage_config:
31-
boltdb:
32-
directory: /var/lib/loki/index
3334
filesystem:
3435
directory: /var/lib/loki/chunks
3536

3637
limits_config:
37-
enforce_metric_name: false
3838
reject_old_samples: true
3939
reject_old_samples_max_age: 168h
4040

.local-dev/config/ns-auth.ini

Lines changed: 0 additions & 25 deletions
This file was deleted.

.local-dev/config/ns-auth.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
secret: A0iQP-1A_RLBqaTOfLs6fhUzNWO29bIB
2+
insecure-cookie: true
3+
log-level: info
4+
5+
auth-host: auth.local.trapti.tech
6+
cookie-domains:
7+
- local.trapti.tech
8+
cookieName: "_forward_auth"
9+
info-fields:
10+
- name
11+
12+
provider: generic-oauth
13+
14+
providers:
15+
generic-oauth:
16+
auth-url: https://q.toki317.dev/api/v3/oauth2/authorize
17+
token-url: https://q.toki317.dev/api/v3/oauth2/token
18+
user-url: https://q.toki317.dev/api/v3/users/me
19+
client-id: RFOhjMbt3VsR75uaMwhWH21pUkhfE8DqVeXT
20+
client-secret: N4rzl3JlQJprKNNi2EYl2biifjKprB9HS9PO
21+
scopes:
22+
- read
23+
24+
rule:
25+
soft:
26+
action: soft-auth
27+
route-rule: Header(`X-Forward-Auth-Type`, `soft`)
28+
hard:
29+
action: auth
30+
route-rule: rule.hard.rule = Header(`X-Forward-Auth-Type`, `hard`)
31+
32+
headers:
33+
default:
34+
name: X-Showcase-User
35+
source: name

.local-manifest/auth/deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ spec:
2525

2626
containers:
2727
- name: ns-auth
28-
image: ghcr.io/traptitech/traefik-forward-auth:3.0.0
28+
image: ghcr.io/traptitech/traefik-forward-auth:3.2.1
2929
args:
30-
- --config=/config.ini
30+
- --config=/config.yaml
3131
ports:
3232
- containerPort: 4181
3333
name: http
3434
volumeMounts:
3535
- name: project
36-
subPath: .local-dev/config/ns-auth.ini
37-
mountPath: /config.ini
36+
subPath: .local-dev/config/ns-auth.yaml
37+
mountPath: /config.yaml

.local-manifest/monitor/grafana/stateful-set.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525

2626
containers:
2727
- name: grafana
28-
image: grafana/grafana:10.0.1
28+
image: grafana/grafana:11.1.3
2929
imagePullPolicy: IfNotPresent
3030
ports:
3131
- name: http

.local-manifest/monitor/loki/stateful-set.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525

2626
containers:
2727
- name: loki
28-
image: grafana/loki:2.8.0
28+
image: grafana/loki:3.1.0
2929
imagePullPolicy: IfNotPresent
3030
args:
3131
- -config.file=/etc/loki/loki.yaml

.local-manifest/monitor/victoria-metrics/stateful-set.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828

2929
containers:
3030
- name: victoria-metrics
31-
image: victoriametrics/victoria-metrics:v1.91.3
31+
image: victoriametrics/victoria-metrics:v1.102.1
3232
imagePullPolicy: IfNotPresent
3333
args:
3434
- --promscrape.config=/etc/config/prometheus.yml

compose.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -79,31 +79,31 @@ services:
7979
networks:
8080
- default
8181

82-
# Uncomment if testing gitea integration
83-
# ns-gitea-integration:
84-
# build:
85-
# context: .
86-
# target: ns-gitea-integration
87-
# image: ghcr.io/traptitech/ns-gitea-integration:main
88-
# command: --config=/config.yaml
89-
# restart: always
90-
# volumes:
91-
# - ./.local-dev/config/ns.yaml:/config.yaml
92-
# depends_on:
93-
# mysql:
94-
# condition: service_healthy
95-
# ns-migrate:
96-
# condition: service_completed_successfully
97-
# networks:
98-
# - default
82+
# Uncomment if testing gitea integration
83+
# ns-gitea-integration:
84+
# build:
85+
# context: .
86+
# target: ns-gitea-integration
87+
# image: ghcr.io/traptitech/ns-gitea-integration:main
88+
# command: --config=/config.yaml
89+
# restart: always
90+
# volumes:
91+
# - ./.local-dev/config/ns.yaml:/config.yaml
92+
# depends_on:
93+
# mysql:
94+
# condition: service_healthy
95+
# ns-migrate:
96+
# condition: service_completed_successfully
97+
# networks:
98+
# - default
9999

100100
ns-auth:
101-
image: ghcr.io/traptitech/traefik-forward-auth:3.0.0
101+
image: ghcr.io/traptitech/traefik-forward-auth:3.2.1
102102
restart: always
103103
command:
104-
- --config=/config.ini
104+
- --config=/config.yaml
105105
volumes:
106-
- ./.local-dev/config/ns-auth.ini:/config.ini
106+
- ./.local-dev/config/ns-auth.yaml:/config.yaml
107107
labels:
108108
- "traefik.enable=true"
109109
- "traefik.http.routers.ns_auth.rule=Host(`auth.local.trapti.tech`)"
@@ -323,7 +323,7 @@ services:
323323
- default
324324

325325
grafana:
326-
image: grafana/grafana:10.0.1
326+
image: grafana/grafana:11.1.3
327327
restart: always
328328
labels:
329329
- "traefik.enable=true"
@@ -336,7 +336,7 @@ services:
336336
- default
337337

338338
loki:
339-
image: grafana/loki:2.8.0
339+
image: grafana/loki:3.1.0
340340
command: "-config.file /etc/loki/loki.yaml"
341341
restart: always
342342
labels:
@@ -351,7 +351,7 @@ services:
351351
- default
352352

353353
promtail:
354-
image: grafana/promtail:2.8.0
354+
image: grafana/promtail:3.1.0
355355
command: "-config.file /etc/promtail/promtail.yaml"
356356
restart: always
357357
volumes:
@@ -362,7 +362,7 @@ services:
362362
- default
363363

364364
victoria-metrics:
365-
image: victoriametrics/victoria-metrics:v1.91.3
365+
image: victoriametrics/victoria-metrics:v1.102.1
366366
command:
367367
- --promscrape.config=/etc/config/prometheus.yml
368368
- --promscrape.maxScrapeSize=256MB
@@ -376,7 +376,7 @@ services:
376376
- ./.local-dev/victoria-metrics:/data
377377

378378
cadvisor:
379-
image: gcr.io/cadvisor/cadvisor:v0.47.2
379+
image: gcr.io/cadvisor/cadvisor:v0.50.0
380380
privileged: true
381381
devices:
382382
- /dev/kmsg
@@ -390,7 +390,7 @@ services:
390390
- /dev/disk/:/dev/disk:ro
391391

392392
traefik:
393-
image: traefik:3.0.0
393+
image: traefik:3.1
394394
restart: always
395395
command:
396396
- --api.insecure=true
@@ -431,7 +431,7 @@ services:
431431
- apps
432432

433433
networks:
434-
default: { }
434+
default: {}
435435
apps:
436436
name: neoshowcase_apps
437437
external: true

0 commit comments

Comments
 (0)