Skip to content

Commit

Permalink
bump: golang v1.21.5
Browse files Browse the repository at this point in the history
- also update hacking scripts and troubleshooting

fixes: #76
  • Loading branch information
hsinhoyeh committed Jun 17, 2024
1 parent 2841101 commit 1d8305a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.5-alpine3.19 AS build
FROM golang:1.21.6-bookworm AS build
WORKDIR /src
COPY . .

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GITCOMMITID=$(shell git rev-parse HEAD)
tidy:
./gomodtidy.sh

docker:
builddocker:
docker build -t footprintai/multikf:v1 \
--no-cache -f Dockerfile .
docker push footprintai/multikf:v1
Expand Down
31 changes: 9 additions & 22 deletions hack/kubeadm/0.install_kubeadm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,21 @@

mkdir -p /etc/apt/keyrings

## install v1.25

echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.25/deb/ /" | tee /etc/apt/sources.list.d/kubernetes.list
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.25/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg

## verify pager /etc/apt/sources.list.d/kubernetes.list
## deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.25/deb/ /

apt-get update
apt-get install -y kubelet=1.25.14-1.1 kubeadm=1.25.14-1.1 kubectl=1.25.14-1.1
apt-mark hold kubeadm kubelet kubectl

## version v1.24.17 (this requires additional configuration as apt-get would do that)
#curl -LO https://dl.k8s.io/release/v1.24.17/bin/linux/amd64/kubectl \
# && chmod +x kubectl \
# && mv kubectl /usr/bin/
#curl -LO https://dl.k8s.io/release/v1.24.17/bin/linux/amd64/kubeadm \
# && chmod +x kubeadm \
# && mv kubeadm /usr/bin/
#curl -LO https://dl.k8s.io/release/v1.24.17/bin/linux/amd64/kubelet \
# && chmod +x kubelet \
# && mv kubelet /usr/bin/
## install crictl
#curl -LO https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.26.0/crictl-v1.26.0-linux-amd64.tar.gz \
# && tar xzvf crictl-v1.26.0-linux-amd64.tar.gz \
# && chmod +x crictl \
# && mv crictl /usr/bin/
# add missing package
# apt-get install ethtool socat conntrack -y
### install v1.27.15
#echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.27/deb/ /" | tee /etc/apt/sources.list.d/kubernetes.list
#curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.27/deb/Release.key | gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
#apt-get update
#apt-get install -y kubelet=1.27.15-1.1 kubeadm=1.27.15-1.1 kubectl=1.27.15-1.1
#

apt-mark hold kubeadm kubelet kubectl

# if encountered the following error during install kubelet
# W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: NO_PUBKEY B53DC80D13EDEF05
Expand Down
11 changes: 11 additions & 0 deletions hack/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,14 @@ then run `sudo sysctl -p` to update such changes into system
during installation gpu-operator on kind (kubernetes in docker), `nvidia-operator-validator-67zsz` would failed to run due to `/sbin/ldconfig.real` is not found.
the simple workaround would be fixed with the symbolic link: `ln -s /sbin/ldconfig /sbin/ldconfig.real`

#### etcd keep rebooting ####

when your etcd is keep rebooting, especially you are using kubeadm with v1.27+,
you might want to turn the flag on by editing the file `/etc/containerd/config.toml` :

```
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
```

ref issue: https://github.com/etcd-io/etcd/issues/13670

0 comments on commit 1d8305a

Please sign in to comment.