sigs.k8s.io/cluster-api-provider-azure@v1.17.0/templates/addons/windows/containerd-logging/containerd-logger.yaml (about) 1 apiVersion: apps/v1 2 kind: DaemonSet 3 metadata: 4 labels: 5 k8s-app: containerd-logger 6 name: containerd-logger 7 namespace: kube-system 8 spec: 9 selector: 10 matchLabels: 11 k8s-app: containerd-logger 12 template: 13 metadata: 14 labels: 15 k8s-app: containerd-logger 16 spec: 17 securityContext: 18 windowsOptions: 19 hostProcess: true 20 runAsUserName: "NT AUTHORITY\\system" 21 hostNetwork: true 22 containers: 23 - image: ghcr.io/kubernetes-sigs/sig-windows/eventflow-logger:v0.1.0 24 args: [ "config.json" ] 25 name: containerd-logger 26 imagePullPolicy: Always 27 volumeMounts: 28 - name: containerd-logger-config 29 mountPath: /config.json 30 subPath: config.json 31 nodeSelector: 32 kubernetes.io/os: windows 33 tolerations: 34 - key: CriticalAddonsOnly 35 operator: Exists 36 - operator: Exists 37 volumes: 38 - configMap: 39 name: containerd-logger-config 40 name: containerd-logger-config 41 updateStrategy: 42 type: RollingUpdate 43 --- 44 kind: ConfigMap 45 apiVersion: v1 46 metadata: 47 name: containerd-logger-config 48 namespace: kube-system 49 data: 50 config.json: | 51 { 52 "inputs": [ 53 { 54 "type": "ETW", 55 "sessionNamePrefix": "containerd", 56 "cleanupOldSessions": true, 57 "reuseExistingSession": true, 58 "providers": [ 59 { 60 "providerName": "Microsoft.Virtualization.RunHCS", 61 "providerGuid": "0B52781F-B24D-5685-DDF6-69830ED40EC3", 62 "level": "Verbose" 63 }, 64 { 65 "providerName": "ContainerD", 66 "providerGuid": "2acb92c0-eb9b-571a-69cf-8f3410f383ad", 67 "level": "Verbose" 68 } 69 ] 70 } 71 ], 72 "filters": [ 73 { 74 "type": "drop", 75 "include": "ProviderName == Microsoft.Virtualization.RunHCS && name == Stats && hasnoproperty error" 76 }, 77 { 78 "type": "drop", 79 "include": "ProviderName == Microsoft.Virtualization.RunHCS && name == hcsshim::LayerID && hasnoproperty error" 80 }, 81 { 82 "type": "drop", 83 "include": "ProviderName == Microsoft.Virtualization.RunHCS && name == hcsshim::NameToGuid && hasnoproperty error" 84 }, 85 { 86 "type": "drop", 87 "include": "ProviderName == Microsoft.Virtualization.RunHCS && name == containerd.task.v2.Task.Stats && hasnoproperty error" 88 }, 89 { 90 "type": "drop", 91 "include": "ProviderName == Microsoft.Virtualization.RunHCS && name == containerd.task.v2.Task.State && hasnoproperty error" 92 }, 93 { 94 "type": "drop", 95 "include": "ProviderName == Microsoft.Virtualization.RunHCS && name == HcsGetProcessProperties && hasnoproperty error" 96 }, 97 { 98 "type": "drop", 99 "include": "ProviderName == Microsoft.Virtualization.RunHCS && name == HcsGetComputeSystemProperties && hasnoproperty error" 100 } 101 ], 102 "outputs": [ 103 { 104 "type": "StdOutput" 105 } 106 ], 107 "schemaVersion": "2016-08-11" 108 }