blob: 26732c89667fd95d4e4af37f5a00a54820ec0c3a [file] [log] [blame]
local mirko = import "../../kube/mirko.libsonnet";
local kube = import "../../kube/kube.libsonnet";
{
cfg:: {
image: "registry.k0.hswaw.net/q3k/hswaw-site:1661880399-4d8dc0f4358294c225f002be6147587c3bea8358",
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,
}
},
},
},
},
}