boettiger-lab / k8s

Configuration for self-hosted Kubernetes cluster on lab workstations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self-hosting JupyterHub on GPU workstations

See blog post

With external Caddy

  • Run K3s with --disabled=traefik (as Caddy will be handling the external network; otherwise this creates conflicts over the http/https ports, 80 & 443).
  • For jupyterhub, config needs:
ingress:
  enabled: true
proxy:
  service:
    type: NodePort

nothing else is needed in proxy (i.e. we don't need https section as Caddy will handle this. (ClusterIP may be a more natural choice but I think will be an internal node IP either way).

  • Then, in Caddyfile, just map to the Cluster-IP shown for the proxy service (i.e. by kubectrl -n testjupyter get services proxy-public), e.g. something like:
<insert-domain-name> {
  tls <insert-email-address>
  reverse_proxy <insert-cluster-ip> {
    header_up Host {host}
  }
}

About

Configuration for self-hosted Kubernetes cluster on lab workstations


Languages

Language:Shell 63.0%Language:Dockerfile 20.2%Language:R 16.8%