Skip to content

Moving from icekube (RKE1) to ice (RKE2)

Most workloads move to ice unchanged. The main work is how apps are exposed to the web: ice uses Traefik instead of NGINX, and app addresses move from *.icedc.se to *.ice.dtse.se.

Differences summarized

icekube ice
Cluster in Rancher (k8s.ice.ri.se) icekube ice
Kubernetes 1.28 1.32
Ingress controller NGINX, class nginx Traefik, class traefik
App addresses *.icedc.se *.ice.dtse.se
IPv6 support No Yes

Exposing apps to the web

ice has no nginx ingress class, so an Ingress copied from icekube needs these changes:

  • Set ingressClassName: traefik, or leave it out; it is the default.
  • Use a <name>.ice.dtse.se hostname.
  • For HTTPS, keep the tls: section and add the annotation cert-manager.io/cluster-issuer: letsencrypt.
  • Add the redirect middleware shown below; Traefik does not redirect HTTP to HTTPS on its own.
  • Use each hostname in only one Ingress.

Example Ingress:

ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: myapp
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt
    traefik.ingress.kubernetes.io/router.middlewares: kube-system-redirect-https@kubernetescrd
spec:
  ingressClassName: traefik
  tls:
    - hosts: [myapp.ice.dtse.se]
      secretName: myapp-tls
  rules:
    - host: myapp.ice.dtse.se
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: myapp
                port:
                  number: 80

NGINX annotations are ignored. Replace the ones you need with a Traefik Middleware, attached with traefik.ingress.kubernetes.io/router.middlewares: <namespace>-<middleware-name>@kubernetescrd:

NGINX annotation On ice
proxy-body-size, proxy-*-timeout, proxy-buffer* Cluster wide 300s request timeout
ssl-redirect, force-ssl-redirect kube-system-redirect-https@kubernetescrd (Cluster-wide accessible middleware)
whitelist-source-range ipAllowList Middleware
auth-type, auth-url basicAuth or forwardAuth Middleware
rewrite-target stripPrefix or replacePathRegex Middleware
Anything else Ask the admins

See HTTP ingress for complete Middleware examples, such as an IP allowlist.

Storage

The storage classes have the same names and use the same Ceph storage: rook-ceph-rbd (default, one pod at a time) and rook-ceph-fs (shared between pods).

PVC manifests work unchanged, but a new PVC on ice starts empty, so copy your data manually, e.g. via rsync.

Do not delete the old PVC too early

Delete the PVC on icekube only after checking the copy; deleting a PVC deletes its data.

Other things to check

  • Quotas for CPU, memory, storage and GPUs are duplicated from icekube.
  • Recreate Secrets, ConfigMaps and image pull secrets in the new namespace.
  • If your namespace name changes, update <service>.<namespace>.svc.cluster.local addresses.
  • Remove priorityClassName: default or best-effort; these classes do not exist on ice.
  • Node names differ, so do not pin pods to a node by name.
  • The cluster DNS service is rke2-coredns-rke2-coredns.kube-system instead of kube-dns.kube-system, at the same IP (10.43.0.10).

No other manifest changes needed

Pod Security (baseline) and project network isolation work as on icekube, and normal manifests need no API version changes.

Moving a workload, step by step

  1. Access to the ice cluster will be enabled for all projects, but if you want early access, make a request to ICE Connect support.
  2. In Rancher (k8s.ice.ri.se), open the cluster ice, download its kubeconfig, and create your namespace inside your project from the Rancher UI.
  3. Update your manifests or Helm values: Ingress class, hostnames, certificate annotation, redirect middleware, and the points above.
  4. Deploy on ice and test the app on its ice.dtse.se address.
  5. Scale down the workload on icekube. Delete its PVCs only after you have confirmed the data on ice.