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

fix: sealos cloud deploy script #5417

Merged
merged 2 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deploy/cloud/etc/sealos/.env.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
cloudDomain={{ .cloudDomain }}
cloudPort={{ .cloudPort }}
mongodbUri={{ .mongodbUri }}
mongodbUri={{ .mongodbUri }}
7 changes: 3 additions & 4 deletions deploy/cloud/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ jwtInternal=""
jwtRegional=""
jwtGlobal=""

function prepare {
# source .env
source etc/sealos/.env
source etc/sealos/.env

function prepare {
# kubectl apply namespace, secret and mongodb
kubectl apply -f manifests/namespace.yaml

Expand Down Expand Up @@ -292,7 +291,7 @@ function sealos_run_frontend {
--env transferEnabled="true" \
--env rechargeEnabled="false" \
--env jwtInternal="$jwtInternal"

echo "run template frontend"
sealos run tars/frontend-template.tar \
--env cloudDomain=$cloudDomain \
Expand Down
9 changes: 7 additions & 2 deletions scripts/cloud/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,13 @@ spec:
controller:
autoscaling:
enabled: true
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerm:
matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
tolerations:
- effect: "NoExecute"
operator: "Exists"
Expand Down
Loading