Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #317 from sofastack/feat.image-fix
Browse files Browse the repository at this point in the history
修改基座image和模块url
  • Loading branch information
gold300jin authored Nov 23, 2023
2 parents 7c33953 + 1899470 commit ada50fe
Show file tree
Hide file tree
Showing 17 changed files with 103 additions and 103 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/module_controller_ci_build_deploy_to_aliyun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ jobs:
run: |
podname=$(kubectl get pod -l app=dynamic-stock -o name)
kubectl exec -it $podname -- sh -c 'ls -al'
kubectl exec -it $podname -- sh -c 'ls -al logs'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "dynamic-provider:1.0.0 started" logs/stock-mng/sofa-ark/*.log'
kubectl exec -it $podname -- sh -c 'ls -al ~/'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "Install Biz: provider:1.0.2 success" ~/logs/sofa-ark/*.log'
- name: scaledown module
run:
Expand Down Expand Up @@ -251,10 +251,10 @@ jobs:
run: |
podname=$(kubectl get pod -l app=dynamic-stock -o name)
kubectl exec -it $podname -- sh -c 'ls -al'
kubectl exec -it $podname -- sh -c 'ls -al logs'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "dynamic-provider:1.0.0 started" logs/stock-mng/sofa-ark/*.log'
kubectl exec -it $podname -- sh -c 'ls -al ~/'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "Install Biz: provider:1.0.2 success" ~/logs/sofa-ark/*.log'
- name: delete module
run: |
Expand Down Expand Up @@ -306,10 +306,10 @@ jobs:
run: |
podname=$(kubectl get pod -l app=dynamic-stock -o name)
kubectl exec -it $podname -- sh -c 'ls -al'
kubectl exec -it $podname -- sh -c 'ls -al logs'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "dynamic-provider:1.0.0 started" logs/stock-mng/sofa-ark/*.log'
kubectl exec -it $podname -- sh -c 'ls -al ~/'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "Install Biz: provider:1.0.2 success" ~/logs/sofa-ark/*.log'
- name: delete pod
run: |
Expand Down Expand Up @@ -367,10 +367,10 @@ jobs:
run: |
podname=$(kubectl get pod -l app=dynamic-stock -o name)
kubectl exec -it $podname -- sh -c 'ls -al'
kubectl exec -it $podname -- sh -c 'ls -al logs'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng'
kubectl exec -it $podname -- sh -c 'ls -al logs/stock-mng/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "dynamic-provider:1.0.0 started" logs/stock-mng/sofa-ark/*.log'
kubectl exec -it $podname -- sh -c 'ls -al ~/'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs'
kubectl exec -it $podname -- sh -c 'ls -al ~/logs/sofa-ark'
kubectl exec -it $podname -- sh -c 'grep "Install Biz: provider:1.0.2 success" ~/logs/sofa-ark/*.log'
- name: scaledown module then delete deployment
run:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ spec:
template:
spec:
module:
name: dynamic-provider
version: '2.0.0' # 注意:这里将 version 字段从 1.0.0 修改为了 2.0.0 即可实现模块新版本分组发布
name: provider
version: '2.0.0' # 注意:这里将 version 字段从 1.0.2 修改为了 2.0.0 即可实现模块新版本分组发布
# 注意:url 字段可以修改为新的 jar 包地址,也可以不用修改
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.0-ark-biz.jar
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.2-ark-biz.jar
replicas: 2
operationStrategy:
upgradePolicy: install_then_uninstall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ spec:
template:
spec:
module:
name: dynamic-provider
version: '1.0.0'
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.0-ark-biz.jar
name: provider
version: '1.0.2'
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.2-ark-biz.jar
replicas: 2
operationStrategy: # 此处可自定义发布运维策略
upgradePolicy: installThenUninstall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ spec:
template:
spec:
module:
name: dynamic-provider
version: '1.0.0'
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.0-ark-biz.jar
name: provider
version: '1.0.2'
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.2-ark-biz.jar
replicas: 2 # 注意:在此处修改模块实例 Module 副本数,实现扩缩容
operationStrategy:
upgradePolicy: installThenUninstall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ spec:
template:
spec:
module:
name: dynamic-provider
version: '1.0.0'
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.0-ark-biz.jar
name: provider
version: '1.0.2'
url: http://serverless-opensource.oss-cn-shanghai.aliyuncs.com/module-packages/stable/dynamic-provider-1.0.2-ark-biz.jar
replicas: 1
operationStrategy:
needConfirm: false
Expand Down
Loading

0 comments on commit ada50fe

Please sign in to comment.