Skip to content
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

Do not use default 6443 port for kube-apiserver in the container #638

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

makhov
Copy link
Contributor

@makhov makhov commented Jul 2, 2024

Revert #603
Fixes #637

Do not use the default 6443 port for kube-apiserver in the container.

Instead allow kube-apiserver binary to bind on privileged ports

Instead allow kube-apiserver bin to bind on privileged ports

Signed-off-by: Alexey Makhov <[email protected]>
@makhov makhov marked this pull request as ready for review July 2, 2024 09:44
@makhov makhov requested a review from a team as a code owner July 2, 2024 09:44
@@ -110,6 +111,11 @@ mkdir /etc/k0s && echo "$K0SMOTRON_K0S_YAML" > /etc/k0s/k0s.yaml
# Substitute the kine datasource URL from the env var
sed -i "s {{ .KineDataSourceURLPlaceholder }} ${K0SMOTRON_KINE_DATASOURCE_URL} g" /etc/k0s/k0s.yaml

{{if .PrivilegedPortIsUsed}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha, didn't realize we can use dot notation for string map keys. TIL 😄

@makhov makhov merged commit d509347 into k0sproject:main Jul 2, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kosmotron + capd doesn't work at all
2 participants