blob: c68b3f8338efb22c347c203d00565961a6cdb3e0 [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:: {
Robert Gerus844b9b42023-07-24 14:27:15 +02006 image: "registry.k0.hswaw.net/ar/hswaw-site:1690197486-2861c692984cf87828230347e46191ee0ccf486f",
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}