Skip to content

Commit

Permalink
chroe: add template cluster image for sealos cloud upgrad. (labring#4388
Browse files Browse the repository at this point in the history
)

* feat: add template cluster images for cloud upgrade.

Signed-off-by: yy <[email protected]>

* chore: fix file typo.

Signed-off-by: yy <[email protected]>

* chore: fix script file path.

Signed-off-by: yy <[email protected]>

* chore: change image tag.

Signed-off-by: yy <[email protected]>

---------

Signed-off-by: yy <[email protected]>
  • Loading branch information
lingdie authored Dec 7, 2023
1 parent 3963a1a commit e84c9e3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/cloud/upgrade/template/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# template cluster image for sealos cloud upgrade
1 change: 1 addition & 0 deletions scripts/cloud/upgrade/template/images/shim/images
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ghcr.io/labring/sealos-applaunchpad-frontend:v5.0.0
8 changes: 8 additions & 0 deletions scripts/cloud/upgrade/template/kubefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM scratch

USER 65532:65532

COPY registry registry
COPY scripts scripts

CMD ["bash scripts/entrypoint.sh"]
4 changes: 4 additions & 0 deletions scripts/cloud/upgrade/template/scripts/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
# This script is used to upgrade the cloud

bash scripts/upgrade-images.sh
4 changes: 4 additions & 0 deletions scripts/cloud/upgrade/template/scripts/upgrade-images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

# This script is used to upgrade the images for sealos cloud components
kubectl set image deployment/applaunchpad-frontend -n applaunchpad-frontend applaunchpad-frontend=ghcr.io/labring/sealos-applaunchpad-frontend:v5.0.0

0 comments on commit e84c9e3

Please sign in to comment.