Skip to content

Getting the warning message "Admission webhooks are not activated. Enable it by configuring --enable-admission-plugins flag of kube-apiserver. For details, visit: https://appsco.de/kube-apiserver-webhooks." #1560

@davidmkrtchian

Description

@davidmkrtchian

After Deploying the Stash using the Helm chart with this configuration

 repository           = "https://charts.appscode.com/stable/"
  chart                = "stash"
  chart_version        = "2024.2.13"
  release_name         = local.release_name
  create_namespace     = true
  kubernetes_namespace = local.kubernetes_namespace
  values               = <<EOF
    global:
        licenseSecretName: cert-secret
    features:    
        enterprise: true
EOF
}

I am getting that warning message in my deployment and here is the logs for that

I0304 09:37:29.691771       1 run.go:38] Starting operator version v0.33.0+056fe40eafe5ef46d61ff1fba276dc925a37d226 ...
I0304 09:37:29.701328       1 dynamic_serving_content.go:113] "Loaded a new cert/key pair" name="serving-cert::/var/serving-cert/tls.crt::/var/serving-cert/tls.key"
I0304 09:37:29.950266       1 requestheader_controller.go:244] Loaded a new request header values for RequestHeaderAuthRequestController
I0304 09:37:29.952791       1 audit.go:293] No audit policy file provided, no events will be recorded for log backend
I0304 09:37:30.082234       1 request.go:629] Waited for 58.128766ms due to client-side throttling, not priority and fairness, request: GET:https://172.31.0.1:443/apis/apiextensions.k8s.io/v1
I0304 09:37:30.092282       1 request.go:629] Waited for 68.217751ms due to client-side throttling, not priority and fairness, request: GET:https://172.31.0.1:443/apis/scheduling.k8s.io/v1
I0304 09:37:30.101848       1 request.go:629] Waited for 77.756024ms due to client-side throttling, not priority and fairness, request: GET:https://172.31.0.1:443/apis/templates.gatekeeper.sh/v1alpha1
I0304 09:37:30.111800       1 request.go:629] Waited for 87.699082ms due to client-side throttling, not priority and fairness, request: GET:https://172.31.0.1:443/apis/coordination.k8s.io/v1
I0304 09:37:30.122503       1 request.go:629] Waited for 98.367438ms due to client-side throttling, not priority and fairness, request: GET:https://172.31.0.1:443/apis/cert-manager.io/v1
I0304 09:37:30.131952       1 request.go:629] Waited for 107.80701ms due to client-side throttling, not priority and fairness, request: GET:https://172.31.0.1:443/apis/node.k8s.io/v1
I0304 09:37:30.142281       1 request.go:629] Waited for 118.176558ms due to client-side throttling, not priority and fairness, request: GET:https://172.31.0.1:443/apis/node.k8s.io/v1beta1

The problem is that I have enabled the Mutating and Validating Webhooks with
enable-admission-plugin=ValidatingAdmissionWebhook,MutatingAdmissionWebhook

$kubectl get mutatingwebhookconfigurations,validatingwebhookconfigurations | grep stash
  mutatingwebhookconfiguration.admissionregistration.k8s.io/admission.stash.appscode.com            5          32m
  validatingwebhookconfiguration.admissionregistration.k8s.io/admission.stash.appscode.com               8          32m

Using the last version of Helm chart
The Kubernetes version is 1.22

If you could provide assistance in resolving this problem, I would greatly appreciate it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions