k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/logexporter/cluster/logexporter-pod.yaml (about)

     1  # Template pod config for running the log exporter pod on a kubernetes node.
     2  # Creates everything within 'logexporter' namespace.
     3  
     4  apiVersion: v1
     5  kind: Namespace
     6  metadata:
     7      name: logexporter
     8  ---
     9  apiVersion: v1
    10  kind: Secret
    11  metadata:
    12    name: google-service-account
    13    namespace: logexporter
    14  type: Opaque
    15  data:
    16    service-account.json: {{.ServiceAccountCredentials}}
    17  ---
    18  apiVersion: v1
    19  kind: Pod
    20  metadata:
    21    name: logexporter
    22    namespace: logexporter
    23  spec:
    24    containers:
    25    - name: logexporter-test
    26      image: gcr.io/k8s-testimages/logexporter:v0.1.6
    27      env:
    28      - name: NODE_NAME
    29        valueFrom:
    30          fieldRef:
    31            fieldPath: spec.nodeName
    32      command:
    33      - logexporter
    34      - --node-name=$(NODE_NAME)
    35      - --cloud-provider={{.CloudProvider}}
    36      - --gcs-path={{.GCSPath}}
    37      - --gcloud-auth-file-path=/etc/service-account/service-account.json
    38      - --enable-hollow-node-logs={{.EnableHollowNodeLogs}}
    39      - --journal-path=/var/log/journal
    40      - --sleep-duration=24h
    41      - --alsologtostderr
    42      volumeMounts:
    43      - mountPath: /etc/service-account
    44        name: service
    45        readOnly: true
    46      - mountPath: /var/log
    47        name: varlog
    48        readOnly: true
    49      - mountPath: /workspace/etc
    50        name: hostetc
    51        readOnly: true
    52      resources:
    53        requests:
    54          cpu: 10m
    55          memory: 10Mi
    56    volumes:
    57    - name: service
    58      secret:
    59        secretName: google-service-account
    60    - name: varlog
    61      hostPath:
    62        path: /var/log
    63    - name: hostetc
    64      hostPath:
    65        path: /etc