blob: ffc7f1d9dbfff209d09d0e51a6adb522fd27e085 [file] [log] [blame]
Serge Bazanski95ba05d2021-05-12 21:28:10 +00001local mirko = import "../../kube/mirko.libsonnet";
2local kube = import "../../kube/kube.libsonnet";
3
4{
5 cfg:: {
Serge Bazanskiec220272021-08-14 16:04:57 +00006 image: "registry.k0.hswaw.net/q3k/cebulacamp-landing:315532800-bbf56cf7e14df954dcddedfe44c967246f11b72c",
Serge Bazanski95ba05d2021-05-12 21:28:10 +00007 webFQDN: error "webhookFQDN must be set",
8 },
9
10 component(cfg, env):: mirko.Component(env, "cebulacamp") {
11 local cebulacamp = self,
12 cfg+: {
13 image: cfg.image,
14 container: cebulacamp.Container("main") {
15 command: [
16 "/hscloud/hswaw/cebulacamp/landing/backend",
17 ],
18 },
19 ports+: {
20 publicHTTP: {
21 web: {
22 port: 8080,
23 dns: cfg.webFQDN,
24 }
25 },
26 },
27 },
28 },
29}