-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pete Wall <[email protected]>
- Loading branch information
Showing
10 changed files
with
212 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
charts/k8s-monitoring/tests/integration/auth/configs/loki.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
deploymentMode: SingleBinary | ||
loki: | ||
commonConfig: | ||
replication_factor: 1 | ||
storage: | ||
type: 'filesystem' | ||
schemaConfig: | ||
configs: | ||
- from: "2024-01-01" | ||
store: tsdb | ||
index: | ||
prefix: loki_index_ | ||
period: 24h | ||
object_store: filesystem # we're storing on filesystem so there's no real persistence here. | ||
schema: v13 | ||
singleBinary: | ||
replicas: 1 | ||
read: | ||
replicas: 0 | ||
backend: | ||
replicas: 0 | ||
write: | ||
replicas: 0 | ||
|
||
chunksCache: | ||
enabled: false | ||
resultsCache: | ||
enabled: false | ||
lokiCanary: | ||
enabled: false | ||
test: | ||
enabled: false |
42 changes: 42 additions & 0 deletions
42
charts/k8s-monitoring/tests/integration/auth/configs/nginx-auth-gateway.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
service: | ||
type: ClusterIP | ||
serverBlock: |- | ||
server { | ||
listen 0.0.0.0:8080; | ||
location /metrics/basic/ { | ||
auth_basic "Prometheus Basic Auth"; | ||
auth_basic_user_file /etc/nginx/conf/htpasswd; | ||
proxy_pass http://prometheus-server.prometheus.svc:9090/; | ||
} | ||
location /logs/basic/ { | ||
auth_basic "Loki Basic Auth"; | ||
auth_basic_user_file /etc/nginx/conf/htpasswd; | ||
proxy_pass http://loki.loki.svc:3100/; | ||
} | ||
Check failure on line 19 in charts/k8s-monitoring/tests/integration/auth/configs/nginx-auth-gateway.yaml GitHub Actions / runner / yamllint
|
||
location /metrics/bearer/ { | ||
if ($http_authorization != "Bearer my-bearer-token") { | ||
return 401; | ||
} | ||
proxy_pass http://prometheus-server.prometheus.svc:9090/; | ||
} | ||
location /logs/bearer/ { | ||
if ($http_authorization != "Bearer my-bearer-token") { | ||
return 401; | ||
} | ||
proxy_pass http://loki.loki.svc:3100/; | ||
} | ||
} | ||
extraVolumes: | ||
- name: passwords-file | ||
secret: | ||
secretName: passwords | ||
extraVolumeMounts: | ||
- name: passwords-file | ||
mountPath: /etc/nginx/conf/htpasswd | ||
subPath: htpasswd |
21 changes: 0 additions & 21 deletions
21
charts/k8s-monitoring/tests/integration/auth/configs/nginx-basic-auth.yaml
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
charts/k8s-monitoring/tests/integration/auth/configs/nginx-bearer-token.yaml
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
charts/k8s-monitoring/tests/integration/auth/configs/passwords.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters