blob: f92559b22a21023196e986e860d46c63f3a5b558 [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 Bazanskif642e862022-02-01 09:46:02 +00006 image: "registry.k0.hswaw.net/q3k/hswaw-site:1643708475-9c680f637a009d9902031d4b1e15c9f8d9f9f1df",
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}