Skip to content

Commit

Permalink
fix: sealos cloud deploy script (labring#5417)
Browse files Browse the repository at this point in the history
* fix: sealos cloud deploy script

* fix: sealos cloud deploy script
  • Loading branch information
lingdie authored Feb 27, 2025
1 parent 9ea5253 commit db1f37a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
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

0 comments on commit db1f37a

Please sign in to comment.