github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/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.3
    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      - --sleep-duration=24h
    40      - --alsologtostderr
    41      volumeMounts:
    42      - mountPath: /etc/service-account
    43        name: service
    44        readOnly: true
    45      - mountPath: /var/log
    46        name: varlog
    47        readOnly: true
    48      - mountPath: /workspace/etc
    49        name: hostetc
    50        readOnly: true
    51      resources:
    52        requests:
    53          cpu: 10m
    54          memory: 10Mi
    55    volumes:
    56    - name: service
    57      secret:
    58        secretName: google-service-account
    59    - name: varlog
    60      hostPath:
    61        path: /var/log
    62    - name: hostetc
    63      hostPath:
    64        path: /etc