You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
创建好这个资源之后,接着我就对这个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
下面这个是我的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 资源配置的需求?
The text was updated successfully, but these errors were encountered: