[英]Istio 1.0 does not inject envoy proxy to pods on Kubernetes 1.9.3
I have Kubernetes 1.9.3 cluster and deployed Istio 1.0.12 on it. 我有Kubernetes 1.9.3集群并在其上部署了Istio 1.0.12。 Create a namespace with istio-injection=enabled and created a deployment in that namespace.
使用istio-injection = enabled创建一个名称空间,并在该名称空间中创建一个部署。 I don't see envoy proxy getting automatically injected into the pods created by deployments.
我看不到特使代理会自动注入到部署创建的Pod中。
Istio calls kube-apiserver to inject envoy proxy into the pods. Istio调用kube-apiserver将特使代理注入到pod中。 Two plugins need to be enabled in kube-apiserver for proxy injection to work.
需要在kube-apiserver中启用两个插件,代理注入才能工作。
kube-apiserver runs as a static pod and the pod manifest is available at /etc/kubernetes/manifests/kube-apiserver.yaml
. kube-apiserver作为静态容器运行,并且容器清单可从
/etc/kubernetes/manifests/kube-apiserver.yaml
。 Update the line as shown below to include MutatingAdmissionWebhook
and ValidatingAdmissionWebhook
plugins (available since Kubernetes 1.9). 更新如下所示的行,以包含
MutatingAdmissionWebhook
和ValidatingAdmissionWebhook
插件(自Kubernetes 1.9起可用)。
- --admission-control=NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota
The kubelet will detect the changes and re-create kube-apiserver pod automatically. Kubelet将检测到更改并自动重新创建kube-apiserver容器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.