apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: aks-periscope
  labels:
    app: aks-periscope
spec:
  selector:
    matchLabels:
      app: aks-periscope
  template:
    metadata:
      labels:
        app: aks-periscope
    spec:
      serviceAccountName: aks-periscope-service-account
      hostPID: true
      nodeSelector:
        beta.kubernetes.io/os: linux
      containers:
      - name: aks-periscope
        image: mcr.microsoft.com/aks/periscope
        securityContext:
          privileged: true
        imagePullPolicy: Always
        env: []
        envFrom:
        - configMapRef:
            name: containerlogs-config
        - configMapRef:
            name: kubeobjects-config
        - configMapRef:
            name: nodelogs-config
        volumeMounts:
        - name: varlog
          mountPath: /var/log
        - name: resolvlog
          mountPath: /run/systemd/resolve
        - name: etcvmlog
          mountPath: /etchostlogs
        resources:
          requests:
            memory: "500Mi"
            cpu: "250m"
          limits:
            memory: "2000Mi"
            cpu: "1000m"
      volumes:
      - name: varlog
        hostPath:
          path: /var/log
      - name: resolvlog
        hostPath:
          path: /run/systemd/resolve
      - name: etcvmlog
        hostPath:
          path: /etc
