mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 11:42:14 +00:00
Add a pause image for the net container.
The pause image is a 240KB image that simply pauses waiting on a signal. Use this for the net container which only needs to act as a placeholder. Current net image is ~2.5MB. From my tests, this reduces startup time for the net container from ~14s to ~6s.
This commit is contained in:
8
build/pause/pause.go
Normal file
8
build/pause/pause.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package main
|
||||
|
||||
import "syscall"
|
||||
|
||||
func main() {
|
||||
// Halts execution, waiting on signal.
|
||||
syscall.Pause()
|
||||
}
|
Reference in New Issue
Block a user