我目前在 上部署了一个 hello world 服务/svc/hello
,并且在我的 namerd internal
dtab 中添加了一个 dentry 为/svc/app => /svc/hello
.
我还部署了一个nginx
服务,它将作为我的入口控制器,并将所有流量转发到相关服务。最终它将进行标头剥离,仅向白名单 IP 范围内的开发人员公开管理服务等,但现在我通过以下配置使其保持非常简单:
server {
location / {
proxy_pass http://app;
}
}
但是,这些nginx
pod 无法启动,并出现错误
nginx:在 /etc/nginx/conf.d/default.conf:3 的上游“app”中找不到 [emerg] 主机
我需要做什么才能让 nginx 服务能够通过 linkerd 转发到应用程序服务?