372a1824bf
Post http-log to /workforce instead of /logs. Fluent Bit's http input derives the record tag from the request URI, so the path is what identifies this domain in the collector and becomes the Loki label domain=workforce. The collector keeps writing every domain to the on-disk audit trail as well, so this is reversible by restoring the previous path. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
|
kind: Kustomization
|
|
metadata:
|
|
name: workforce-dev-api
|
|
namespace: workforce
|
|
spec:
|
|
interval: 10m
|
|
sourceRef:
|
|
kind: GitRepository
|
|
name: workforce-api-dev
|
|
path: ./kong
|
|
prune: true
|
|
dependsOn:
|
|
- name: workforce-dev-api-gateway
|
|
namespace: flux-system
|
|
postBuild:
|
|
substitute:
|
|
NAME: workforce-dev
|
|
NAMESPACE: workforce
|
|
CONTROL_PLANE_REF_NAME: workforce-dev-6cq27
|
|
BACKEND_HOST: classic-models-api.classic-models.svc.cluster.local
|
|
OIDC_ISSUER: https://keycloak.sttlab.local/realms/classic-models
|
|
API_AUDIENCE: '["workforce-api"]'
|
|
BACKEND_AUDIENCE: '["classic-models-api"]'
|
|
BACKEND_SCOPES: '[]'
|
|
API_RATE_LIMIT_MINUTE: "60"
|
|
# The URI path is the collector's routing key: Fluent Bit tags the
|
|
# record `workforce` and turns that into the Loki label domain=workforce.
|
|
AUDIT_LOG_ENDPOINT: http://audit-log-collector.observability.svc.cluster.local/workforce
|
|
REST_HOSTNAME: workforce-dev.sttlab.local
|
|
TOKEN_EXCHANGE_CLIENT_ID: kong-token-exchange-broker
|
|
substituteFrom:
|
|
- kind: Secret
|
|
name: workforce-token-exchange-broker
|