Comments (6)
My k3s.service
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
Wants=network-online.target
After=network-online.target
[Install]
WantedBy=multi-user.target
[Service]
Type=notify
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-/etc/systemd/system/k3s.service.env
KillMode=process
Delegate=yes
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always
RestartSec=5s
ExecStartPre=/bin/sh -xc '! /usr/bin/systemctl is-enabled --quiet nm-cloud-setup.service'
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStart=/usr/local/bin/k3s \
server --cluster-init --node-ip=<node-ip> \
--kube-proxy-arg=ipvs-strict-arp=true \
--disable=servicelb
from k3s.
I'm not aware of any issues where k3s ignores CLI flags.
Are you sure you disabled it on all the servers?
What is the output of kubectl get node -o yaml | grep node-args
?
from k3s.
You were right. I apparently missed one server, and forgot to close this issue. It's a bit tedious and counterintuitive having to set this flag on every server individually for it to have any effect. But that's a different story...
from k3s.
Oh, one thing that I've stumbled across in multiple occasions. The correct way to add the parameter is
--disable=servicelb
is that correct? Because in several places I've seen
--disable servicelb
or
--disable=svclb
and other variants, some with, some without equal sign. Some even with a trailing \ with an empty row below...
from k3s.
It's a bit tedious and counterintuitive having to set this flag on every server individually for it to have any effect.
It's not ineffective - the controller doesn't run on the servers where its disabled. However If you leave it enabled on one, that server will run the controller which takes action on the cluster as a whole. I don't think it's a big ask to have servers configured consistently.
is that correct?
--disable=servicelb
and --disable servicelb
are treated identically. The golang flag parser treats values the same regardless of whether they're in the same arg separated by an =, or in a separate arg.
--disable=svclb
does nothing.
from k3s.
It's not a big ask in and of itself, but it breaks with the single source of truth principle. Just my two cents... Either way, my problem is solved. Thanks nevertheless!
from k3s.
Related Issues (20)
- [Release-1.27] - New k3s server flag: --write-kubeconfig-own or --write-kubeconfig-group HOT 1
- Install script fails to install v1.28.5 when version is specified HOT 1
- k3s is unable to start sidecar container HOT 4
- Node Problem Detector guidelines?
- Incorrect warning message for expiring K3s CA certificates HOT 1
- [Release-1.29] - Incorrect warning message for expiring K3s CA certificates HOT 1
- [Release-1.28] - Incorrect warning message for expiring K3s CA certificates HOT 1
- [Release-1.27] - Incorrect warning message for expiring K3s CA certificates HOT 1
- Agent certificate generation retry causes agents to bypass local loadbalancer
- sql: Scan error on column index 0, name \"prev_revision\": converting NULL to int64 is unsupported HOT 1
- Missing log information in Windows HOT 1
- [Release-1.29] - Agent certificate generation retry causes agents to bypass local loadbalancer HOT 1
- [Release-1.28] - Agent certificate generation retry causes agents to bypass local loadbalancer HOT 1
- [Release-1.27] - Agent certificate generation retry causes agents to bypass local loadbalancer HOT 1
- Etcd s3 config secret support
- Snapshot retention does not work with etcd-s3-folder HOT 6
- K3S server doesn't start on RHEL9 HOT 1
- Flannel-external-ip is ignored in cloud environments? HOT 11
- RBAC Authentication for embedded etcd HOT 1
- Remove `DisableCCM` from `CriticalControlArgs` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k3s.