-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Install azure keyvault python package for k8s master image #17806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Install azure keyvault python package for k8s master image #17806
Conversation
Signed-off-by: Yun Li <[email protected]>
make $BUILD_OPTIONS $(K8S_OPTIONS) target/sonic-vs.img.gz | ||
mv target/sonic-vs.img.gz target/sonic-vs-k8s.img.gz | ||
make $BUILD_OPTIONS INCLUDE_KUBERNETES_MASTER=y target/sonic-vs.img.gz | ||
gzip -kd target/sonic-vs.img.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the keep option "-k" can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the keep option "-k" can be removed.
Yes, you are correct. Thanks for this comment, fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
build_debian.sh
Outdated
@@ -271,6 +271,8 @@ sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install docker-ce=${DOCKER_VERSIO | |||
|
|||
install_kubernetes () { | |||
local ver="$1" | |||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apt-get update
No need to update again.
Removed
build_debian.sh
Outdated
@@ -299,10 +301,9 @@ then | |||
install_kubernetes ${MASTER_KUBERNETES_VERSION} | |||
|
|||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get update |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apt-get update
No need to update again.
Removed
build_debian.sh
Outdated
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT curl -o /tmp/cri-dockerd.deb -fsSL \ | ||
https://github.com/Mirantis/cri-dockerd/releases/download/v${MASTER_CRI_DOCKERD}/cri-dockerd_${MASTER_CRI_DOCKERD}.3-0.debian-${IMAGE_DISTRO}_amd64.deb | ||
https://github.com/Mirantis/cri-dockerd/releases/download/v${MASTER_CRI_DOCKERD}/cri-dockerd_${MASTER_CRI_DOCKERD}.3-0.debian-bullseye_amd64.deb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bullseye
Fixed distro is not future-proof.
Have changed this back, the cri-dockerd latest version has bookworm version, I have upgraded the version to 0.3.10
@@ -271,6 +271,8 @@ sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install docker-ce=${DOCKER_VERSIO | |||
|
|||
install_kubernetes () { | |||
local ver="$1" | |||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get update | |||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y install gnupg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gnupg
This will install more package(s) into sonic image. Is it really needed? Your intention is to change master image only.
Yes, indeed need to install gnupg before install gpg file for bookworm, I have removed gnupg after installing the gpg file.
/azpw run |
/AzurePipelines run |
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
/azpw run |
/AzurePipelines run |
You have several pipelines (over 10) configured to build pull requests in this repository. Specify which pipelines you would like to run by using /azp run [pipelines] command. You can specify multiple pipelines using a comma separated list. |
/azpw ms_conflict |
/azpw ms_conflict |
build_debian.sh
Outdated
sudo https_proxy=$https_proxy LANG=C chroot $FILESYSTEM_ROOT curl -fsSL \ | ||
https://packages.cloud.google.com/apt/doc/apt-key.gpg | \ | ||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-key add - | ||
sudo LANG=C chroot $FILESYSTEM_ROOT apt-get -y remove gnupg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -2,7 +2,7 @@ | |||
|
|||
# This script is for kubernetes master image usage | |||
# Will mount kubernetes master disk and execute kubernetes entrance script | |||
|
|||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change?
Why I did it
Currently we will use AAD to do authentication with python language inside k8s master, we need to pre-install azure key-vault python packages.
Found some issues to fix when I tried to test k8s master image build.
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)