Last active
December 17, 2021 19:15
-
-
Save jsturtevant/98aefdc46113f7be8b5fa7a97d055146 to your computer and use it in GitHub Desktop.
ctrdlogger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
labels: | |
k8s-app: containerd-logger | |
name: containerd-logger | |
namespace: kube-system | |
spec: | |
selector: | |
matchLabels: | |
k8s-app: containerd-logger | |
template: | |
metadata: | |
labels: | |
k8s-app: containerd-logger | |
spec: | |
securityContext: | |
windowsOptions: | |
hostProcess: true | |
runAsUserName: "NT AUTHORITY\\system" | |
hostNetwork: true | |
containers: | |
- image: jsturtevant/containerd-logger:latest | |
args: [ "config.json" ] | |
name: containerd-logger | |
imagePullPolicy: Always | |
volumeMounts: | |
- name: containerd-logger-config | |
mountPath: /config.json | |
subPath: config.json | |
nodeSelector: | |
kubernetes.io/os: windows | |
tolerations: | |
- key: CriticalAddonsOnly | |
operator: Exists | |
- operator: Exists | |
volumes: | |
- configMap: | |
name: containerd-logger-config | |
name: containerd-logger-config | |
updateStrategy: | |
type: RollingUpdate | |
--- | |
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: containerd-logger-config | |
namespace: kube-system | |
data: | |
config.json: | | |
{ | |
"inputs": [ | |
{ | |
"type": "ETW", | |
"sessionNamePrefix": "containerd", | |
"cleanupOldSessions": true, | |
"reuseExistingSession": true, | |
"providers": [ | |
{ | |
"providerName": "Microsoft.Virtualization.RunHCS", | |
"providerGuid": "0B52781F-B24D-5685-DDF6-69830ED40EC3", | |
"level": "Verbose" | |
}, | |
{ | |
"providerName": "ContainerD", | |
"providerGuid": "2acb92c0-eb9b-571a-69cf-8f3410f383ad", | |
"level": "Verbose" | |
} | |
] | |
} | |
], | |
"outputs": [ | |
{ | |
"type": "StdOutput" | |
} | |
], | |
"schemaVersion": "2016-08-11" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment