Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cluster/pulumi/infra/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export const InfraConfigSchema = z.object({
}),
istio: z.object({
enableIngressAccessLogging: z.boolean(),
enableClusterAccessLogging: z.boolean().default(false),
}),
extraCustomResources: z.object({}).catchall(z.any()).default({}),
}),
Expand Down
4 changes: 1 addition & 3 deletions cluster/pulumi/infra/src/istio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ function configureIstiod(
},
// https://istio.io/latest/docs/reference/config/istio.mesh.v1alpha1/
meshConfig: {
// Uncomment to turn on access logging across the entire cluster (we disabled it by default to reduce cost):
// accessLogFile: '/dev/stdout',
// taken from https://github.com/istio/istio/issues/37682
accessLogFile: '',
accessLogFile: infraConfig.istio.enableClusterAccessLogging ? '/dev/stdout' : '',
accessLogEncoding: 'JSON',
// https://istio.io/latest/docs/ops/integrations/prometheus/#option-1-metrics-merging disable as we don't use annotations
enablePrometheusMerge: false,
Expand Down
Loading