Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OomKilled when starting kyverno on existing clusters #1540

Closed
megakid opened this issue Feb 4, 2021 · 45 comments
Closed

OomKilled when starting kyverno on existing clusters #1540

megakid opened this issue Feb 4, 2021 · 45 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@megakid
Copy link

megakid commented Feb 4, 2021

Software version numbers
State the version numbers of applications involved in the bug.

  • Kubernetes version: v1.19.6 and v1.19.4
  • Kyverno version: 1.3.2-rc1

Describe the bug
OomKilled on startup of main kyverno pod. We tried increasing the memory limit to 2GiB but no change. The only workaround for us was to introduce an environment variable GOGC = 25.

To Reproduce
Steps to reproduce the behavior:

  1. kubectl apply -k https://raw.githubusercontent.com/kyverno/kyverno/v1.3.2-rc1/definitions/release/install.yaml
  2. See kyverno Deployment/Pod being killed due to OomKilled, it then enters a CrashLoopBackOff as expected but never starts successfully. This is the main container, not the kyverno-pre init container.

We've tried this on 2 of our internal clusters, dev and uat, both have plenty of nodes with resources spare - dev runs 175 pods and uat runs 215 pods so pretty similar in size.

The only way we can get kyverno to start is to add a env var GOGC = "25" (default is "100") which causes the GC to be triggered more often inside the pod.

Expected behavior
Does not get OomKilled

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

Logs from pod

Thu, Feb 4 2021 1:03:28 pm | I0204 13:03:28.299569 1 version.go:17] "msg"="Kyverno" "Version"="v1.3.2-rc1"
Thu, Feb 4 2021 1:03:28 pm | I0204 13:03:28.299634 1 version.go:18] "msg"="Kyverno" "BuildHash"="(HEAD/7d8c404922854790f5b5d2dce9a7736c896e7bf7"
Thu, Feb 4 2021 1:03:28 pm | I0204 13:03:28.299643 1 version.go:19] "msg"="Kyverno" "BuildTime"="2021-01-25_05:09:39AM"
Thu, Feb 4 2021 1:03:28 pm | I0204 13:03:28.300728 1 config.go:92] CreateClientConfig "msg"="Using in-cluster configuration"
Thu, Feb 4 2021 1:03:28 pm | I0204 13:03:28.310422 1 reflector.go:175] Starting reflector *unstructured.Unstructured (0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:28 pm | E0204 13:03:28.340333 1 memcache.go:206] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.401743 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.402158 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1, Resource=clusterpolicies"
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.404770 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.405203 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=clusterpolicyreports"
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.407828 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.408146 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=policyreports"
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.410834 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.411149 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=clusterreportchangerequests"
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.413860 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.415334 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=reportchangerequests"
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.417237 1 dynamicconfig.go:117] ConfigData "msg"="init configuration from commandline arguments for filterK8sResources"
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.418311 1 dynamicconfig.go:257] ConfigData "msg"="Init resource filters" "filters"=[{"Kind":"Event","Namespace":"*","Name":"*"},{"Kind":"*","Namespace":"kube-system","Name":"*"},{"Kind":"*","Namespace":"kube-public","Name":"*"},{"Kind":"*","Namespace":"kube-node-lease","Name":"*"},{"Kind":"Node","Namespace":"*","Name":"*"},{"Kind":"APIService","Namespace":"*","Name":"*"},{"Kind":"TokenReview","Namespace":"*","Name":"*"},{"Kind":"SubjectAccessReview","Namespace":"*","Name":"*"},{"Kind":"*","Namespace":"kyverno","Name":"*"},{"Kind":"Binding","Namespace":"*","Name":"*"},{"Kind":"ReplicaSet","Namespace":"*","Name":"*"},{"Kind":"ReportChangeRequest","Namespace":"*","Name":"*"},{"Kind":"ClusterReportChangeRequest","Namespace":"*","Name":"*"},{"Kind":"PolicyReport","Namespace":"*","Name":"*"},{"Kind":"ClusterPolicyReport","Namespace":"*","Name":"*"}]
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.418328 1 dynamicconfig.go:268] ConfigData "msg"="Init resource " "excludeRoles"=""
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.428442 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.432418 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | I0204 13:03:30.434018 1 certificates.go:26] dclient "msg"="Building key/certificate pair for TLS"
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.825099 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:30 pm | E0204 13:03:30.856117 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:32 pm | I0204 13:03:32.930308 1 certificates.go:171] dclient/CAcert "msg"="secret updated" "name"="kyverno-svc.kyverno.svc.kyverno-tls-ca" "namespace"="kyverno"
Thu, Feb 4 2021 1:03:33 pm | E0204 13:03:33.115251 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:33 pm | E0204 13:03:33.124867 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.169461 1 certificates.go:219] dclient/WriteTLSPair "msg"="secret updated" "name"="kyverno-svc.kyverno.svc.kyverno-tls-pair" "namespace"="kyverno"
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.169488 1 registration.go:272] Register "msg"="deleting all webhook configurations"
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.172939 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.176956 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.179308 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.182135 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.185069 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.199255 1 registration.go:337] Register "msg"="webhook configuration deleted" "kind"="ValidatingWebhookConfiguration" "name"="kyverno-policy-validating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.199862 1 resource.go:85] Register "msg"="webhook configuration deleted" "kind"="MutatingWebhookConfiguration" "name"="kyverno-resource-mutating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.199993 1 registration.go:306] Register "msg"="webhook configuration deleted" "kind"="MutatingWebhookConfiguration" "name"="kyverno-policy-mutating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.203319 1 registration.go:416] Register "msg"="webhook configuration deleted" "kind"="MutatingWebhookConfiguration" "name"="kyverno-verify-mutating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.205087 1 resource.go:160] Register "msg"="webhook configuration deleted" "kind"="ValidatingWebhookConfiguration" "name"="kyverno-resource-validating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.207453 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.216088 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.231271 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.243634 1 registration.go:266] Register "msg"="created webhook" "kind"="MutatingWebhookConfiguration" "name"="kyverno-verify-mutating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.246236 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.255549 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.267649 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.392722 1 registration.go:211] Register "msg"="created webhook" "kind"="ValidatingWebhookConfiguration" "name"="kyverno-policy-validating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.396993 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.589066 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.793523 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:35 pm | I0204 13:03:35.989890 1 registration.go:239] Register "msg"="created webhook" "kind"="MutatingWebhookConfiguration" "name"="kyverno-policy-mutating-webhook-cfg"
Thu, Feb 4 2021 1:03:35 pm | E0204 13:03:35.994106 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:36 pm | E0204 13:03:36.188511 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:36 pm | E0204 13:03:36.390931 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:36 pm | I0204 13:03:36.590675 1 registration.go:182] Register "msg"="created webhook" "kind"="ValidatingWebhookConfiguration" "name"="kyverno-resource-validating-webhook-cfg"
Thu, Feb 4 2021 1:03:36 pm | E0204 13:03:36.593262 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:36 pm | E0204 13:03:36.788838 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:36 pm | E0204 13:03:36.997361 1 memcache.go:111] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.188816 1 registration.go:152] Register "msg"="created webhook" "kind"="MutatingWebhookConfiguration" "name"="kyverno-resource-mutating-webhook-cfg"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574592 1 reflector.go:175] Starting reflector *v1alpha1.ReportChangeRequest (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574628 1 reflector.go:175] Starting reflector *v1.ClusterRoleBinding (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574636 1 reflector.go:175] Starting reflector *v1alpha1.ClusterReportChangeRequest (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574644 1 reportrequest.go:183] ReportChangeRequestGenerator "msg"="start"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574669 1 reportcontroller.go:175] PolicyReportGenerator "msg"="start"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574596 1 validate_controller.go:344] PolicyController "msg"="starting"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574781 1 reflector.go:175] Starting reflector *v1.RoleBinding (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574809 1 controller.go:221] GenerateCleanUpController "msg"="starting"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574826 1 controller.go:108] EventGenerator "msg"="start"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574838 1 generate_controller.go:259] GenerateController "msg"="starting"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574866 1 informer.go:109] PolicyCacheController "msg"="starting"
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574887 1 reflector.go:175] Starting reflector *v1alpha1.ClusterPolicyReport (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574896 1 reflector.go:175] Starting reflector *v1.Namespace (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.575108 1 reflector.go:175] Starting reflector *v1alpha1.PolicyReport (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.575202 1 reflector.go:175] Starting reflector *v1.ConfigMap (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.575239 1 reflector.go:175] Starting reflector *v1.GenerateRequest (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.575357 1 reflector.go:175] Starting reflector *v1.ClusterPolicy (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.575454 1 reflector.go:175] Starting reflector *v1.Policy (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.574632 1 reflector.go:175] Starting reflector *unstructured.Unstructured (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.576083 1 reflector.go:175] Starting reflector *v1.Role (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:37 pm | I0204 13:03:37.576305 1 reflector.go:175] Starting reflector *v1.ClusterRole (15m0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
Thu, Feb 4 2021 1:03:38 pm | I0204 13:03:38.397556 1 server.go:495] WebhookServer "msg"="starting service"


@megakid megakid added the bug Something isn't working label Feb 4, 2021
@megakid megakid changed the title OomKilled when starting kyverno on OomKilled when starting kyverno on existing clusters Feb 4, 2021
@realshuting
Copy link
Member

@JimBugwadia Could this error results in oom, as the client cannot connect to the server?

Thu, Feb 4 2021 1:03:28 pm | E0204 13:03:28.340333 1 memcache.go:206] couldn't get resource list for custom.metrics.k8s.io/v1beta1: the server is currently unable to handle the request

We had a few issues reported for the metric server, we fixed those by explicitly ignoring these errors, not sure why we are still seeing this.

@JimBugwadia
Copy link
Member

JimBugwadia commented Feb 5, 2021

Yes, that is suspicious. The prior issues were calls were causing the init container to exit:

#1490
#1324

@megakid - can you try removing the invalid api service registration entry as described here:

helm/helm#6361 (comment)

@megakid
Copy link
Author

megakid commented Feb 5, 2021

Hi - thanks for the prompt responses. A quick update: the GOGC env var definitely helped things but it doesn't guarantee a successful start up.

I will try your suggestion next week @JimBugwadia and report back.

@megakid
Copy link
Author

megakid commented Feb 11, 2021

No dice.

I0211 21:13:12.027455 1 version.go:17] "msg"="Kyverno" "Version"="v1.3.2-rc1"
I0211 21:13:12.027489 1 version.go:18] "msg"="Kyverno" "BuildHash"="(HEAD/7d8c404922854790f5b5d2dce9a7736c896e7bf7"
I0211 21:13:12.027496 1 version.go:19] "msg"="Kyverno" "BuildTime"="2021-01-25_05:09:39AM"
I0211 21:13:12.027627 1 config.go:92] CreateClientConfig "msg"="Using in-cluster configuration"
I0211 21:13:12.028730 1 reflector.go:175] Starting reflector *unstructured.Unstructured (0s) from pkg/mod/k8s.io/client-go@v0.18.12/tools/cache/reflector.go:125
I0211 21:13:14.090231 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1, Resource=clusterpolicies"
I0211 21:13:14.090687 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=clusterpolicyreports"
I0211 21:13:14.091146 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=policyreports"
I0211 21:13:14.091765 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=clusterreportchangerequests"
I0211 21:13:14.092143 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=reportchangerequests"
I0211 21:13:14.092803 1 dynamicconfig.go:117] ConfigData "msg"="init configuration from commandline arguments for filterK8sResources"
I0211 21:13:14.092919 1 dynamicconfig.go:257] ConfigData "msg"="Init resource filters" "filters"=[{"Kind":"Event","Namespace":"*","Name":"*"},{"Kind":"*","Namespace":"kube-system","Name":"*"},{"Kind":"*","Namespace":"kube-public","Name":"*"},{"Kind":"*","Namespace":"kube-node-lease","Name":"*"},{"Kind":"Node","Namespace":"*","Name":"*"},{"Kind":"APIService","Namespace":"*","Name":"*"},{"Kind":"TokenReview","Namespace":"*","Name":"*"},{"Kind":"SubjectAccessReview","Namespace":"*","Name":"*"},{"Kind":"*","Namespace":"kyverno","Name":"*"},{"Kind":"Binding","Namespace":"*","Name":"*"},{"Kind":"ReplicaSet","Namespace":"*","Name":"*"},{"Kind":"ReportChangeRequest","Namespace":"*","Name":"*"},{"Kind":"ClusterReportChangeRequest","Namespace":"*","Name":"*"},{"Kind":"PolicyReport","Namespace":"*","Name":"*"},{"Kind":"ClusterPolicyReport","Namespace":"*","Name":"*"}]
I0211 21:13:14.092935 1 dynamicconfig.go:268] ConfigData "msg"="Init resource " "excludeRoles"=""
I0211 21:13:14.094797 1 certificates.go:26] dclient "msg"="Building key/certificate pair for TLS"
I0211 21:13:16.291871 1 certificates.go:171] dclient/CAcert "msg"="secret updated" "name"="kyverno-svc.kyverno.svc.kyverno-tls-ca" "namespace"="kyverno"

OomKilled again.

From kyverno-pre (successfully run)

I0211 21:10:41.545833       1 main.go:143]  "msg"="Using in-cluster configuration"  
I0211 21:10:43.677374       1 main.go:258] removeExistingWebhook "msg"="removed the resource" "kind"="ValidatingWebhookConfiguration" "name"="kyverno-resource-validating-webhook-cfg" 
I0211 21:10:43.684694       1 main.go:258] removeExistingWebhook "msg"="removed the resource" "kind"="MutatingWebhookConfiguration" "name"="kyverno-resource-mutating-webhook-cfg" 
I0211 21:10:43.702247       1 main.go:258] removeExistingWebhook "msg"="removed the resource" "kind"="ValidatingWebhookConfiguration" "name"="kyverno-policy-validating-webhook-cfg" 
I0211 21:10:43.877075       1 main.go:258] removeExistingWebhook "msg"="removed the resource" "kind"="MutatingWebhookConfiguration" "name"="kyverno-policy-mutating-webhook-cfg" 
I0211 21:10:44.661024       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-buildinfrastructure-dev"
I0211 21:10:44.858892       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-buildinfrastructure-dev"
I0211 21:10:45.064758       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-buildinfrastructure-dev"
I0211 21:10:45.461361       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-dashboards"
I0211 21:10:45.658954       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-dashboards"
I0211 21:10:45.861429       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-dashboards"
I0211 21:10:46.267432       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-logging"
I0211 21:10:46.459530       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-logging"
I0211 21:10:46.663844       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-logging"
I0211 21:10:47.062036       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-monitoring-system"
I0211 21:10:47.258668       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-monitoring-system"
I0211 21:10:47.499633       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-monitoring-system"
I0211 21:10:47.898566       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus"
I0211 21:10:48.058338       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus"
I0211 21:10:48.261075       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus"
I0211 21:10:48.661297       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-4tk2r"
I0211 21:10:48.858387       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-4tk2r"
I0211 21:10:49.062922       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-4tk2r"
I0211 21:10:49.460733       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-6m2p4"
I0211 21:10:49.658538       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-6m2p4"
I0211 21:10:49.863910       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-6m2p4"
I0211 21:10:50.060827       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-7s25w"
I0211 21:10:50.258636       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-7s25w"
I0211 21:10:50.461670       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-7s25w"
I0211 21:10:50.661529       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-8r474"
I0211 21:10:50.858259       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-8r474"
I0211 21:10:51.065177       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-8r474"
I0211 21:10:51.299936       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-925t2"
I0211 21:10:51.458670       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-925t2"
I0211 21:10:51.668646       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-925t2"
I0211 21:10:51.861363       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-bc9d2"
I0211 21:10:52.058634       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-bc9d2"
I0211 21:10:52.260970       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-bc9d2"
I0211 21:10:52.468176       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-c5r7g"
I0211 21:10:52.658739       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-c5r7g"
I0211 21:10:52.867152       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-c5r7g"
I0211 21:10:53.066885       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-gxjv7"
I0211 21:10:53.259690       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-gxjv7"
I0211 21:10:53.473374       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-gxjv7"
I0211 21:10:53.661109       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-kq4tt"
I0211 21:10:53.859227       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-kq4tt"
I0211 21:10:54.064067       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-kq4tt"
I0211 21:10:54.260860       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-pll6v"
I0211 21:10:54.458027       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-pll6v"
I0211 21:10:54.662350       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-pll6v"
I0211 21:10:54.908571       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-pzlt5"
I0211 21:10:55.058480       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-pzlt5"
I0211 21:10:55.263354       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-pzlt5"
I0211 21:10:55.461396       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-tmxhd"
I0211 21:10:55.659162       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-tmxhd"
I0211 21:10:55.862751       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-tmxhd"
I0211 21:10:56.061189       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-vs2jt"
I0211 21:10:56.258617       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-vs2jt"
I0211 21:10:56.463906       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-vs2jt"
I0211 21:10:56.665122       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-x545c"
I0211 21:10:56.859255       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-x545c"
I0211 21:10:57.064309       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-x545c"
I0211 21:10:57.262582       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-prometheus-p-x8ngc"
I0211 21:10:57.458611       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-prometheus-p-x8ngc"
I0211 21:10:57.661475       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-prometheus-p-x8ngc"
I0211 21:10:57.864734       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cattle-system"
I0211 21:10:58.058870       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cattle-system"
I0211 21:10:58.263710       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cattle-system"
I0211 21:10:58.464294       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-cert-manager"
I0211 21:10:58.658371       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-cert-manager"
I0211 21:10:58.871292       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-cert-manager"
I0211 21:10:59.066909       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-monitorz"
I0211 21:10:59.263750       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-monitorz"
I0211 21:10:59.474814       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-monitorz"
I0211 21:10:59.660725       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-abc-exporter"
I0211 21:10:59.861682       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-abc-exporter"
I0211 21:11:00.085592       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-abc-exporter"
I0211 21:11:00.261173       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-foobar"
I0211 21:11:00.468850       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-foobar"
I0211 21:11:00.662990       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-foobar"
I0211 21:11:00.858981       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-foobar-dev"
I0211 21:11:01.064735       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-foobar-dev"
I0211 21:11:01.265733       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-foobar-dev"
I0211 21:11:01.460413       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-default"
I0211 21:11:01.662875       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-default"
I0211 21:11:01.861453       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-default"
I0211 21:11:02.058491       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-dynatrace"
I0211 21:11:02.262926       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-dynatrace"
I0211 21:11:02.469732       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-dynatrace"
I0211 21:11:02.658606       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-example"
I0211 21:11:02.865746       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-example"
I0211 21:11:03.065984       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-example"
I0211 21:11:03.258448       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-fleet-system"
I0211 21:11:03.461393       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-fleet-system"
I0211 21:11:03.663095       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-fleet-system"
I0211 21:11:03.868856       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-fluentd"
I0211 21:11:04.064281       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-fluentd"
I0211 21:11:04.278812       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-fluentd"
I0211 21:11:04.460852       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-flux-system"
I0211 21:11:04.665323       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-flux-system"
I0211 21:11:04.866174       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-flux-system"
I0211 21:11:05.059127       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-ingress-nginx"
I0211 21:11:05.269072       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-ingress-nginx"
I0211 21:11:05.493360       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-ingress-nginx"
I0211 21:11:05.658903       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-proget"
I0211 21:11:05.872694       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-proget"
I0211 21:11:06.067420       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-proget"
I0211 21:11:06.258263       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-kube-node-lease"
I0211 21:11:06.461077       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-kube-node-lease"
I0211 21:11:06.664021       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-kube-node-lease"
I0211 21:11:06.861173       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-kube-public"
I0211 21:11:07.063392       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-kube-public"
I0211 21:11:07.262857       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-kube-public"
I0211 21:11:07.459697       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-kube-system"
I0211 21:11:07.661956       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-kube-system"
I0211 21:11:07.864707       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-kube-system"
I0211 21:11:08.058445       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-kubernetes-external-secrets"
I0211 21:11:08.260713       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-kubernetes-external-secrets"
I0211 21:11:08.461446       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-kubernetes-external-secrets"
I0211 21:11:08.658690       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-kyverno"
I0211 21:11:08.862797       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-kyverno"
I0211 21:11:09.062181       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-kyverno"
I0211 21:11:09.258543       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-logging-adr"
I0211 21:11:09.462390       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-logging-adr"
I0211 21:11:09.664507       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-logging-adr"
I0211 21:11:09.862887       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-bleb"
I0211 21:11:10.062778       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-bleb"
I0211 21:11:10.264137       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-bleb"
I0211 21:11:10.459591       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-monitoring"
I0211 21:11:10.663029       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-monitoring"
I0211 21:11:10.865784       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-monitoring"
I0211 21:11:11.058312       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-monitoring-config"
I0211 21:11:11.263993       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-monitoring-config"
I0211 21:11:11.462246       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-monitoring-config"
I0211 21:11:11.658820       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-bar"
I0211 21:11:11.867484       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-bar"
I0211 21:11:12.065616       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-bar"
I0211 21:11:12.258802       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-priceviewer"
I0211 21:11:12.461367       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-priceviewer"
I0211 21:11:12.661852       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-priceviewer"
I0211 21:11:12.858657       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-pscommon"
I0211 21:11:13.064518       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-pscommon"
I0211 21:11:13.261690       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-pscommon"
I0211 21:11:13.458711       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-pure-pso"
I0211 21:11:13.667050       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-pure-pso"
I0211 21:11:13.861790       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-pure-pso"
I0211 21:11:14.059982       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-secret-adr"
I0211 21:11:14.263817       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-secret-adr"
I0211 21:11:14.463994       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-secret-adr"
I0211 21:11:14.657811       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-security-scan"
I0211 21:11:14.925709       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-security-scan"
I0211 21:11:15.063974       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-security-scan"
I0211 21:11:15.258937       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-blebbing-tech"
I0211 21:11:15.465872       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-blebbing-tech"
I0211 21:11:15.660727       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-blebbing-tech"
I0211 21:11:15.858455       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-widget"
I0211 21:11:16.061618       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-widget"
I0211 21:11:16.263131       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-widget"
I0211 21:11:16.459088       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-ffslock"
I0211 21:11:16.663320       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-ffslock"
I0211 21:11:16.865639       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-ffslock"
I0211 21:11:17.058572       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="policyreport-ns-us-widgets"
I0211 21:11:17.263952       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="polr-ns-us-widgets"
I0211 21:11:17.464007       1 main.go:371]  "msg"="successfully cleaned up resource"  "kind"="PolicyReport" "name"="pr-ns-us-widgets"

@JimBugwadia
Copy link
Member

@megakid - thanks for checking. We will investigate this further and get back.

@megakid
Copy link
Author

megakid commented Feb 11, 2021

No problem. We have this pod running seemingly fine in another cluster so it's definitely something environmental.

@realshuting
Copy link
Member

@megakid Sorry for the late response, can you upgrade to v1.3.3 and try again? We have optimized policy report generation in this version.

@megakid
Copy link
Author

megakid commented Feb 17, 2021

Thanks @realshuting - I upgraded to v1.3.3 and still got the same OOMKilled exception on our development cluster (~175 pods).

@realshuting
Copy link
Member

Thanks for your feedback!

Can you share more info of:

  • What's the output of kubectl -n kyverno get rcr | wc -l?
  • How many reports do you have kubectl get polr -A ?
  • How many policies do you have kubectl get cpol ?

Can you uninstall all policies and see if Kyverno can come up successfully?

@megakid
Copy link
Author

megakid commented Feb 18, 2021

PS C:\Users\megakid> kubectl -n kyverno get rcr
No resources found in kyverno namespace.
PS C:\Users\megakid> kubectl get polr -A                                        
No resources found  
PS C:\Users\megakid> kubectl get cpol
NAME                 BACKGROUND   ACTION 
flux-multi-tenancy   true         enforce

after deleting the cpol/flux-multi-tenancy resource, the pod still gets OOMKilled (2 runs of logging below):

I0218 11:40:24.591133 1 version.go:17] "msg"="Kyverno" "Version"="v1.3.3"
I0218 11:40:24.591196 1 version.go:18] "msg"="Kyverno" "BuildHash"="(HEAD/f6192d08b02f23522a90dd29d97d6b6bc346e4c3"
I0218 11:40:24.591218 1 version.go:19] "msg"="Kyverno" "BuildTime"="2021-02-16_09:52:14PM"
I0218 11:40:24.593187 1 config.go:92] CreateClientConfig "msg"="Using in-cluster configuration"
I0218 11:40:24.618415 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1, Resource=clusterpolicies"
I0218 11:40:24.618792 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=clusterpolicyreports"
I0218 11:40:24.620808 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=policyreports"
I0218 11:40:24.621691 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=clusterreportchangerequests"
I0218 11:40:24.623706 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=reportchangerequests"
I0218 11:40:24.626484 1 reflector.go:219] Starting reflector *unstructured.Unstructured (15m0s) from pkg/mod/k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167
I0218 11:40:44.457071 1 version.go:17] "msg"="Kyverno" "Version"="v1.3.3"
I0218 11:40:44.457113 1 version.go:18] "msg"="Kyverno" "BuildHash"="(HEAD/f6192d08b02f23522a90dd29d97d6b6bc346e4c3"
I0218 11:40:44.457121 1 version.go:19] "msg"="Kyverno" "BuildTime"="2021-02-16_09:52:14PM"
I0218 11:40:44.457265 1 config.go:92] CreateClientConfig "msg"="Using in-cluster configuration"
I0218 11:40:44.489106 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1, Resource=clusterpolicies"
I0218 11:40:44.489663 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=clusterpolicyreports"
I0218 11:40:44.490804 1 util.go:82] "msg"="CRD found" "gvr"="wgpolicyk8s.io/v1alpha1, Resource=policyreports"
I0218 11:40:44.491729 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=clusterreportchangerequests"
I0218 11:40:44.492367 1 util.go:82] "msg"="CRD found" "gvr"="kyverno.io/v1alpha1, Resource=reportchangerequests"
I0218 11:40:44.494502 1 reflector.go:219] Starting reflector *unstructured.Unstructured (15m0s) from pkg/mod/k8s.io/client-go@v0.20.2/tools/cache/reflector.go:167

@realshuting
Copy link
Member

realshuting commented Feb 18, 2021

Interesting.. Kyverno wouldn't do anything if there's no policy installed.

I'm curious to see profiling data, but in this case, I don't know if this would work as Pod never come up.

Do you have default GOGC (set to 100) in uat cluster?

@snir911
Copy link

snir911 commented Mar 3, 2021

I'm also experiencing OomKilled, also with very few policies (2).
Does this issue is a regression? if it is, in which version should it work?
and how to you set GOGC?

@realshuting
Copy link
Member

@snir911 - you can add GOGC to the env list of the Kyverno container:

    spec:
      containers:
      - env:
        - name: GOGC
          value: "25"

If the pod comes up successfully, can you share heap and goroutine dumps?

curl http://localhost:6060/debug/pprof/heap  > heap.pprof
curl http://localhost:6060/debug/pprof/goroutines > goroutines.out

I found a similar issue in fluxcd, where the user has Dex installed along with a massive amount of other resources. Do you have Dex installed by any chance?

@windowsrefund
Copy link
Contributor

windowsrefund commented Mar 11, 2021

I just thought I'd mention the Helm chart does not appear to support passing additional environment variables into the containers. I mention it because I'm trying to troubleshoot a similar, or the same issue, on a 70 node cluster running ~800 pods where I see plenty of memory available. Also, I don't have any policies installed and I've disabled those that started shipping with 1.3.3 since I've set podSecurityStandard: disabled.

@realshuting
Copy link
Member

@windowsrefund - thanks for adding your case.

I just thought I'd mention the Helm chart does not appear to support passing additional environment variables into the containers.

Can you please open a feature request to support this?

For now, have you tried to add the env manually to Kyverno Pod?

@windowsrefund
Copy link
Contributor

Just a follow up to mention 1.3.4 is still OOMing even after I manually injected the GOGC=25 environment variable. That said, I never saw that as a real solution but wanted to see the behavior. Just incase the question comes up, I ingested the var into the deployment and then scaled it to 0, then back to 1. Once I saw the same OOMKilled status, I verified GOGC was set in the pod with

kubectl set env pods --list --all

@windowsrefund
Copy link
Contributor

Actually, to my surprise, the pod has been running for about 2 hours after 17 restarts. I'll report back when I have a better understanding of whether or not GOGC has a hand in this success.

@windowsrefund
Copy link
Contributor

windowsrefund commented Mar 15, 2021

It does appear that lowering GOGC from the default of 100 is needed on the particular cluster I'm working with. However, reducing this value still takes many (I've seen as high as 21) restarts before the kyverno pod is left in a Running status. Can anyone provide any insight as to what is happening until then?

@realshuting
Copy link
Member

@windowsrefund - I'm trying to identify what exactly causes the issue, as mentioned above, do you have Dex installed by any chance?

@windowsrefund
Copy link
Contributor

No

@realshuting realshuting added the help wanted Extra attention is needed label Mar 24, 2021
@realshuting realshuting added enhancement New feature or request and removed help wanted Extra attention is needed labels Apr 6, 2021
@snir911
Copy link

snir911 commented Apr 27, 2021

@realshuting hi, does #1804 fix this OOMkilled issue?

@realshuting
Copy link
Member

@snir911 - thanks for checking. @vyankd is working on the fix to add matchedList.

@vakkur
Copy link

vakkur commented May 3, 2021

When I upgraded from 1.3.4 to 1.3.5, the kyverno preinstaller was restarting serval times running OOM, I deleted the helm deployment and redeployed it but still had the issues. Only after deleting all the CRD's related to kyverno and then reinstalling it worked, not sure if anyone encountered this issue.

reportchangerequests.kyverno.io CRD had over 4800 items not sure what its tracking

image

@realshuting
Copy link
Member

Hi @vakkur - could be a similar issue with #1759 (comment). Do you have CronJob running in your cluster?

@vakkur
Copy link

vakkur commented May 3, 2021

@realshuting thank you for your reply, I do not have any cron jobs running in my cluster. the report change requests are even higher in my test cluster, would this cause the issue when I am trying to upgrade??

image

@realshuting
Copy link
Member

It could take time for the init container to clean up all these resources. What you can do is delete the CRDs and reinstall Kyverno from a clean state.

✗ k get crd | grep report
clusterpolicyreports.wgpolicyk8s.io          2021-04-28T01:08:38Z
clusterreportchangerequests.kyverno.io       2021-04-28T01:08:38Z
policyreports.wgpolicyk8s.io                 2021-04-28T01:08:39Z
reportchangerequests.kyverno.io              2021-04-28T01:08:39Z

Is your test cluster running 1.3.4?

@vakkur
Copy link

vakkur commented May 3, 2021

Yes, my cluster is running on 1.3.4,

Currently, I am running this script to delete change request

for each in $(kubectl get Reportchangerequests -n kyverno -o jsonpath="{.items[*].metadata.name}" )

do
kubectl delete Reportchangerequests $each -n kyverno
done

@realshuting
Copy link
Member

That script should do as well.

If you see this issue again with 1.3.5, can you please attach Kyverno logs and the RCRs details? If there are lots of RCRs, at least check the resource it reports on.

@vakkur
Copy link

vakkur commented May 4, 2021

@realshuting v1.3.5 onwards would it automatically delete the RCR's after a period of time?

@realshuting
Copy link
Member

v1.3.5 onwards would it automatically delete the RCR's after a period of time?

Yes, RCRs are cleaned up after they merged to policy reports.

@realshuting
Copy link
Member

@snir911 - thanks for checking. @vyankd is working on the fix to add matchedList.

@snir911 - sorry I mixed this issue with #1731 (comment). I sent a PR #1878 to remove "Secret" from the default resource cache. In long term, we should find a way to custom informer cache to reduce memory usage.

@realshuting
Copy link
Member

@snir911 - the PR was merged, here's the image tag with the fix v1.3.6-rc1-7-ge9952fba. Will you be able to verify the fix? Or you can wait for the stable release.

@snir911
Copy link

snir911 commented May 5, 2021

@realshuting thanks, I'll update once I'll be able to test it

@windowsrefund
Copy link
Contributor

Happy to report I've revisited this OOM issue and am now running 1.3.6 on my cluster. The pod fired up quickly and appears to be stable. I'll let it burn in for a bit but wanted to share the news.

@realshuting
Copy link
Member

Great @windowsrefund, thanks for verifying!

I'm closing it, please reopen if the same issue is observed again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants