hscloud/devtools/kube/hackdoc.libsonnet
Serge Bazanski 15db04c705 hackdoc: deploy
There's an issue with the registry that forbids me from pushing into
anything but my personal namespace - might have been introduced by
0697e01144 . For now, I move the hackdoc
image to my personal namespace, as at some point in the future I want to
revamp the registry system, anyway.

We also drive-by fix a mirko.libsonnet typo that, for some reason,
hasn't manifested itself yet.

Change-Id: I8544e4a52610fb84c5c9d8b0de449f785248f60f
2020-08-10 18:57:26 +02:00

31 lines
986 B
Text

local mirko = import "../../kube/mirko.libsonnet";
local kube = import "../../kube/kube.libsonnet";
{
cfg:: {
image: "registry.k0.hswaw.net/q3k/hackdoc:1597078177-b6554a0dcef89157a79814f3febcfd9418c9b747",
publicFQDN: error "public FQDN must be set",
},
component(cfg ,env):: mirko.Component(env, "hackdoc") {
local hackdoc = self,
cfg+: {
image: cfg.image,
container: hackdoc.GoContainer("main", "/devtools/hackdoc") {
command+: [
"-depotview=depotview.devtools-prod.svc.cluster.local:4200",
"-hackdoc_url=https://%s" % [cfg.publicFQDN],
"-pub_listen=0.0.0.0:8080",
],
},
ports+: {
publicHTTP: {
public: {
port: 8080,
dns: cfg.publicFQDN,
},
},
},
},
}
}