Comments (1)
##Environment Details
Reproduced using VERSION=v1.28.8+k3s1
Validated using COMMIT=70bd37793f0eadb9de3f8e5a224d2a9eb75c38b7
Infrastructure
- Cloud
Node(s) CPU architecture, OS, and version:
Linux 5.14.21-150500.53-default x86_64 GNU/Linux
PRETTY_NAME="SUSE Linux Enterprise Server 15 SP5"
Config.yaml:
node-external-ip: 8.6.5.5
token: YOUR_TOKEN_HERE
write-kubeconfig-mode: 644
debug: true
profile: cis
selinux: true
protect-kernel-defaults: true
Reproduction
$ curl https://get.k3s.io --output install-"k3s".sh
$ sudo chmod +x install-"k3s".sh
$ sudo groupadd --system etcd && sudo useradd -s /sbin/nologin --system -g etcd etcd
$ sudo modprobe ip_vs_rr
$ sudo modprobe ip_vs_wrr
$ sudo modprobe ip_vs_sh
$ sudo printf "on_oovm.panic_on_oom=0 \nvm.overcommit_memory=1 \nkernel.panic=10 \nkernel.panic_ps=1 \nkernel.panic_on_oops=1 \n" > ~/90-kubelet.conf
$ sudo cp 90-kubelet.conf /etc/sysctl.d/
$ sudo systemctl restart systemd-sysctl
$ COMMIT=70bd37793f0eadb9de3f8e5a224d2a9eb75c38b7
$ sudo INSTALL_K3S_COMMIT=$COMMIT INSTALL_K3S_SKIP_ENABLE=true ./install-k3s.sh
$ sudo /usr/local/bin/k3s server --datastore-endpoint "test" --disable-etcd -s "https://192.168.1.0:6443"
Results:
//before update
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x21415e2]
goroutine 1 [running]:
github.com/k3s-io/k3s/pkg/clientaccess.(*Info).Get(0x0, {0x5f77d5c, 0x8}, {0x0, 0x0, 0x0})
/go/src/github.com/k3s-io/k3s/pkg/clientaccess/token.go:279 +0x42
github.com/k3s-io/k3s/pkg/etcd.ClientURLs({0xc0007bfda0?, 0x0?}, 0xc000a5b0e0?, {0x0, 0x0})
/go/src/github.com/k3s-io/k3s/pkg/etcd/etcd.go:1367 +0x6d
github.com/k3s-io/k3s/pkg/cluster.(*Cluster).Start(0xc0007bfda0, {0x6e6d370?, 0xc000a5b0e0})
/go/src/github.com/k3s-io/k3s/pkg/cluster/cluster.go:47 +0x105
github.com/k3s-io/k3s/pkg/daemons/control.prepare({0x6e6d370, 0xc000a5b0e0}, 0xc000761408)
/go/src/github.com/k3s-io/k3s/pkg/daemons/control/server.go:262 +0x2ff
github.com/k3s-io/k3s/pkg/daemons/control.Server({0x6e6d370?, 0xc000a5b0e0}, 0xc000761408)
/go/src/github.com/k3s-io/k3s/pkg/daemons/control/server.go:35 +0xf7
github.com/k3s-io/k3s/pkg/server.StartServer({0x6e6d370?, 0xc000a5b0e0}, 0xc000761400, 0x1?)
/go/src/github.com/k3s-io/k3s/pkg/server/server.go:56 +0x85
github.com/k3s-io/k3s/pkg/cli/server.run(0xc000a922c0, 0xa730500, {0xc00131e9b0, 0x0, 0x0?}, {0xc00131e9b0, 0x0, 0xa2cb4e0?})
/go/src/github.com/k3s-io/k3s/pkg/cli/server/server.go:490 +0x33ba
github.com/k3s-io/k3s/pkg/cli/server.Run(0xc000a922c0?)
/go/src/github.com/k3s-io/k3s/pkg/cli/server/server.go:44 +0x2f
github.com/urfave/cli.HandleAction({0x53519a0?, 0x6612298?}, 0x6?)
/go/pkg/mod/github.com/urfave/[email protected]/app.go:524 +0x50
github.com/urfave/cli.Command.Run({{0x5f554ab, 0x6}, {0x0, 0x0}, {0x0, 0x0, 0x0}, {0x60fe092, 0x15}, {0xc0012ba750, ...}, ...}, ...)
/go/pkg/mod/github.com/urfave/[email protected]/command.go:175 +0x63e
github.com/urfave/cli.(*App).Run(0xc000417880, {0xc0000497a0, 0xd, 0xe})
/go/pkg/mod/github.com/urfave/[email protected]/app.go:277 +0xb27
main.main()
/go/src/github.com/k3s-io/k3s/cmd/server/main.go:81 +0xbfb
//after code fix implementation
$ sudo /usr/local/bin/k3s server --datastore-endpoint "test" --disable-etcd -s "https://192.168.1.0:6443"
FATA[0000] invalid flag use; cannot use --disable-etcd with --datastore-endpoint
from k3s.
Related Issues (20)
- Fail to run static pod without master running HOT 2
- --node-external-ip can not add annotate flannel.alpha.coreos.com/public-ip-overwrite HOT 1
- Pods are going into pending state after upgrading from v1.26.12-k3s1 to v1.27.11-k3s1 and v1.28.5-k3s1 (Issue is quite random)
- leader-elected etcd controllers not consistently functional when leader election/lease mismatches occur HOT 5
- Update minio-go to `v7.0.70` or newer HOT 2
- Embedded helm controller does not track owner references properly HOT 3
- Network policy in dual-stack cluster stops allowing ingress after pod restart HOT 16
- ingresses stop working every now and then HOT 8
- Create a new single node cluster with embedded registry mirror does not work HOT 5
- K3S startup stuck in a deadlock when a KMS provider is configured and the node is rebooted HOT 4
- Expose k3s metrics over http HOT 2
- Capturing K3s metrics over http/https from VM HOT 1
- Agent node IP not replaced with Tailscale VPN IP HOT 8
- Pods not always creating logs HOT 1
- Best practice of setting the cluster name at deployment level HOT 4
- k3s crashes if I do not start the cloud-provider HOT 1
- sh: 0: cannot open –: No such file
- Report the use of components with vulnerabilities in k3s HOT 1
- Update etcd to >= v3.5.13 HOT 1
- Improve documentation for Tailscale + K3s with an example ACL 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.