Skip to main content

Platform Prerequisites for Kubernetes without a Service Mesh

Kamiwaza installs into a single namespace on a Kubernetes cluster that you already run. In this environment the cluster has no service mesh: the Kamiwaza chart runs its own Envoy edge, kamiwaza-envoy, in the namespace, and that edge terminates TLS for the Kamiwaza domain. The installer holds only the built-in admin role in the namespace.

Before the install, a platform administrator (someone with cluster-admin rights) prepares the cluster so it provides everything on this page. The Kamiwaza chart does not create or repair any of it: it creates no cluster-scoped objects and installs no operators. If a prerequisite is missing, the install fails or the platform comes up unable to serve traffic.

Work through each section and run its check. Each section also says what to record; the install needs those facts.

Hardware sizing and supported operating systems are covered separately, in System Requirements. If the namespace has a ResourceQuota or a LimitRange, see Namespace resources.

Summary​

PrerequisiteWhat the cluster must provide
NamespaceA pre-created namespace that enforces Pod Security baseline
Installer identityA namespace-scoped identity that holds the built-in admin role there. Never cluster-admin
Resource metrics APImetrics-server, or another provider of the resource metrics API. Required for an install with Argo CD
Edge certificateA TLS certificate that names the Kamiwaza domain and the edge's in-cluster Service name
Publishing the edgeA way to reach the kamiwaza-envoy Service on port 443 from outside the cluster
DNSThe domain resolves, for users, to the published edge
Block storageAn RWO StorageClass whose volumes keep their data when pods are replaced
Object storageA decision: the built-in object store, or your own S3-compatible service
Registry accessNodes can pull Kamiwaza images
Outbound network accessHTTPS to the image registry and to any model sources you use
Argo CDOnly for an install with Argo CD: an Application, a project and a chart repository

GPU inference and multi-node clusters add requirements; see GPU nodes and Multi-node clusters.

The examples use the namespace kamiwaza and the domain kamiwaza.example.com. Any namespace works: substitute yours everywhere, the certificate name kamiwaza-envoy.<namespace>.svc.cluster.local included. Run the checks with the administrator's kubeconfig unless a check says otherwise.

Namespace​

Create the kamiwaza namespace. The installer does not create it, and the install never uses --create-namespace.

The installer holds admin in the namespace, so it can create pods, and so can the service accounts Kamiwaza installs. Enforce the Pod Security baseline profile on the namespace, so that no one holding those identities can start a privileged pod or one that mounts the node's file system. Also warn and audit against restricted. Do not enforce restricted: some Kamiwaza components do not meet it yet.

kubectl create namespace kamiwaza
kubectl label namespace kamiwaza \
pod-security.kubernetes.io/enforce=baseline \
pod-security.kubernetes.io/warn=restricted \
pod-security.kubernetes.io/audit=restricted

A namespace admin cannot change the labels of its own namespace, so the installer cannot remove them.

Check:

kubectl get namespace kamiwaza --show-labels
# Expect the three pod-security labels, and no istio-injection label

Installer identity​

Helm runs as a namespace-scoped identity, never as cluster-admin. In this environment it needs only the built-in admin ClusterRole, bound in the namespace only with a RoleBinding. The chart creates no Istio resources, and the example values file sets core.inferenceResources.allocationVerification: label, so no Role the chart creates asks for a permission that admin lacks.

This manifest creates a service account with that binding. You can bind the same role to a user or group from your identity provider instead.

apiVersion: v1
kind: ServiceAccount
metadata:
name: kamiwaza-installer
namespace: kamiwaza
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kamiwaza-installer-admin
namespace: kamiwaza
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: kamiwaza-installer
namespace: kamiwaza

Save it as kamiwaza-installer.yaml and apply it as the administrator:

kubectl apply -f kamiwaza-installer.yaml

Give the installer a kubeconfig for this identity, following your cluster's normal practice for issuing credentials. For example, with a service account token, run as the administrator:

(
set -e
SERVER=$(kubectl config view --minify -o jsonpath='{.clusters[0].cluster.server}')
kubectl config view --minify --raw \
-o jsonpath='{.clusters[0].cluster.certificate-authority-data}' | base64 -d > cluster-ca.crt
TOKEN=$(kubectl -n kamiwaza create token kamiwaza-installer --duration=24h)

export KUBECONFIG=kamiwaza-installer.kubeconfig
kubectl config set-cluster kamiwaza --server="$SERVER" \
--certificate-authority=cluster-ca.crt --embed-certs
kubectl config set-credentials kamiwaza-installer --token="$TOKEN"
kubectl config set-context kamiwaza --cluster=kamiwaza --user=kamiwaza-installer --namespace=kamiwaza
kubectl config use-context kamiwaza
)

The parentheses keep these commands from changing your own shell's KUBECONFIG. If your kubeconfig names a certificate-authority file instead of embedding certificate-authority-data, copy that file to cluster-ca.crt instead. The token expires, and the API server may cap the duration you ask for. Issue a new one before each later upgrade or uninstall.

Check that the identity can create namespaced resources and cannot create cluster-scoped ones:

SA=system:serviceaccount:kamiwaza:kamiwaza-installer
kubectl auth can-i create deployments -n kamiwaza --as=$SA # yes
kubectl auth can-i patch pods -n kamiwaza --as=$SA # yes
kubectl auth can-i create clusterroles --as=$SA # no
kubectl auth can-i create customresourcedefinitions --as=$SA # no
kubectl auth can-i list nodes --as=$SA # no

When the administrator's context sets a default namespace, the cluster-scoped checks also print Warning: resource '...' is not namespace scoped. It is harmless.

How model pods are verified. Before a model Pod takes traffic, Core checks that it matches the allocation Core granted. With allocationVerification: label, Core then labels the Pod kamiwaza.ai/allocation-verified, and the model's Service sends traffic only to Pods with that label. Each model Pod also runs a small allocation-check container that keeps it NotReady until the label is there. Anyone who holds admin in the namespace can set that label too. Core removes a label it didn't set within a minute and records an audit event for it. The modes are described in full under Installers that hold only admin.

If the installer lacks a permission that Kamiwaza's Roles grant, the install or upgrade stops before it creates anything, on a check Role named kamiwaza-installer-grant-check. Every upgrade runs this check, so the identity that upgrades Kamiwaza needs the same permissions as the one that installed it. The error lists each missing permission as an {APIGroups:...} line. Grant it, or remove the value that asks for it, then rerun the install.

Resource metrics API​

The chart creates a HorizontalPodAutoscaler for core-api, which reads CPU metrics from the cluster's resource metrics API. Provide it with metrics-server or your platform's equivalent. Only a cluster administrator can install it.

It is required for an install with Argo CD. Argo CD treats an autoscaler without metrics as unhealthy, so on a cluster without the API every sync ends Failed on the core-api autoscaler, even though everything else ran. A Helm install completes without it, but core-api then does not scale.

Check, with the installer kubeconfig:

kubectl -n kamiwaza top pods
# "Metrics API not available" means it is missing.
# A list, or "No resources found", means it is there.

Edge certificate​

The kamiwaza-envoy edge serves the Kamiwaza domain with a TLS certificate that you provide and rotate. The installer stores it in the kamiwaza namespace as a kubernetes.io/tls Secret named kamiwaza-tls, in step 1 of the install.

The certificate must name, in its subject alternative names:

  • the Kamiwaza domain, for example kamiwaza.example.com;
  • kamiwaza-envoy.kamiwaza.svc.cluster.local, the edge's in-cluster Service name. Core, App Garden apps and Tool Shed tool servers call the platform at that name and verify the certificate against it. Without it, those calls fail with Hostname mismatch even though the CA is trusted. If the cluster's DNS domain is not cluster.local, use your domain in its place and set global.clusterDomain in the install values.

If your CA allows names without a domain, also add kamiwaza-envoy, kamiwaza-envoy.kamiwaza and kamiwaza-envoy.kamiwaza.svc. The certificate the chart can generate carries all of these names; see Envoy with network.tls.mode: byo.

The certificate comes from your own CA, or is self-signed. A publicly trusted CA cannot issue it: public CAs do not issue certificates for in-cluster names such as kamiwaza-envoy.kamiwaza.svc.cluster.local.

Kamiwaza workloads need the CA to verify the edge, so the CA file is always required. Keep the CA certificate chain, root included, or for a self-signed certificate the certificate itself, as a PEM file such as edge-ca.crt. You put it in the values file as global.trust.edgeAnchor.pem in step 2 of the install, and the chart publishes it to Kamiwaza's workloads in the kamiwaza-edge-trust ConfigMap. Do not create that ConfigMap yourself. The file holds public certificates only; never put a private key in it. Without the value, the install stops with the Context TLS preflight error.

Example: self-signed certificate​

For a test installation without a CA-issued certificate, generate a certificate with both names. Replace the domain with your own. Protect the private key and arrange renewal before expiry.

DOMAIN=kamiwaza.example.com
openssl req -x509 -nodes -newkey rsa:3072 -days 365 \
-keyout edge.key -out edge.crt -subj "/CN=$DOMAIN" \
-addext "subjectAltName=DNS:$DOMAIN,DNS:kamiwaza-envoy.kamiwaza.svc.cluster.local,DNS:kamiwaza-envoy.kamiwaza.svc,DNS:kamiwaza-envoy.kamiwaza,DNS:kamiwaza-envoy"
cp edge.crt edge-ca.crt

A self-signed certificate is its own CA, so edge-ca.crt, the file for the values, is a copy of edge.crt.

Check the certificate file:

openssl x509 -in edge-ca.crt -noout -subject -issuer -ext subjectAltName -enddate
# Expect your domain and kamiwaza-envoy.kamiwaza.svc.cluster.local under
# subjectAltName, and an end date in the future

Record: the certificate, key and CA files.

Publishing the edge​

The chart creates kamiwaza-envoy as a ClusterIP Service on port 443. It does not publish it outside the cluster. Envoy terminates TLS itself, so whatever publishes it must pass TLS through unchanged. Users must reach the domain on port 443: the platform's sign-in and links use https://<domain>/ with no port.

Choose one:

  • A LoadBalancer Service. Set network.envoy.service.type: LoadBalancer in the install values. Add any annotations your load balancer needs under network.envoy.service.annotations. Under Argo CD, a LoadBalancer Service that never gets an address keeps the Application Progressing, so use this only on a cluster with a load balancer.
  • A Service of your own in the kamiwaza namespace, of type LoadBalancer or NodePort, that selects the Envoy pods and targets their https port. A NodePort needs a load balancer or forwarder in front of it that listens on port 443.
  • An Ingress or route with TLS passthrough that sends the domain to port 443 of kamiwaza-envoy. With ingress-nginx, for example, that needs the controller's --enable-ssl-passthrough flag and the Ingress annotation nginx.ingress.kubernetes.io/ssl-passthrough: "true". An ingress that terminates TLS itself does not work.

A namespace admin can create the Service or Ingress; the install has an example. The edge has no port 80 listener.

A cluster without a load balancer. On a test cluster, such as a single k0s node, the installer can publish the edge on a node address through a Service's externalIPs. Kubernetes deprecates externalIPs as of 1.36, and a cluster can refuse them at admission; the kube-proxy that k0s runs by default still routes them.

Record: how you publish the edge, and the address users reach.

DNS​

The Kamiwaza domain must resolve, for users, to the address where you publish the edge.

Inside the cluster, Kamiwaza and its apps reach the edge at its Service name, kamiwaza-envoy.kamiwaza.svc.cluster.local. That is why the certificate must name it.

For an IP-only host, a name such as 10-106-10-162.sslip.io can resolve to 10.106.10.162. This relies on an external DNS service and is suitable only when your network and security policy permit it. Otherwise, create a DNS record for the published address.

Check, after the install has published the edge:

getent hosts kamiwaza.example.com
# Expect the address where you publish the edge

Record: the domain.

Block storage​

Kamiwaza's databases and caches use ReadWriteOnce persistent volumes. The cluster must have a StorageClass that provisions them. Record its name; the install names it explicitly.

Size the storage provider for Kamiwaza's volume requests plus your provider's replication and free-space reserves. A StorageClass existing does not prove its volumes can be provisioned; the write test below does. Node-local storage, such as local-path, works on a single node but does not replicate data.

Any reclaimPolicy works, including Delete, the local-path default. The policy decides only what happens to a volume once its claim is deleted, as at uninstall.

Kamiwaza requests these volumes by default, about 624 GiB in total. Apps you deploy later add their own.

VolumeDefault requestHoldsChange it with
kamiwaza-registry-data500 GiBModel and inference-engine cacheregistry.persistence.size
seaweedfs-data100 GiBBuilt-in object storeseaweedfs.persistence.size
core-postgres-data10 GiBPlatform database—
keycloak-postgres-data10 GiBIdentity database—
core-spicedb-postgres-data1 GiBAuthorization database—
core-etcd-data-core-etcd-0 to -21 GiB eachConfiguration store—

The model registry cache holds inference-engine images and the model files your users deploy. If you serve only external models, or your storage is small, set registry.persistence.size lower, for example 100Gi, in your install values before the first install. An existing volume keeps its size on upgrade.

Check the classes, then run a write test in the Kamiwaza namespace: write a marker, replace the pod, and read the marker back.

kubectl get storageclass
# Expect one class marked (default), or note the class you will name at install

cat > kamiwaza-storage-check.yaml <<'EOF'
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: kamiwaza-storage-check
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
# storageClassName: <class> # uncomment if you will not use the default
---
apiVersion: v1
kind: Pod
metadata:
name: kamiwaza-storage-check
spec:
securityContext:
runAsNonRoot: true
runAsUser: 1000
fsGroup: 1000
seccompProfile:
type: RuntimeDefault
containers:
- name: check
image: busybox:1.37
command: ["sh", "-c", "sleep 3600"]
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
volumeMounts:
- name: data
mountPath: /data
volumes:
- name: data
persistentVolumeClaim:
claimName: kamiwaza-storage-check
EOF

kubectl -n kamiwaza apply -f kamiwaza-storage-check.yaml
kubectl -n kamiwaza wait --for=condition=Ready pod/kamiwaza-storage-check --timeout=5m
kubectl -n kamiwaza exec kamiwaza-storage-check -- sh -c 'echo ok > /data/marker'

# Replace the pod; the claim and its volume stay
kubectl -n kamiwaza delete pod kamiwaza-storage-check
kubectl -n kamiwaza apply -f kamiwaza-storage-check.yaml
kubectl -n kamiwaza wait --for=condition=Ready pod/kamiwaza-storage-check --timeout=5m
kubectl -n kamiwaza exec kamiwaza-storage-check -- cat /data/marker # expect: ok

kubectl -n kamiwaza delete -f kamiwaza-storage-check.yaml

A class with volumeBindingMode: WaitForFirstConsumer binds the claim only once the pod is scheduled, so a Pending claim before the pod starts is normal.

Record: the StorageClass name.

Object storage​

Workrooms, the Skills Library, and other features store objects. Choose one:

  • The built-in object store (default). Kamiwaza runs SeaweedFS in its namespace, backed by a ReadWriteOnce volume from your block storage. Nothing to prepare.
  • Your own S3-compatible service. See S3 workroom storage.

Registry access​

Kamiwaza's charts and images are published to a public registry and pull without credentials. Nodes must be able to pull from it; see Outbound network access.

If you mirror images into your own registry and it requires credentials, create a kubernetes.io/dockerconfigjson pull Secret in the Kamiwaza namespace. Kamiwaza uses only namespaced pull Secrets, never node-wide registry credentials. Build the Secret from a file, so the password never appears in a command line or your shell history:

read -rs REGISTRY_PASSWORD # typed, not echoed
(umask 077; d=$(mktemp -d)
printf '{"auths":{"%s":{"auth":"%s"}}}' '<registry-host>' \
"$(printf '%s:%s' '<username>' "$REGISTRY_PASSWORD" | base64 | tr -d '\n')" > "$d/config.json"
kubectl -n kamiwaza create secret generic kamiwaza-pull \
--type=kubernetes.io/dockerconfigjson --from-file=.dockerconfigjson="$d/config.json"
rm -rf "$d")
unset REGISTRY_PASSWORD

<registry-host> is the registry's host name, with its port if it has one, as it appears in the image references. If the registry's certificate is signed by a private CA, every node's container runtime must trust that CA; see Install Without Internet Access.

Record: the pull Secret's name, kamiwaza-pull above. The install lists it in global.imagePullSecrets.

Outbound network access​

Nodes and pods need outbound HTTPS (port 443) to:

  • ghcr.io and pkg-containers.githubusercontent.com, for Kamiwaza charts and images;
  • the model sources you use, for example huggingface.co and its content hosts, or your cloud model provider's endpoint.

The checks on this page use the public busybox image from Docker Hub. If your cluster cannot reach Docker Hub, mirror it to your registry.

For installs with no outbound access, see Install Without Internet Access.

Argo CD​

Only for an install with Argo CD. Whoever administers Argo CD at the site provides:

  • A chart repository. Argo CD reads the chart from an OCI registry it can reach. Register that registry in Argo CD as an OCI Helm repository. If the registry's certificate is signed by a private CA, add that CA to Argo CD's repository certificates under the registry's host name, without the port. The install describes how to put the chart there.
  • A project (AppProject) whose only destination is the kamiwaza namespace, and which allows no cluster-scoped resources. The chart needs neither.
  • The application controller's rights. Argo CD's application controller applies the chart and creates its Roles with its own identity. In the kamiwaza namespace it needs the rights of the installer identity: admin is enough.
  • The Application, from the YAML in the install.

Argo CD's bundled Helm renders the chart, so it must be recent enough to render it; the render fails with INSTALLATION HALTED naming the Helm version otherwise.

Check, as the Argo CD administrator:

argocd repo list
# Expect the chart registry, type helm, with OCI enabled

GPU nodes​

GPU inference is optional. To serve models on NVIDIA GPUs, prepare each GPU node as described in GPU Nodes. Kamiwaza installs none of what it describes.

Prepared nodes are not enough on their own: Kamiwaza places a GPU deployment only on a GPU host that a profile signed by the cluster owner describes. That profile is not an install prerequisite: without it the install completes and local models run on CPU only, and GPU models are refused. See Owner trust levels.

Check:

kubectl get nodes -o custom-columns='NODE:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu'
# Expect a count on each GPU node
kubectl get runtimeclass nvidia
# Expect a RuntimeClass named nvidia, with handler nvidia

Record: which nodes have GPUs, and the GPU model on each.

Multi-node clusters​

On a cluster with more than one node, also provide:

  • Storage that survives a node loss. Use a StorageClass whose volumes are replicated or network-attached, such as a CSI driver for your SAN or cloud block storage, or a replicated provider like Longhorn. Node-local storage ties each database to one node: if that node is lost, so is the data.
  • Every GPU node prepared. Prepare each GPU node as in GPU nodes, including nodes added later.
  • A CNI that enforces NetworkPolicy. Kamiwaza isolates apps and jobs from each other with NetworkPolicy. A CNI that accepts policies but does not enforce them leaves that isolation off without any error.

Next step​

When every check passes, hand the recorded facts and the installer kubeconfig to whoever runs the install, and continue to Install on Kubernetes without a Service Mesh.