{"id":18739944,"url":"https://github.com/withlin/k8s-cert-99year","last_synced_at":"2026-01-26T03:32:34.038Z","repository":{"id":96511056,"uuid":"313206674","full_name":"withlin/k8s-cert-99year","owner":"withlin","description":null,"archived":false,"fork":false,"pushed_at":"2020-11-16T06:47:18.000Z","size":11119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-20T04:36:00.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/withlin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-16T06:08:28.000Z","updated_at":"2020-11-16T06:47:20.000Z","dependencies_parsed_at":"2023-03-16T03:31:27.793Z","dependency_job_id":null,"html_url":"https://github.com/withlin/k8s-cert-99year","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/withlin/k8s-cert-99year","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fk8s-cert-99year","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fk8s-cert-99year/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fk8s-cert-99year/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fk8s-cert-99year/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/withlin","download_url":"https://codeload.github.com/withlin/k8s-cert-99year/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/withlin%2Fk8s-cert-99year/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28765913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:19:35.311Z","status":"ssl_error","status_checked_at":"2026-01-26T03:19:13.815Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T15:37:58.707Z","updated_at":"2026-01-26T03:32:34.019Z","avatar_url":"https://github.com/withlin.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# k8s-cert-99year\n\n### 动机\n为k8s签证99年\n\n\n### 第一种方式\n\n```\n\n./kubeadm  alpha certs renew all\n\n```\n\n### 查看证书～\n\n```\n[root@zhc-netmis-compass-master01 ~]# ./kubeadm  alpha certs check-expiration\nCommand \"check-expiration\" is deprecated, please use the same command under \"kubeadm certs\"\n[check-expiration] Reading configuration from the cluster...\n[check-expiration] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'\n[check-expiration] Error reading configuration from the Cluster. Falling back to default configuration\n\nCERTIFICATE                         EXPIRES                  RESIDUAL TIME   CERTIFICATE AUTHORITY   EXTERNALLY MANAGED\nadmin.conf                          Oct 23, 2120 04:50 UTC   99y                                     no\napiserver                           Oct 23, 2120 04:50 UTC   99y             ca                      no\n!MISSING! apiserver-etcd-client\napiserver-kubelet-client            Oct 23, 2120 04:50 UTC   99y             ca                      no\ncontroller-manager.conf             Oct 23, 2120 04:50 UTC   99y                                     no\n!MISSING! etcd-healthcheck-client\n!MISSING! etcd-peer\n!MISSING! etcd-server\nfront-proxy-client                  Oct 23, 2120 04:50 UTC   99y             front-proxy-ca          no\nscheduler.conf                      Oct 23, 2120 04:50 UTC   99y                                     no\n\nCERTIFICATE AUTHORITY   EXPIRES                  RESIDUAL TIME   EXTERNALLY MANAGED\nca                      Nov 06, 2030 09:11 UTC   9y              no\n!MISSING! etcd-ca\nfront-proxy-ca          Nov 06, 2030 09:11 UTC   9y              no\n\n```\n\n\n\n\n### 第二种方式\n\n\n```\ncontrollerManager:\n  extraArgs:\n    v: \"4\"\n    node-cidr-mask-size: \"19\"\n    deployment-controller-sync-period: \"10s\"\n    # 在 kubeadm 配置文件中设置证书有效期为 10 年\n    experimental-cluster-signing-duration: \"86700h\"\n    node-monitor-grace-period: \"20s\"\n    pod-eviction-timeout: \"2m\"\n    terminated-pod-gc-threshold: \"30\"\n    \n//2\nkubeadm alpha certs renew all --use-api\n\n//3\nkg csr -n kube-system\n\n//4 \nk certificate approve \u003c上面的查出来的csr\u003e\n\n\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithlin%2Fk8s-cert-99year","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwithlin%2Fk8s-cert-99year","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwithlin%2Fk8s-cert-99year/lists"}