This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1567 from kinvolk/imran/update-k8s-to-1.21.3
Update k8s to 1.21.4
- Loading branch information
Showing
26 changed files
with
59 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
assets/charts/control-plane/kubelet/container-image/Dockerfile
This file was deleted.
Oops, something went wrong.
65 changes: 3 additions & 62 deletions
65
assets/charts/control-plane/kubelet/container-image/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,6 @@ | ||
# Lokomotive Kubelet Image | ||
|
||
This image is built on top of the Typhoon Kubelet image. This image includes a wrapper script that runs `isciadm` in the host namespace. This ensures that all the `isciadm` libraries are loaded from the host. | ||
To build a new Kubelet image for Lokomotive create PR against the `kinvolk-master` branch in the repository | ||
https://github.com/kinvolk/kubelet and follow the instructions in the | ||
[README](https://github.com/kinvolk/kubelet/blob/kinvolk-master/README.md#build-image) | ||
|
||
We also use `sed` and `bash` of the image to run the `ca-syncer` init container. | ||
|
||
## Updating Image Tag | ||
|
||
In this directory run the following command to update the Kubernetes version: | ||
|
||
```bash | ||
export NEW_VERSION= | ||
``` | ||
|
||
```bash | ||
export CURRENT_VERSION=$(grep ^FROM Dockerfile | cut -d":" -f2) | ||
sed -i "s|$CURRENT_VERSION|$NEW_VERSION|g" Dockerfile | ||
``` | ||
|
||
## Building Image | ||
|
||
```bash | ||
export IMAGE_URL=quay.io/kinvolk/kubelet | ||
``` | ||
|
||
### x86 | ||
|
||
```bash | ||
export ARCH=amd64 | ||
|
||
docker build -t $IMAGE_URL:$NEW_VERSION-$ARCH . && docker push $IMAGE_URL:$NEW_VERSION-$ARCH | ||
``` | ||
|
||
### ARM | ||
|
||
```bash | ||
export ARCH=arm64 | ||
|
||
docker build -t $IMAGE_URL:$NEW_VERSION-$ARCH . && docker push $IMAGE_URL:$NEW_VERSION-$ARCH | ||
``` | ||
|
||
### Combined image tag | ||
|
||
Now make sure you have `"experimental": "enabled"` in your | ||
`~/.docker/config.json` (surrounded by `{` and `}` if the file is otherwise | ||
empty). | ||
|
||
When all images are built on the respective architectures and pushed they can | ||
be combined through a manifest to build a multiarch image: | ||
|
||
```bash | ||
docker manifest create $IMAGE_URL:$NEW_VERSION \ | ||
--amend $IMAGE_URL:$NEW_VERSION-amd64 \ | ||
--amend $IMAGE_URL:$NEW_VERSION-arm64 | ||
|
||
docker manifest annotate $IMAGE_URL:$NEW_VERSION \ | ||
$IMAGE_URL:$NEW_VERSION-amd64 --arch=amd64 --os=linux | ||
|
||
docker manifest annotate $IMAGE_URL:$NEW_VERSION \ | ||
$IMAGE_URL:$NEW_VERSION-arm64 --arch=arm64 --os=linux | ||
|
||
docker manifest push $IMAGE_URL:$NEW_VERSION | ||
``` | ||
|
||
> **NOTE**: Above commands can be run from any machine. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.