blob: accaadbfa5cf11e211c47f84e65c65844644db51 [file] [log] [blame]
local kube = import "../../kube/hscloud.libsonnet";
{
local top = self,
ns: kube.Namespace("personal-q3k"),
deploy: top.ns.Contain(kube.Deployment("ppsa-jsonapi")) {
spec+: {
template+: {
spec+: {
containers_: {
default: kube.Container("default") {
image: "registry.k0.hswaw.net/q3k/ppsa-jsonapi:1615508489",
ports_: {
http: { containerPort: 8080 },
},
resources: {
requests: {
cpu: "10m",
memory: "64M",
},
limits: {
cpu: "100m",
memory: "256M",
},
},
},
},
},
},
},
},
svc: top.ns.Contain(kube.Service("ppsa-jsonapi")) {
target_pod:: top.deploy.spec.template,
},
ingress: top.ns.Contain(kube.SimpleIngress("ppsa-jsonapi")) {
hosts:: ["ppsa.app.q3k.org"],
target:: top.svc,
},
}