Skip to content

DNS optimization

Calvin Yu请求将github/fork/live77/feat/opt_dns合并到master

Created by: live77

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1951 (closed)

Special notes for reviewers:

Does this PR introduced a user-facing change?

DNS optimization for ks-console 
- Use ks-apiserver Service Name directly instead of ks-apiserver.kubesphere-system.svc as API's URL.
- Add a DNS cache plugin to caching the DNS results (dnscache)

Additional documentation, usage docs, etc.:

  1. Use ks-apiserver instead of ks-apiserver.kubesphere-system.svc to speedup dns lookup. (first query hit) below screenshot proves, after using ks-apiserver, the first dns lookup got the answer.
截屏2021-10-16 上午9 06 38
  1. Use dnscache module to enable local dns cache on the console server side. below screenshot shows the cache hit result, it works.
截屏2021-10-16 上午11 01 17

合并请求报告

加载中