projectcalico / calico

Cloud native networking and network security
https://docs.tigera.io/calico/latest/about/
Apache License 2.0
6.02k stars 1.34k forks source link

plugin type="calico" failed (add): error creating calico client: could not initialize etcdv3 client: open /etc/calico/ssl/calico.pem: no such file or directory #8409

Closed DRP1988 closed 10 months ago

DRP1988 commented 10 months ago

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment

DRP1988 commented 10 months ago

How to fix this problem 微信截图_20240115163648 微信截图_20240115163717

caseydavenport commented 10 months ago

@DRP1988 please fill out the issue template when opening issues. We cannot help you without the context it provides.

/etc/calico/ssl/calico.pem

You need to provide Calico with certificate data in order to connect to etcd using TLS.

I do recommend installing Calico in the default mode, where it does not need to access etcd directly though: https://docs.tigera.io/calico/latest/getting-started/kubernetes/quickstart