constants

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataDir        = "data/"
	ClusterFile    = DataDir + "tke.json"
	ClusterLogFile = DataDir + "tke.log"

	ProviderConfigFile = "provider/baremetal/conf/config.yaml"

	HooksDir             = "hooks/"
	PreInstallHook       = HooksDir + "pre-install"
	PostClusterReadyHook = HooksDir + "post-cluster-ready"
	PostInstallHook      = HooksDir + "post-install"

	DockerCertsDir = "/etc/docker/certs.d"

	DefaultTeantID = "default"

	DevRegistryDomain    = "docker.io"
	DevRegistryNamespace = "tkestack"
	ImagesFile           = "images.tar.gz"
	ImagesPattern        = DevRegistryNamespace + "/*"

	OIDCClientSecretFile = DataDir + "oidc_client_secret"
	CACrtFile            = DataDir + "ca.crt"
	CAKeyFile            = DataDir + "ca.key"
	FrontProxyCACrtFile  = DataDir + "front-proxy-ca.crt"
	ServerCrtFile        = DataDir + "server.crt"
	ServerKeyFile        = DataDir + "server.key"
	AdminCrtFile         = DataDir + "admin.crt"
	AdminKeyFile         = DataDir + "admin.key"
	KubeconfigFile       = DataDir + "admin.kubeconfig"

	CACrtFileBaseName      = "ca.crt"
	CAKeyFileBaseName      = "ca.key"
	ServerCrtFileBaseName  = "server.crt"
	ServerKeyFileBaseName  = "server.key"
	AdminCrtFileBaseName   = "admin.crt"
	AdminKeyFileBaseName   = "admin.key"
	KubeconfigFileBaseName = "admin.kubeconfig"

	AuthzWebhookNodePort = 31138
)
View Source
const (
	RegistryHTTPOptions = `-d \
--name registry-http \
--restart always \
-p 80:5000 \
-v /opt/tke-installer/registry:/var/lib/registry`

	RegistryHTTPSOptions = `` /* 270-byte string literal not displayed */

)
View Source
const (
	CPURequest                = 2
	MemoryRequest             = 4  // GiB
	FirstNodeDiskSpaceRequest = 30 // GiB

	PathForDiskSpaceRequest = "/var/lib"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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