Skip to content

Runbook

Admission gate degraded

Alert
PkMetalAdmissionGateDegraded names the policy.
Metric
pk_metal_admission_gate_degraded{policy="<name>"} is 1.
Audit trail
A gate.degraded line with kind ValidatingAdmissionPolicy. The message says what is wrong.

The operator checks each policy of the gate one time each minute. The operator reports a policy if one of these is true:

  • The ValidatingAdmissionPolicy is missing.
  • Its failurePolicy is not Fail.
  • No binding of the policy has validationActions: [Deny].
  • The policy reads the site settings, and no such binding has parameterNotFoundAction: Deny.

The API server does not apply the rules of the policy. For example, without hostoperation-approval a person can approve as another person. Without settings-guard a person outside the admin group can change selfApproval. See Admission policies.

The operator changes nothing. It does not stop its work.

Terminal window
kubectl get validatingadmissionpolicy,validatingadmissionpolicybinding
kubectl get validatingadmissionpolicybinding guard-lift -o yaml

Find who changed or deleted the object in the kube-apiserver audit log.

  1. Apply the policies again from the release that you run.

    Terminal window
    kubectl apply --server-side -k metal/config/policy
  2. If a site overlay changes a policy or a binding, correct the overlay.

The metric is 0 for each policy. The audit log has a gate.restored line for the policy.