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

certificate signed by unknown authority #120

Open
yuhaoJustGo opened this issue Jun 6, 2024 · 3 comments
Open

certificate signed by unknown authority #120

yuhaoJustGo opened this issue Jun 6, 2024 · 3 comments

Comments

@yuhaoJustGo
Copy link

yuhaoJustGo commented Jun 6, 2024

the question is:
'ProvisioningFailed' failed to provision volume with StorageClass "csi-s3": rpc error: code = Unknown desc = failed to check if bucket pvc-9c725734-3e06-4d8b-8138-fca3f210b804 exists: Get "https://xxx:9000/pvc-9c725734-3e06-4d8b-8138-fca3f210b804/?location=": x509: certificate signed by unknown authority.

how to skip Ca verify?

@stepanovmm1992
Copy link

I have a same problem
Can you please help!

@michaeleino
Copy link

+1 here , how can we bypass this ?

@yuhaoJustGo
Copy link
Author

This method can solve the problem:

  1. create configmap for your CA
    kubectl create configmap s3-ca-cert --from-file=ca.crt=/xxxpath/public.crt -n kube-system
  2. update the csi-s3.yaml and provisioner.yaml,add ca-cert:
    volumeMounts:
    - name: ca-cert
    mountPath: /etc/ssl/certs
    readOnly: true
    volumes:
    - name: ca-cert
    configMap:
    name: s3-ca-cert

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

3 participants