如何在AKS上使用kubectl设置kube-proxy设置 [英] How to set kube-proxy settings using kubectl on AKS

查看:77
本文介绍了如何在AKS上使用kubectl设置kube-proxy设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读文档,该文档提供了kube-proxy的参数,但没有解释这些参数应在何处使用.我使用az aks create和azure-cli程序创建集群,然后获取凭据并使用kubectl.到目前为止,我所做的所有事情都涉及到yaml的服务和部署等,但是我不知道所有这些kube-proxy东西在哪里都适合.

I keep reading documentation that gives parameters for kube-proxy, but does not explain how where these parameters are supposed to be used. I create my cluster using az aks create with the azure-cli program, then I get credentials and use kubectl. So far everything I've done has involved yaml for services and deployments and such, but I can't figure out where all this kube-proxy stuff fits into all of this.

我已经用Google搜索了几天.我已经使用AKS在github上打开了问题.我曾在kubernetes闲暇频道问过,但没有人回应.

I've googled for days. I've opened question issues on github with AKS. I've asked on the kubernetes slack channel, but nobody has responded.

推荐答案

所有Kubernetes节点上的kube-proxy作为Kubernetes

The kube-proxy on all your Kubernetes nodes runs as a Kubernetes DaemonSet and its configuration is stored on a Kubernetes ConfigMap. To make any changes or add/remove options you will have to edit the kube-proxy DaemonSet or ConfigMap on the kube-system namespace.

$ kubectl -n kube-system edit daemonset kube-proxy

$ kubectl -n kube-system edit configmap kube-proxy

有关kube-proxy命令行选项的参考,您可以参考

For a reference on the kube-proxy command line options you can refer to here.

这篇关于如何在AKS上使用kubectl设置kube-proxy设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆