blob: c5bf90a1fc9feeeaa3484ab15f8a7159de23eb91 [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_service:: top.svc,
},
}