メインコンテンツまでスキップ

Exciting new changes are coming to the Knowledge Base site soon!
Starting April 4, 2023, you will notice Support-Specific categorization and improvements to the search filters on the site. In May, we will be launching a new and enhanced Site UI and Navigation. To know more, read our Knowledge Article.

ポッドのPV / PVC権限を変更するにはどうすればよいですか?

Views:
5
Visibility:
Public
Votes:
0
Category:
astra_trident<a>2009343894</a>
Specialty:
snapx
Last Updated:

環境

  • Kubernetes
  • トライデント

説明

この資料では、PoDのPV/PVCアクセス許可を変更する手順について説明します。

次の例では、Podの権限に対するPVCが755に設定されています。

[root@rhel crds]# k get pod

NAME                  READY   STATUS   RESTARTS       AGE
alpine-ontap-san-pod  1/1     Running   12 (16m ago)   12h
pvpod                 1/1     Running   12 (11m ago)   12h

[root@rhel crds]# k exec -it alpine-ontap-san-pod/bin/sh

kubectl exec [POD] [COMMAND]is DEPRECATED and willbe removed in a future version.Use kubectl exec [POD] --[COMMAND] instead.

/ # ls -l
total 12
drwxr-xr-x    2root    root          4096 Jan 30 2019 bin
drwxr-xr-x   3 root    root          4096 Oct 24 13:42data
drwxr-xr-x    5root    root           360 Oct 2501:42 dev
drwxr-xr-x    1root    root            66 Oct25 01:42 etc

Scan to view the article on your device