Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollout配置加入trafficRoutings模块,灰度发布时候一直处于Progressing状态 #234

Open
HelonLee135 opened this issue Oct 22, 2024 · 0 comments

Comments

@HelonLee135
Copy link

HelonLee135 commented Oct 22, 2024

下面这个是我的Rollout资源类型的配置:
apiVersion: rollouts.kruise.io/v1alpha1
kind: Rollout
metadata:
name: rollouts-xiaodu
namespace: xiaodu-test
annotations:
rollouts.kruise.io/rolling-style: partition
spec:
objectRef:
workloadRef:
apiVersion: apps/v1
kind: Deployment
name: auth
strategy:
canary:
steps:
- replicas: 1
matches:
- headers:
- name: user-agent
type: Exact
value: xiaodu
weight: 10
- replicas: 50%
- replicas: 100%
trafficRoutings:
- service: auth
ingress:
classType: istio
name: xiaodu-test-gateway

创建好这个资源之后,接着我就对这个auth服务进行滚动更新,当我查看rollouts状态的时候:
[root@k8s-master01 /root ]# kubectl get rollout -n xiaodu-test NAME STATUS CANARY_STEP CANARY_STATE MESSAGE AGE rollouts-xiaodu Progressing 3 Completed workload deployment is completed 2m59s

一直显示Progressing 的状态?如果我去掉这个trafficRoutings 功能代码的话,那么就是正常进行灰度发布的。但是由于我的入口流量是经过istio,的而这个istio的gateway 名称为xiaodu-test-gateway。所以这么配置了,请问这是我的配置有问题?还是怎么回事。有清楚的兄弟帮我看看。感谢~

另外还有一个问题就是在不使用istio 作为入口流量的时候,我的这个auth服务是经过一个网关auth-gateway才到达它的。也就是入口流量就变成了这个auth-gateway了,而这个auth-gateway是通过暴露nodeport端口到集群外部的一个nginx 进行代理转发的。nginx 流量转发到这个auth-gateway nodeport端口再到auth服务。那么使用这个nodeport的入口流量的方式,我不添加这个trafficRoutings 相关 的内容,是否满足我上面这个rollouts 资源配置的需求?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant