简体   繁体   English

你如何清除/刷新 GKE 中的 kube-dns 缓存

[英]How do you clear/flush kube-dns cache in GKE

How do you clear the Kube-dns cache in Google Kube.netes. Google Kube.netes 中如何清除 Kube-dns 缓存。

Thanks谢谢

Unlike kube-dns cloud dns won't maintain any servers instead it caches data locally in each node.与 kube-dns cloud dns 不同,它不会维护任何服务器,而是在每个节点本地缓存数据。 Compute engine metadata server performs this function and we can't send any manual interrupts for clearing the cache from metadata servers.计算引擎元数据服务器执行此 function,我们无法发送任何手动中断来清除元数据服务器的缓存。

So, if you have configured a load balancer for exposing your gke environment to outer world you can perform cache invalidation and if you didn't configured any LB you can disable cloud dns and enable it again for maintaining the dns records first create a kube-dns deployment transfer the configs from cloud dns to kube-dns and now disable and re-enable cloud dns for gke.因此,如果您配置了一个负载均衡器以将您的 gke 环境暴露给外部世界,您可以执行 缓存失效,如果您没有配置任何 LB,您可以禁用云 dns 并再次启用它以维护 dns 记录首先创建一个 kube- dns 部署将配置从云 dns 传输到 kube-dns,现在为 gke 禁用并重新启用云 dns。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 GKE 上禁用 Kube-DNS - How to disable Kube-DNS on GKE 为什么 kube-dns SRV 条目在 GKE 集群中服务的端口号为 0? - Why do kube-dns SRV entries have 0 for the port number of a service in a GKE cluster? prometheus-kube-stack:如何在 GCP GKE - v1.21.10-gke.2000 上禁用节点导出器和 Grafana - prometheus-kube-stack: How to disable node exporters & Grafana on GCP GKE - v1.21.10-gke.2000 解析 GKE 中的 pod DNS - Resolving pod in GKE DNS 如何清除firebase缓存? - How to clear firebase cache? 如何清除 AWS SageMaker 上笔记本实例的持久存储? - How do you clear the persistent storage for a notebook instance on AWS SageMaker? 如何在 GKE 上使用 Helm 重用动态配置的 PersistentVolumes? - How can you reuse dynamically provisioned PersistentVolumes with Helm on GKE? 使入口/服务公开 DNS 在 GKE 上可解析 - Make ingresses/services publicly DNS resolvable on GKE 如何清除 NDB 中特定 model 的缓存 - How to clear cache for specific model in NDB 如何向 Kube.netes nginx (GKE) 提供 letsencrypt 证书? - How do I present letsencrypt certificates to Kubernetes nginx (GKE)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM