forked from hswaw/hscloud
27 lines
724 B
Plaintext
27 lines
724 B
Plaintext
local mirko = import "../../kube/mirko.libsonnet";
|
|
local kube = import "../../kube/kube.libsonnet";
|
|
|
|
{
|
|
cfg:: {
|
|
image: "registry.k0.hswaw.net/q3k/hswaw-site:1667754404-14149c74bfcd56cbceb49c6667143b14828b32a6",
|
|
webFQDN: error "webFQDN must be set",
|
|
},
|
|
|
|
component(cfg, env):: mirko.Component(env, "site") {
|
|
local site = self,
|
|
cfg+: {
|
|
image: cfg.image,
|
|
container: site.GoContainer("main", "/hswaw/site/site") {
|
|
},
|
|
ports+: {
|
|
publicHTTP: {
|
|
web: {
|
|
port: 8080,
|
|
dns: cfg.webFQDN,
|
|
}
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|