36 lines
1 KiB
Jsonnet
36 lines
1 KiB
Jsonnet
|
|
local base = import "k8s/configs/base.libsonnet";
|
||
|
|
local jupyter = import "k8s/configs/templates/dev/ide/jupyter.libsonnet";
|
||
|
|
local nginxIngress = import "k8s/configs/templates/core/network/nginx-ingress.libsonnet";
|
||
|
|
|
||
|
|
local namespace = "jupyter-env";
|
||
|
|
|
||
|
|
{
|
||
|
|
namespace: {
|
||
|
|
apiVersion: "v1",
|
||
|
|
kind: "Namespace",
|
||
|
|
metadata: {
|
||
|
|
name: namespace,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
|
||
|
|
jupyterPvc: base.RecoverableSimpleManyPvc(namespace, "jupyter-data", "nfs-client", "10Gi", {
|
||
|
|
volumeName: "pvc-1f67b46e-3037-49ae-a861-adce21791f86",
|
||
|
|
nfsPath: "/volume3/fs/jupyter-env-jupyter-data-pvc-1f67b46e-3037-49ae-a861-adce21791f86",
|
||
|
|
nfsServer: "apollo1.dominion.lan",
|
||
|
|
}),
|
||
|
|
|
||
|
|
app: jupyter.App(jupyter.Params {
|
||
|
|
namespace: namespace,
|
||
|
|
name: "jupyter",
|
||
|
|
filePath: std.thisFile,
|
||
|
|
filesClaimName: "jupyter-data",
|
||
|
|
}),
|
||
|
|
|
||
|
|
ingress: nginxIngress.Ingress(nginxIngress.IngressParams {
|
||
|
|
namespace: namespace,
|
||
|
|
name: "jupyter-ui",
|
||
|
|
hosts: ["jupyter.csbx.dev"],
|
||
|
|
serviceName: "jupyter-ui",
|
||
|
|
annotations: nginxIngress.KubeCsbxOauthProxyAnnotations,
|
||
|
|
}),
|
||
|
|
}
|