blob: 3d2d3515c3828990c6954bcf3b97a85b83f09e06 [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:: rc3.svc,
},
}