在 AKS 中使用 NGINX 在 POD 中丢失 Dapr Side-Car

问题描述

我有一个在 Azure 中运行的 AKS 集群,并在其中部署了 Dapr 运行时以及其他一些使用 dapr.io/enabled、dapr.io/id 进行注释的测试服务部署。

Daprd side-car 容器实例与每个服务位于同一个 pod 中,所以一切都很好。

然后我安装了带有 Dapr side-car 注释的 Nginx,但是我没有看到 Daprd 容器实例与 Nginx 容器位于同一个 pod 中。

我按照 this article 部署了 Nginx,并通过 dapr-annotation.yaml 文件应用了 Dapr 注释

enter image description here

这是我的工作负载...

enter image description here

这是我的服务和入口...

enter image description here

已部署的 Service1 有侧车...

enter image description here

已部署的回声服务有侧车...

enter image description here

Nginx 没有 side-car 但有注释...

enter image description here

解决方法

该问题与 Helm 图表格式更改为以下内容有关。

enter image description here

由于这一变化,我现在可以在 NGINX 入口控制器上看到预期的 Darp 侧车。

enter image description here

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...