Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is an error when I created an OSS volume using example from this repo #16

Open
jinmiaoluo opened this issue Feb 14, 2019 · 0 comments

Comments

@jinmiaoluo
Copy link

jinmiaoluo commented Feb 14, 2019

Error Information

Pod ubuntu-pod requires volume oss which is of an unsupported type

deployment content

apiVersion: v1
kind: Pod
metadata:
  name: ubuntu-pod
  labels:
    app: ubuntu
spec:
  containers:
  - name: ubuntu
    image:  registry-vpc.cn-shanghai.aliyuncs.com/jovi/ubuntu:latest
    imagePullPolicy: Always
    command: ["sleep", "1000"]
    volumeMounts:
    - name: oss
      mountPath: "/oss"
  volumes:
  - name: "oss"
    flexVolume:
      driver: "alicloud/oss"
      options:
        bucket: "xxx"
        url: "oss-cn-beijing.aliyuncs.com"
        akId: "xxx"
        akSecret: "xxx"
  restartPolicy: Never

PS: my akId and akSecret is created from a sub-account which has OSS full access permission.

@jinmiaoluo jinmiaoluo changed the title There is an error when I create an OSS volume using examples from this repo There is an error when I created an OSS volume using examples from this repo Feb 14, 2019
@jinmiaoluo jinmiaoluo changed the title There is an error when I created an OSS volume using examples from this repo There is an error when I created an OSS volume using example from this repo Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant