Runbook
Admission gate degraded
Symptoms
Section titled “Symptoms”- Alert
PkMetalAdmissionGateDegradednames the policy.- Metric
pk_metal_admission_gate_degraded{policy="<name>"}is 1.- Audit trail
- A
gate.degradedline withkindValidatingAdmissionPolicy. Themessagesays 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
failurePolicyis notFail. - No binding of the policy has
validationActions: [Deny]. - The policy reads the site settings, and no such binding has
parameterNotFoundAction: Deny.
Impact
Section titled “Impact”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.
Diagnose
Section titled “Diagnose”kubectl get validatingadmissionpolicy,validatingadmissionpolicybindingkubectl get validatingadmissionpolicybinding guard-lift -o yamlFind who changed or deleted the object in the kube-apiserver audit log.
-
Apply the policies again from the release that you run.
Terminal window kubectl apply --server-side -k metal/config/policy -
If a site overlay changes a policy or a binding, correct the overlay.
Verify
Section titled “Verify”The metric is 0 for each policy. The audit log has a gate.restored line for the policy.