The Kubernetes admission controller 'NodeRestriction' should be enabled

Set up the kubernetes integration.

이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Description

The Node and Pod objects that a kubelet could modify should be limited. Using the NodeRestriction admission controller plugin limits the Node and Pod objects that a kubelet can modify. When limited by this admission controller, kubelets are only allowed to modify their own Node API object, and only modify Pod API objects that are bound to their node.

Remediation

Kubelet

  1. On every node, set the authorization mode to webhook with parameters:
    --authorization-mode=webhook
    
  2. Use the Kubernetes Webhook Mode documentation to configure Webhook mode.

API Server

  1. Edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml on the master node and set the --enable-admission-plugins=NodeRestriction,... parameter.
PREVIEWING: dgreen15/github-error-fix