blob: 26732c89667fd95d4e4af37f5a00a54820ec0c3a [file] [log] [blame]
Serge Bazanskid0c9c412021-08-30 20:14:58 +00001local mirko = import "../../kube/mirko.libsonnet";
2local kube = import "../../kube/kube.libsonnet";
3
4{
5 cfg:: {
Serge Bazanski467ff082022-08-30 17:30:08 +00006 image: "registry.k0.hswaw.net/q3k/hswaw-site:1661880399-4d8dc0f4358294c225f002be6147587c3bea8358",
Serge Bazanskid0c9c412021-08-30 20:14:58 +00007 webFQDN: error "webFQDN must be set",
8 },
9
10 component(cfg, env):: mirko.Component(env, "site") {
11 local site = self,
12 cfg+: {
13 image: cfg.image,
14 container: site.GoContainer("main", "/hswaw/site/site") {
15 },
16 ports+: {
17 publicHTTP: {
18 web: {
19 port: 8080,
20 dns: cfg.webFQDN,
21 }
22 },
23 },
24 },
25 },
26}