2022-04-06 04:36:58 -04:00
|
|
|
/*
|
|
|
|
Package constants contains the constants used by Constellation.
|
|
|
|
Constants should never be overwritable by command line flags or configuration files.
|
|
|
|
*/
|
|
|
|
package constants
|
|
|
|
|
2022-05-04 08:32:34 -04:00
|
|
|
import "time"
|
|
|
|
|
2022-04-06 04:36:58 -04:00
|
|
|
const (
|
|
|
|
//
|
|
|
|
// Ports.
|
|
|
|
//
|
|
|
|
|
|
|
|
CoordinatorPort = 9000
|
|
|
|
EnclaveSSHPort = 2222
|
|
|
|
SSHPort = 22
|
|
|
|
WireguardPort = 51820
|
|
|
|
NVMEOverTCPPort = 8009
|
2022-04-26 11:09:03 -04:00
|
|
|
// Default NodePort Range
|
|
|
|
// https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport
|
|
|
|
NodePortFrom = 30000
|
|
|
|
NodePortTo = 32767
|
2022-04-06 04:36:58 -04:00
|
|
|
|
|
|
|
//
|
|
|
|
// Filenames.
|
|
|
|
//
|
|
|
|
|
|
|
|
StateFilename = "constellation-state.json"
|
2022-05-12 09:14:52 -04:00
|
|
|
ConfigFilename = "constellation-conf.yaml"
|
2022-05-13 10:06:57 -04:00
|
|
|
DebugdConfigFilename = "cdbg-conf.yaml"
|
2022-04-06 04:36:58 -04:00
|
|
|
AdminConfFilename = "constellation-admin.conf"
|
|
|
|
MasterSecretFilename = "constellation-mastersecret.base64"
|
|
|
|
WGQuickConfigFilename = "wg0.conf"
|
2022-05-02 07:21:07 -04:00
|
|
|
|
|
|
|
//
|
|
|
|
// Cryptographic constants.
|
|
|
|
//
|
2022-05-10 06:35:17 -04:00
|
|
|
StateDiskKeyLength = 32
|
|
|
|
DerivedKeyLengthDefault = 32
|
2022-05-04 02:50:50 -04:00
|
|
|
|
|
|
|
//
|
|
|
|
// CLI.
|
|
|
|
//
|
|
|
|
|
|
|
|
MinControllerCount = 1
|
|
|
|
MinWorkerCount = 1
|
2022-05-05 02:48:56 -04:00
|
|
|
|
|
|
|
//
|
|
|
|
// Kubernetes.
|
|
|
|
//
|
|
|
|
|
|
|
|
// KubernetesVersion installed by kubeadm.
|
2022-05-10 06:35:17 -04:00
|
|
|
KubernetesVersion = "stable-1.23"
|
2022-05-04 08:32:34 -04:00
|
|
|
KubernetesJoinTokenTTL = 15 * time.Minute
|
2022-04-06 04:36:58 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// CliVersion is the version of the CLI. Left as a separate variable to allow override during build.
|
|
|
|
var CliVersion = "0.0.0"
|