跳转到主内容

如何更改POD上的PV/PVC权限?

Views:
10
Visibility:
Public
Votes:
0
Category:
astra_trident<a>2009年343894</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

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.