updated helm charts

This commit is contained in:
afeiszli
2021-10-17 15:31:37 -04:00
parent a39ef16394
commit 445df67030
10 changed files with 157 additions and 134 deletions

View File

@@ -18,6 +18,7 @@ import (
// KUBERNETES_LISTEN_PORT - starting port for Kubernetes in order to use NodePort range
const KUBERNETES_LISTEN_PORT = 31821
const KUBERNETES_SERVER_MTU = 1024
// ServerJoin - responsible for joining a server to a network
func ServerJoin(network string, serverID string, privateKey string) error {
@@ -36,10 +37,12 @@ func ServerJoin(network string, serverID string, privateKey string) error {
MacAddress: serverID,
UDPHolePunch: "no",
}
node.SetDefaults()
if servercfg.GetPlatform() == "Kubernetes" {
node.ListenPort = KUBERNETES_LISTEN_PORT
node.MTU = KUBERNETES_SERVER_MTU
}
node.SetDefaults()
if node.LocalRange != "" && node.LocalAddress == "" {
Log("local vpn, getting local address from range: "+node.LocalRange, 1)