forked from hswaw/hscloud
Serge Bazanski
56c262f2b6
This allows us to serve rich content from hackdoc, eg. hbj11's webflaser. Change-Id: Ife83888d864db0b2eddf3a50b0129be0172aad8a
31 lines
985 B
Text
31 lines
985 B
Text
local mirko = import "../../kube/mirko.libsonnet";
|
|
local kube = import "../../kube/kube.libsonnet";
|
|
|
|
{
|
|
cfg:: {
|
|
image: "registry.k0.hswaw.net/q3k/hackdoc:315532800-f4d02581f60b18a8635d026079ed67039cdc45e6",
|
|
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,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
}
|