apiserver

package
v0.0.75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultServiceClusterIP = "10.53.0.1"
	DefaultClientQPS        = 100
	DefaultClientBurst      = 100
)
View Source
const (
	APIVersionsSupported = "v1=true,api/beta=true,api/alpha=false"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIServerConfig

type APIServerConfig struct {
	Certs      *certs.CertInfo
	Etcd       *etcd.EtcdConfig
	KubeConfig string
	Config     *rest.Config
	QPS        float32
	Burst      int
}

func NewAPIServerConfig added in v0.0.47

func NewAPIServerConfig(qps float32, burst int) APIServerConfig

func (*APIServerConfig) GenerateKubeConfig

func (a *APIServerConfig) GenerateKubeConfig(path string) error

GenerateKubeConfig will generate KubeConfig to allow access to cluster

func (*APIServerConfig) RunAPIServer

func (a *APIServerConfig) RunAPIServer(ctx context.Context, serviceClusterIP string) error

RunAPIServer will bootstrap an API server with only core resources enabled No additional controllers will be scheduled

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL