Skip to content

Commit

Permalink
chore(deploy): optimize install-on-linux.sh (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
bxy4543 authored Apr 7, 2023
1 parent 13a06df commit 40e8e0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy/scripts/install-on-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,16 @@ fi

set -e

# pull sealos cluster images
sealos pull labring/kubernetes:v1.24.9 labring/flannel:v0.19.0 labring/helm:v3.8.2 labring/openebs:v1.9.0 labring/cert-manager:v1.8.0 lafyun/laf:latest

# install k8s cluster
sealos run labring/kubernetes:v1.24.9 labring/flannel:v0.19.0 labring/helm:v3.8.2 --single

# taint master node
NODENAME=$(kubectl get nodes -ojsonpath='{.items[0].metadata.name}')
kubectl taint node $NODENAME node-role.kubernetes.io/master-
kubectl taint node $NODENAME node-role.kubernetes.io/control-plane-
kubectl taint node $NODENAME node-role.kubernetes.io/master- || true
kubectl taint node $NODENAME node-role.kubernetes.io/control-plane- || true

# label master node as a app node
kubectl label node $NODENAME laf.dev/node.type=runtime
Expand Down

0 comments on commit 40e8e0b

Please sign in to comment.