Comments (4)
that's not the certs of tidb-webhook expired, but the CA of "kuberntes.default.svc" in the k8s apiserver is.
because the call flow of tidb crd adminssion is
k8s apiserver -> apiservice (kuberntes.default.svc) -> tidb webhook pod
i.e.
k8s apiserver -> k8s apiserver (kuberntes.default.svc) -> tidb webhook pod
when a k8s apiserver runs for more that one year and doesn't restart, the CA of kuberntes.default.svc in the k8s apiserver memory will expire.
As a result, the k8s apiserver accessing the k8s apiserver itself will fail after a year in this case.
by default the CA of kuberntes.default.svc in k8s apiserver memory is self-signed for one year during k8s apiserver starting.
from tidb-operator.
as openshift/generic-admission-server#33 (comment) said, in k8s 1.18, k8s.io/apiserver supports reload of the serving certs.
TiDB Operator v1.4.4 has been using v1.19 of K8s (https://github.com/pingcap/tidb-operator/blob/v1.4.4/go.mod#L65), and this version of generic-admission-server also using k8s v1.19 (https://github.com/openshift/generic-admission-server/blob/da96454c926de350e52f6c7a6ee86af49ee96b00/go.mod), it should reload the certs.
Did your cert just expire or renew after expired?
from tidb-operator.
@Smityz is this caused as iPenx said? Have you resolved it?
from tidb-operator.
@Smityz is this caused as iPenx said? Have you resolved it?
Yes, we are in the same team. We disable webhook finally, but I think it's a common problem and it needs to be solve.
from tidb-operator.
Related Issues (20)
- tikv upgrade blocked
- can't set MaxSkew, MinDomains or NodeAffinityPolicy for TopologySpreadConstraint
- Release v1.5.3
- tidb-scheduler pod keep crashing with TiDB Operator v1.5.3 HOT 3
- support setting extra command line arguments for TiDB
- BR backup could raise error when PD leader changed during BR initialization HOT 3
- BackupCR(7.5.1) can not read the correct size of backup in minio HOT 5
- backup: support multiple backup schedules
- Volume leaked if volume restore failed in restore volume step
- Release 1.6.0
- How to remove a failed TiKV store when using local storage HOT 4
- TiDB Cluster Does Not Survive K8s Upgrade (EKS) or Nodegroup Upgrade HOT 3
- TiDB Operator Crash HOT 1
- operator tries to shrink volume after storage size update if value is in Mi HOT 5
- Documentation for operator features HOT 2
- Support PITR restore using --start-ts only
- If store number is 0, it is expected to set the volume backup to failed which will not blocked the whole clean schedule
- Can't change tiproxy service type HOT 1
- TiFlash没有暴露proxy的metrics HOT 8
- TiDB cluster doesnt start-up correctly HOT 16
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 tidb-operator.