90 lines
1.9 KiB
HCL
90 lines
1.9 KiB
HCL
locals {
|
|
// Definition of the Kubernetes service (templater compatible)
|
|
ServiceKubernetes = {
|
|
ConfigFiles = []
|
|
Repositories = {
|
|
AlpineEdge = {
|
|
type = "apk"
|
|
name = "community"
|
|
url = "http://mirror.serverion.com/alpine/edge/community"
|
|
enabled = true
|
|
}
|
|
AlpineEdgeTesting = {
|
|
type = "apk"
|
|
name = "testing"
|
|
url = "http://mirror.serverion.com/alpine/edge/testing"
|
|
enabled = true
|
|
}
|
|
}
|
|
Packages = {
|
|
cni-plugin-flannel = {
|
|
name = "cni-plugin-flannel"
|
|
action = "install"
|
|
}
|
|
cni-plugins = {
|
|
name = "cni-plugins"
|
|
action = "install"
|
|
}
|
|
flannel = {
|
|
name = "flannel"
|
|
action = "install"
|
|
}
|
|
flannel-contrib-cni = {
|
|
name = "flannel-contrib-cni"
|
|
action = "install"
|
|
}
|
|
cilium = {
|
|
name = "cilium-cli"
|
|
action = "install"
|
|
}
|
|
kubelet = {
|
|
name = "kubelet"
|
|
action = "install"
|
|
}
|
|
kubeadm = {
|
|
name = "kubeadm"
|
|
action = "install"
|
|
}
|
|
kubectl = {
|
|
name = "kubectl"
|
|
action = "install"
|
|
}
|
|
uuidgen = {
|
|
name = "uuidgen"
|
|
action = "install"
|
|
}
|
|
}
|
|
Vars = {
|
|
ServerName = "kube"
|
|
ServerRole = "master"
|
|
}
|
|
Users = {}
|
|
Daemons = {
|
|
kubelet = {
|
|
name = "kubelet"
|
|
type = "auto"
|
|
enabled = true
|
|
}
|
|
ntpd = {
|
|
name = "ntpd"
|
|
type = "auto"
|
|
enabled = true
|
|
}
|
|
local = {
|
|
name = "local"
|
|
type = "auto"
|
|
enabled = true
|
|
}
|
|
}
|
|
}
|
|
|
|
// Definition of the Kubernetes full configuration (with all the services)
|
|
Kubernetes = {
|
|
Name = "kubernetes"
|
|
Globals = local.Globals
|
|
Services = {
|
|
Docker = local.ServiceDocker
|
|
Kubernetes = local.ServiceKubernetes
|
|
}
|
|
}
|
|
} |