PowerFlex: kubectl: 명령을 찾을 수 없음
Summary: 권한이 잘못되면 MVM에서 kubectl 명령을 실행할 수 없습니다.
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
MVM에서 kubectl 명령을 실행할 때 "permission denied" 오류가 발생합니다.
Cause
다양한 구성 파일에 잘못된 사용 권한이 있습니다. "delladmin:root"가 해당 파일을 소유해야 합니다. PFMP 클러스터가 루트 계정으로 배포된 경우 delladmin 계정에는 kubectl 명령을 실행할 수 있는 액세스 권한이 없습니다.
Resolution
파일 및 파일 소유자를 확인합니다.
cd /etc ls -lat pki/trust/ rancher/ rancher/rke2/ docker/certs.d/ helmrepo/certs.d
아래의 올바른 소유권
#/etc/rancher/rke2/ -rw------- 1 delladmin root 7534 Dec 14 13:24 rke2.yaml -rw------- 1 delladmin root 365 Dec 7 12:21 rke2-pss.yaml -rw-r--r-- 1 delladmin root 325 Dec 7 12:20 registries.yaml -r-------- 1 delladmin root 1144 Dec 7 12:20 config.yaml #/etc/helmrepo/certs.d/ -rw-r--r-- 1 delladmin root 3243 Dec 7 13:30 client.key -rw-r--r-- 1 delladmin root 2013 Dec 7 13:30 client.crt -rw-r--r-- 1 delladmin root 13999 Dec 7 13:30 ca.crt #/etc/docker/certs.d/ -rw-r--r-- 1 delladmin root 3243 Dec 7 12:58 client.key -rw-r--r-- 1 delladmin root 1980 Dec 7 12:58 client.crt -rw-r--r-- 1 delladmin root 13999 Dec 7 12:58 ca.crt #/etc/rancher drwxr-xr-x 1 delladmin root 96 Dec 14 13:24 rke2 #/etc/pki/trust/ drwxr-xr-x 1 delladmin root 468 Dec 7 12:21 anchors
소유권이 delladmin:root가 아닌 경우 이 작업 계획으로 수정하십시오.
*스냅샷 삭제가 완료되면 다음 절차를 실행하기 전에 각 MVM의 스냅샷을 생성하는 것이 좋습니다.
각 MVM에서 아래 명령을 실행합니다.
sudo chown delladmin /etc/pki/trust/anchors sudo chown delladmin /etc/rancher/rke2 sudo chown delladmin /etc/rancher/rke2/* sudo chown delladmin /etc/docker/certs.d/* sudo chown delladmin /etc/helmrepo/certs.d/* # The presence of this file owned by root can cause upgrades to fail with delladmin account rm /tmp/ca.crt
수정 사항을 확인하려면
kubectl get nodes
다른 MVM에도 반복합니다.
Article Properties
Article Number: 000292038
Article Type: Solution
Last Modified: 24 Jul 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.