Comments (4)
Let's make a schedule to support it
from rollouts.
apiVersion: rollouts.kruise.io/v1alpha1
kind: Rollout
metadata:
name: echoserver-rollout
namespace: sgt
spec:
objectRef:
workloadRef:
apiVersion: apps/v1
kind: Deployment
name: echoserver
strategy:
canary:
steps:
- replicas: 1
pause: {}
- replicas: 2
pause: {duration: 60}
- replicas: 2
trafficRoutings:
- gateway:
httpRouteName: echoserver
service: echoserver
Error from server: error when applying patch:
{"metadata":{"annotations":{"kubectl.kubernetes.io/last-applied-configuration":"{"apiVersion":"rollouts.kruise.io/v1alpha1","kind":"Rollout","metadata":{"annotations":{},"name":"echoserver-rollout","namespace":"sgt"},"spec":{"objectRef":{"workloadRef":{"apiVersion":"apps/v1","kind":"Deployment","name":"echoserver"}},"strategy":{"canary":{"steps":[{"pause":{},"replicas":1},{"pause":{"duration":60},"replicas":2},{"replicas":2}],"trafficRoutings":[{"gateway":{"httpRouteName":"echoserver"},"service":"echoserver"}]}}}}\n"}},"spec":{"strategy":{"canary":{"steps":[{"pause":{},"replicas":1},{"pause":{"duration":60},"replicas":2},{"replicas":2}]}}}}
to:
Resource: "rollouts.kruise.io/v1alpha1, Resource=rollouts", GroupVersionKind: "rollouts.kruise.io/v1alpha1, Kind=Rollout"
Name: "echoserver-rollout", Namespace: "sgt"
for: "a.yaml": admission webhook "vrollout.kb.io" denied the request: Spec.Strategy.Canary.Steps[0].steps: Invalid value: []v1alpha1.CanaryStep{v1alpha1.CanaryStep{Weight:(*int32)(nil), Replicas:(*intstr.IntOrString)(0xc000d6be20), Pause:v1alpha1.RolloutPause{Duration:(*int32)(nil)}}, v1alpha1.CanaryStep{Weight:(*int32)(nil), Replicas:(*intstr.IntOrString)(0xc000d6bec0), Pause:v1alpha1.RolloutPause{Duration:(*int32)(0xc0019e1f18)}}, v1alpha1.CanaryStep{Weight:(*int32)(nil), Replicas:(*intstr.IntOrString)(0xc000d6bf40), Pause:v1alpha1.RolloutPause{Duration:(*int32)(nil)}}}: weight cannot be empty for traffic routing
openkruise/kruise-rollout:v0.2.0 我也遇到了,weight 不允许 为空
from rollouts.
Because you have configured trafficRoutings, you need traffic scheduling, you must configure weight. why you want weight to be empty?
from rollouts.
嗯 了解了
因为之前参考微信文章的例子
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: echoserver
spec:
replicas: 5
template:
spec:
containers:
- name: echoserver
image: cilium/echoserver:latest
---
apiVersion: rollouts.kruise.io/v1alpha1
kind: Rollout
metadata:
name: rollouts-demo
spec:
objectRef:
workloadRef:
apiVersion: apps/v1
kind: StatefulSet
name: echoserver
strategy:
canary:
steps:
- replicas: 1
pause: {}
- replicas: 2
pause: {duration: 60}
- replicas: 2
from rollouts.
Related Issues (20)
- 当Pod为非running一段时间后,kuirse rollout状态是否可以增加timeout或者terminated
- 通过partition方式进行多批次发布,在某个批次阶段发现有问题希望执行回滚deploy HOT 3
- How to partition update an native statefulset in batch HOT 1
- Testing the health of a rollout
- 无法删除rollout HOT 6
- `kubectl-kruise rollout approve` cannot support for v1beta1 rollout resource HOT 2
- kruise-api rollout api 版本与controller 不一致 HOT 4
- Deployment randomly stuck when using with KubeVela
- no endpoints available for service "kruise-rollout-webhook-service"
- 将发布策略从 batch 切换到canary 报错 HOT 1
- rollout触发下一步导致已经被下线的deployment再次重新拉起 HOT 1
- 变更发布计划缩容Replicas不生效 HOT 1
- [Proposal] 流量路由规则支持Path和QueryParams
- Two consecutive ContainerRecreateRequests are initiated for a pod, the second one remains pending HOT 1
- 添加 customNetworkRefs 指定istio作为流量规则,不会触发pod更新
- Created non-essential canary service even though I didn't explicitly set enableExtraWorkloadForCanary=true
- strict decoding error: unknown field "spec.strategy.enableExtraWorkloadForCanary"
- Incorrect Traffic Routing During Continuous Releases (for both partition style and canary style) HOT 1
- 多批次发布是否可以支持同时控制多个版本的发布
- annotations in mse.lua may be nil
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rollouts.