github.com/cilium/cilium@v1.16.2/test/k8s/manifests/log-gatherer.yaml (about)

     1  # ServiceAccount=cilium, which log-gatherer depends on, is created by
     2  # ciliumInstallHelm(). However, ciliumInstallHelm() depends on log-gatherer to
     3  # dynamically determine private / public ifaces. So, create it here as well.
     4  apiVersion: v1
     5  kind: ServiceAccount
     6  metadata:
     7    name: cilium-log-gatherer
     8  ---
     9  apiVersion: apps/v1
    10  kind: DaemonSet
    11  metadata:
    12    name: log-gatherer
    13    labels:
    14      k8s-app: cilium-test-logs
    15  spec:
    16    selector:
    17      matchLabels:
    18        k8s-app: cilium-test-logs
    19        kubernetes.io/cluster-service: "true"
    20    template:
    21      metadata:
    22        labels:
    23          k8s-app: cilium-test-logs
    24          kubernetes.io/cluster-service: "true"
    25      spec:
    26        containers:
    27        - args:
    28          - "10000"
    29          command:
    30          - sleep
    31          image: quay.io/cilium/log-gatherer:v1.2
    32          imagePullPolicy: IfNotPresent
    33          name: log-gatherer
    34          securityContext:
    35            privileged: true
    36          volumeMounts:
    37          - mountPath: /sys/fs/bpf
    38            name: bpf-maps
    39          - mountPath: /var/log/journal
    40            name: journald
    41        dnsPolicy: ClusterFirstWithHostNet
    42        hostNetwork: true
    43        hostPID: true
    44        priorityClassName: system-node-critical
    45        restartPolicy: Always
    46        serviceAccount: cilium-log-gatherer
    47        serviceAccountName: cilium-log-gatherer
    48        terminationGracePeriodSeconds: 1
    49        tolerations:
    50        - operator: Exists
    51        volumes:
    52        - hostPath:
    53            path: /sys/fs/bpf
    54            type: DirectoryOrCreate
    55          name: bpf-maps
    56        - hostPath:
    57            path: /var/log/journal
    58            type: DirectoryOrCreate
    59          name: journald