blob: b4112f2837572ee0c925a45248389607157ffe97 [file] [log] [blame]
local kube = import "../../kube/hscloud.libsonnet";
{
local rc3 = self,
deploy: kube.Deployment("rc3-data") {
metadata+: {
namespace: "personal-q3k",
},
spec+: {
template+: {
spec+: {
containers_: {
default: kube.Container("default") {
image: "registry.k0.hswaw.net/q3k/rc3-data:1610640062",
ports_: {
http: { containerPort: 8080 },
},
},
},
securityContext: {
// nginx:nginx
runAsUser: 101,
runAsGroup: 101,
},
},
},
},
},
svc: kube.Service("rc3-data") {
metadata+: {
namespace: "personal-q3k",
},
target_pod:: rc3.deploy.spec.template,
},
ingress: kube.SimpleIngress("rc3-data") {
metadata+: {
namespace: "personal-q3k",
},
hosts:: ["rc3-data.q3k.org"],
target_service:: rc3.svc,
},
}