最近,我根据该手册配置了静态配置的Azure文件:https://docs.microsoft.com/en-us/azure/aks/azure-files-volume我已经在Pod上运行了我的应用程序,并将Azure文件安装到了它。不幸的是,当我尝试从应用程序在此Azure文件存储上创建一些文件时,出现java.io.IOException:权限被拒绝...有什么方法可以更改此Azure文件的权限?以下是我的部署的yaml文件:
class A; end
class B < A; end
class C < B; end
A.ancestors # => [A, ...]
B.ancestors # => [B, A, ...]
C.ancestors # => [C, B, A, ...]
编辑:
以下是 kubectl get pod -o yaml
的输出apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: vm-wojtek
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: vm-wojtek
spec:
containers:
- name: vm-wojtek
image: <image_name>
ports:
- containerPort: 8080
- containerPort: 8443
imagePullPolicy: Always
volumeMounts:
- mountPath: "/mnt/azure"
name: volume
readOnly: false
volumes:
- name: volume
azureFile:
secretName: azure-secret
shareName: vm-share
readOnly: false