Existing Kubernetes Clusters

By default, manifest-installer deploy prepares the host it runs on and installs RKE2 there (see Installation). You can instead deploy Manifest onto a Kubernetes cluster you already run. The installer then changes nothing on the host it runs on: it reaches the cluster the same way kubectl does and deploys the platform into it.


Requirements

The cluster and the host running manifest-installer need:

  • kubectl on the installer host's PATH, pointed at the cluster by the same kubeconfig the installer uses. Some package steps run it.
  • Cluster-admin access. The installer creates namespaces, CRDs, cluster roles, and the Zarf mutating webhook.
  • A default StorageClass. Every persistent volume is claimed from the cluster's default StorageClass.
  • A way to route traffic to the ingress. The bundled Traefik ingress serves ports 80 and 443 through the traefik Service in the traefik namespace, whose type you choose in setup (see Expose the ingress). Point DNS for the base domain's hosts at whatever receives that traffic.
  • No other Traefik installation. Traefik's CRDs must not already be installed by another ingress controller. On a k3s cluster, turn off its bundled Traefik.
  • Node access to the in-cluster registry on NodePort 31999, which the Zarf registry uses to serve images to every node. Not needed when the cluster pulls images from your own registry.

Multi-node clusters add agent nodes to a cluster the installer builds, so they cannot be combined with an existing cluster. deploy refuses a configuration that turns on both.


1. Point the installer at the cluster

The installer uses the current kubeconfig, exactly as kubectl does:

export KUBECONFIG=/path/to/kubeconfig   # or use ~/.kube/config
kubectl get nodes                       # confirm it reaches the cluster you mean

Download the platform packages as described in Installation.


2. Set up the deployment

Run setup and answer yes to Deploy onto an existing Kubernetes cluster on the first page. The answer is stored in config.yaml as setup.existingCluster: "true".

manifest-installer setup

Setup then shows an Existing cluster network page with three questions, which it asks only for an existing cluster. On a cluster the installer builds, it detects the two ranges itself and Traefik always listens on NodePorts 80 and 443.

Expose the ingress

Ingress (Traefik) Service type is stored as setup.traefikServiceType:

Service typeWhat it needs
LoadBalancer (default)Something that provisions load balancers for LoadBalancer Services: the cloud provider on a managed cluster, or a controller such as MetalLB elsewhere. Point DNS at the load balancer's address.
NodePortYour own load balancer, pointed at every node on the two node ports Kubernetes assigns from the cluster's NodePort range (kubectl get service traefik -n traefik lists them). Point DNS at your load balancer.
ClusterIPYour own ingress controller or in-cluster load balancer, forwarding ports 80 and 443 to traefik.traefik.svc. Traefik terminates TLS itself, so forward TLS traffic through unchanged (TLS passthrough). Nothing outside the cluster can reach Traefik directly.

Network ranges

The other two questions are IPv4 ranges, each no broader than a /8, stored under platform.network in config.yaml. Both are required on an existing cluster.

  • Kubernetes API server address range (apiserverCIDR): a range holding every address listed by kubectl get endpoints kubernetes -n default. The platform's NetworkPolicies allow pods to reach the API server only there, on a cluster whose network plugin enforces NetworkPolicy (Calico or Cilium, for example, or the Amazon VPC CNI with its network policy support turned on). deploy does not check for enforcement, and where the plugin does not enforce NetworkPolicy, as with the VPC CNI's default settings, the policies have no effect. Managed clusters run several API server addresses and the provider can replace them, so choose the range they are drawn from (on EKS, the cluster VPC's CIDR), not today's addresses.
  • Trusted proxy range for ingress (trustedProxyCIDR): where Traefik sees connections arrive from. Traefik accepts X-Forwarded-* headers and the PROXY protocol only from this range, so keep it to the addresses of whatever sits in front of it: the load balancer's or the nodes' range for LoadBalancer and NodePort, or the pod range of your ingress controller for ClusterIP.

The rest of setup is the same as for any install; see Configuration Reference.


3. Deploy

manifest-installer deploy

deploy skips host preparation and the Kubernetes installation (steps 1 and 2 in Installation → Deploy) and starts at the in-cluster registry bootstrap. When the cluster pulls from your own registry, no in-cluster registry is deployed. Then load the vulnerability data and verify the install as usual.


Related Documentation


Did this page help you?