Added join step
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
buildinfo "undecided.project/monok8s/pkg/buildinfo"
|
||||
)
|
||||
|
||||
var ValAPIServerEndPoint string = "10.0.0.10:6443"
|
||||
var ValHostname string = "monoks-master-1"
|
||||
var ValBootstrapToken string = "abcd12.ef3456789abcdef0"
|
||||
var ValDiscoveryTokenCACertHash string = "sha256:9f1c2b3a4d5e6f7890abc1234567890abcdef1234567890abcdef1234567890ab"
|
||||
@@ -16,6 +17,7 @@ func init() {
|
||||
ValBootstrapToken = os.Getenv("HOSTNAME")
|
||||
ValBootstrapToken = os.Getenv("BOOTSTRAP_TOKEN")
|
||||
ValDiscoveryTokenCACertHash = os.Getenv("TOKEN_CACERT_HASH")
|
||||
ValAPIServerEndPoint = os.Getenv("API_SERVER_ENDPOINT")
|
||||
}
|
||||
|
||||
func DefaultMonoKSConfig() types.MonoKSConfig {
|
||||
@@ -42,7 +44,7 @@ func DefaultMonoKSConfig() types.MonoKSConfig {
|
||||
ServiceSubnet: "10.96.0.0/12",
|
||||
|
||||
APIServerAdvertiseAddress: "10.0.0.10",
|
||||
APIServerEndpoint: "10.0.0.10:6443",
|
||||
APIServerEndpoint: ValAPIServerEndPoint,
|
||||
|
||||
// Fake token and hash for placeholder purpose
|
||||
BootstrapToken: ValBootstrapToken,
|
||||
|
||||
Reference in New Issue
Block a user