-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
CHSRC is managing pod-logging via annotations at pod-level. This means that our pods need the following annotations:
co.elastic.logs/processors.10.add_fields.target: "data_stream"
co.elastic.logs/processors.10.add_fields.fields.namespace: "gornergrat" # or gornergrat-tds
For most pods, we use AnnotationsTransformer, which works for almost each service (see below):
apiVersion: builtin
kind: AnnotationsTransformer
metadata:
name: pod-logging
annotations:
co.elastic.logs/processors.10.add_fields.target: "data_stream"
co.elastic.logs/processors.10.add_fields.fields.namespace: "gornergrat-tds"
fieldSpecs:
- path: spec/template/metadata/annotations
kind: Deployment
create: true
- path: spec/template/metadata/annotations
kind: StatefulSet
create: true
- path: spec/template/metadata/annotations
kind: ReplicaSet
create: true
- path: spec/template/metadata/annotations
kind: DaemonSet
create: true
- path: spec/template/metadata/annotations
kind: Job
create: true
- path: spec/jobTemplate/spec/template/metadata/annotations
kind: CronJob
create: true
However, for spawned pods like carta or notebook, this doesn't seem work. AFAIK what's needed is a helm-feature, which supports this for each skaha spawned/launched pods.
This is a feature (helm-only) request to add pod annotations support for SKAHA spawned/launched pods.
Cheers,
Lukas
Metadata
Metadata
Assignees
Labels
No labels