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

Where are the files : rootCA.crt edge.crt edge.key in cloudcore ? #5621

Closed
peakforever opened this issue May 21, 2024 · 2 comments
Closed

Where are the files : rootCA.crt edge.crt edge.key in cloudcore ? #5621

peakforever opened this issue May 21, 2024 · 2 comments
Labels
kind/question Indicates an issue that is a support question.

Comments

@peakforever
Copy link

What happened and what you expected to happen:
As default configuration,the files should be in /etc/kubeedge,but when i go into the pod of cloudcore , i can't find such files,and only streamCA.crt stream.crt stream.key. but the cloudcore works well with edgecore. can any explain this? thanx
How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:
I have also checked the cloudcore secret and cloudcore's config file ,nothing abnormal.
Environment:
I use keadm init to setup cloudcore
cloudcore and edgecore in openeuler VM

  • Kubernetes version 1.26 (use kubectl version):
  • KubeEdge version 1.15 (e.g. cloudcore --version and edgecore --version):
@peakforever peakforever added the kind/question Indicates an issue that is a support question. label May 21, 2024
@WillardHu
Copy link
Collaborator

You can look at the logic of the function PrepareAllCerts(), ref to:

if err := httpserver.PrepareAllCerts(); err != nil {

@peakforever
Copy link
Author

thank you,i have found where they are,because i initially thought the secrets could be accessed either by volum mounting or by pod enviroment way. After checking the source code of httpserver.PrepareAllCerts(), I get to know that cloudcore access the secrets through getting k8s client way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

2 participants