yesod-mirror/k8s/configs/environments/jupyter/main.jsonnet
Copybara 8157b39ea4
Some checks failed
CI / build (push) Failing after 12s
Project import generated by Copybara.
GitOrigin-RevId: 6370f6ea785709295b6abcf9c60717cacf3ac432
2026-01-20 21:26:21 +00:00

36 lines
No EOL
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,
}),
}