Comments (4)
tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, not 10.1.4.13"
K3s doesn't generate any certificates that are valid for only the loopback address, but not any other IPs. I also see that you've set the egress-selector mode to disabled; why? Do you perhaps have a http proxy configured in your environment? I'm not sure what exactly the apiserver is talking to here that has this invalid certificate but I don't think it's an internal component.
from k3s.
tls: failed to verify certificate: x509: certificate is valid for 127.0.0.1, not 10.1.4.13"
K3s doesn't generate any certificates that are valid for only the loopback address, but not any other IPs. I also see that you've set the egress-selector mode to disabled; why? Do you perhaps have a http proxy configured in your environment? I'm not sure what exactly the apiserver is talking to here that has this invalid certificate but I don't think it's an internal component.
the reason of disable egress-selector is from another issue : #5897
and there's not http proxy config in my env
BTW i have deleted that line in my /etc/systemd/system/multi-user.target.wants/k3s.service
and reloaded, but not worked
from k3s.
i did a testing, use kubernetes-client
to operate k3s with config file, like this, and replace 127.0.0.1
to 10.1.4.13
, it worked. i was thinking maybe there's something wrong i ignored inside k3s
apiVersion: v1
clusters:
- cluster:
certificate-authority-data: xxx
server: https://127.0.0.1:6443
name: default
contexts:
- context:
cluster: default
user: default
name: default
current-context: default
kind: Config
preferences: {}
users:
- name: default
user:
client-certificate-data: xxx
client-key-data: xxx
from k3s.
another phenomenon: operation only does not work in the node which metrics-server
was deployed
after resinstalling the metrics-server, it has worked
from k3s.
Related Issues (20)
- [Release-1.28] - [Bug Report K3s Windows] - Command Name for the k3s binary is incomplete in binary_size_check.sh
- [Release-1.27] - [Bug Report K3s Windows] - Command Name for the k3s binary is incomplete in binary_size_check.sh
- [Release-1.29] - leader-elected etcd controllers not consistently functional when leader election/lease mismatches occur
- [Release-1.28] - leader-elected etcd controllers not consistently functional when leader election/lease mismatches occur HOT 1
- [Release-1.27] - leader-elected etcd controllers not consistently functional when leader election/lease mismatches occur
- [Release-1.29] - Expose K3s metrics via supervisor port
- [Release-1.28] - Expose K3s metrics via supervisor port
- [Release-1.27] - Expose K3s metrics via supervisor port
- [Release-1.29] - k3s crashes if I do not start the cloud-provider
- [Release-1.28] - k3s crashes if I do not start the cloud-provider
- [Release-1.27] - k3s crashes if I do not start the cloud-provider
- Health checks may remove all available servers from load-balancer under high load HOT 1
- [Release-1.29] - Health checks may remove all available servers from load-balancer under high load
- [Release-1.28] - Health checks may remove all available servers from load-balancer under high load HOT 1
- [Release-1.27] - Health checks may remove all available servers from load-balancer under high load HOT 1
- [Release-1.29] - Image pulls from embedded registry fail if --bind-address is set (and not 127.0.0.1)
- [Release-1.28] - Image pulls from embedded registry fail if --bind-address is set (and not 127.0.0.1)
- [Release-1.27] - Image pulls from embedded registry fail if --bind-address is set (and not 127.0.0.1)
- Fatal problems caused by k3s should be paid attention to
- TLS handshake remote error: tls: bad certificate HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3s.