Skip to content

Commit 57f76d4

Browse files
fix: AMIs on restart not booting up (#88)
* run `kubectl delete pods --all` on reboot so that airgapped instances return * misc: add changelog entry
1 parent e3b6674 commit 57f76d4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Use AWS CloudFormation to deploy an AMI running the latest Sourcegraph version!
7272
7373
### XL -->
7474

75+
- Fixed: Containers not able to be booted in an air gapped environment after an upgrade.
76+
7577
## v5.4.2198
7678

7779
## Updates

install/reboot.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ if [ -f ./sourcegraph-executor-k8s-charts.tgz ]; then
5454
else
5555
$LOCAL_BIN_PATH/helm --kubeconfig $KUBECONFIG_FILE upgrade -i -f ./override.yaml --version "$AMI_VERSION" executor sourcegraph/sourcegraph-executor-k8s
5656
fi
57+
# Clear out the old pods if they're still around
58+
$LOCAL_BIN_PATH/kubectl delete pods --all
5759

5860
# Restart k3s again in case it's still in crashloopbackoff
5961
# However, this should not affect a running instance

0 commit comments

Comments
 (0)