package install

import "gvisor.dev/gvisor/tools/gvisor_k8s_tool/cmd/install"

Package install provides a function to install gVisor in a k8s cluster.

Index

Functions

func Install

func Install(ctx context.Context, c *cluster.Cluster, image string, options spec.InstallOptions) error

Install installs runsc from the given image in the given cluster.

Types

type Command

type Command struct {
	Image               string
	Cluster             clusterflag.Flag
	DaemonSetName       string
	DaemonSetNamespace  string
	PauseContainerImage string
}

Command implements subcommands.Command.

func (*Command) Execute

func (c *Command) Execute(ctx context.Context, f *flag.FlagSet, _ ...any) subcommands.ExitStatus

Execute implements subcommands.Command.Execute. It installs gVisor in a Kubernetes cluster.

func (*Command) Name

func (*Command) Name() string

Name implements subcommands.Command.Name.

func (*Command) SetFlags

func (c *Command) SetFlags(f *flag.FlagSet)

SetFlags implements subcommands.Command.SetFlags.

func (*Command) Synopsis

func (*Command) Synopsis() string

Synopsis implements subcommands.Command.Synopsis.

func (*Command) Usage

func (*Command) Usage() string

Usage implements subcommands.Command.Usage.

Source Files

install.go

Version
v0.0.0-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
10 packages
Last checked
4 hours ago

Tools for package owners.