Install on Kubernetes without a Service Mesh
This page installs Kamiwaza into one namespace of a Kubernetes cluster that runs
no service mesh. The chart runs its own Envoy edge, kamiwaza-envoy, in the
namespace. You install as a namespace-scoped identity that holds only admin
there, with one helm upgrade --install or with an Argo CD sync. The chart
creates only namespaced objects.
Before you start
| You need | Notes |
|---|---|
| A prepared cluster | Every check in Platform Prerequisites passes, and you have the facts it told you to record. |
| The installer kubeconfig | The namespace-scoped identity from Installer identity. Never install with a cluster-admin kubeconfig. |
kubectl, and Helm 3.14 or later | Helm pulls the chart from an OCI registry. Helm 4 also works. An install with Argo CD needs Helm only to put the chart in your registry. |
jq and curl | Used by the verification steps. |
| A license file | license.lic, issued by Kamiwaza. See License File. |
| The edge certificate | edge.crt and edge.key, and the CA file edge-ca.crt. The certificate comes from your own CA or is self-signed. See Edge certificate. For the self-signed example there, edge-ca.crt is a copy of edge.crt. |
No internet access? Do Install Without Internet Access first. It copies the release into your registry and gives you values to merge into your values file in step 2. In step 3, it has you check the values file before you install, and use the chart from your registry.
The Kamiwaza field kit's scripts automate the steps on this page. This page describes the same steps by hand.
Point kubectl and helm at the installer identity for every command on this
page:
export KUBECONFIG=<path to the installer kubeconfig>
The examples use the namespace kamiwaza and the domain kamiwaza.example.com;
substitute your own, in the certificate names too.
Step 1: Add the license and the edge certificate
Create a Secret from the license file. The key must be license.lic:
kubectl -n kamiwaza create secret generic kamiwaza-license \
--from-file=license.lic=./license.lic
Create the edge certificate Secret. The Envoy edge serves the certificate in
this Secret, and the example values name it kamiwaza-tls:
kubectl -n kamiwaza create secret tls kamiwaza-tls --cert=edge.crt --key=edge.key
Check that it names both the domain and the edge's Service name:
kubectl -n kamiwaza get secret kamiwaza-tls -o jsonpath='{.data.tls\.crt}' \
| base64 -d | openssl x509 -noout -ext subjectAltName -enddate
# Expect kamiwaza.example.com and kamiwaza-envoy.kamiwaza.svc.cluster.local
The chart refuses to render until a license is configured and the EULA is accepted. You do both in the values file in the next step.
Step 2: Write your values file
Your values file carries this cluster's facts and your acceptance of the EULA. Everything else is the example file's settings and the chart's defaults. Keep the file somewhere safe and outside any shared repository; you will need it again for upgrades.
Required values
| Value | Set it to |
|---|---|
global.eula.accepted | true, after reading the EULA. The render fails without it. |
core.license.existingSecret | kamiwaza-license, the Secret from step 1. The render fails without it. |
global.domain | The Kamiwaza domain. |
global.storage.stateful.standard, .postgres, .etcd, .registry, .extensions | The StorageClass you recorded, for each one. |
network.tls.secretName | kamiwaza-tls, the Secret from step 1. Keep network.tls.mode at byo. |
global.trust.edgeAnchor.pem | The contents of edge-ca.crt, the CA that signs the edge certificate. A publicly trusted CA cannot issue that certificate, because it must name the in-cluster Service name, so this value is always required. Without it the install stops with the Context TLS preflight error; see Edge certificates minted outside the chart. Do not create the kamiwaza-edge-trust ConfigMap yourself. |
Values the example sets for this environment
Leave these as the example file sets them:
| Value | Why |
|---|---|
global.mesh.provider: none, global.ingress.provider: envoy | No service mesh; the chart runs the Envoy edge. |
global.namespaces.*: "" | Every component runs in the release namespace. |
global.managedK8s.namespaceAdmin: true | The installer holds only admin. The chart then creates nothing that needs more. |
core.inferenceResources.allocationVerification: label | Core labels verified model pods, which admin can do. See Installer identity. |
core.extensionRuntime.kubernetesApi.requireEgressCidrs: false | A namespace admin cannot read the API server's endpoints, so Core asks the API server for its own address. |
datahub.enabled: false, global.observability.enabled: false | Off. Keep them off for an install with Argo CD; see Install with Argo CD. |
The local inference settings follow the same rules as on every environment: the install needs no cluster owner, local CPU models run under Kamiwaza's built-in CPU baseline profile, and GPU models are refused. For owner-attested inference, and for GPU models, see Owner trust levels.
Values that depend on your cluster
| Value | Set it when |
|---|---|
network.envoy.service.type, network.envoy.service.annotations | You publish the edge with a LoadBalancer Service that the chart creates. Set the type to LoadBalancer, and add your load balancer's annotations. See Publishing the edge. |
global.clusterDomain | The cluster's DNS domain is not cluster.local. The edge certificate must then name kamiwaza-envoy.kamiwaza.svc.<your domain>. |
global.imagePullSecrets | Images come from a registry that needs credentials. List the pull Secret you created, for example [{name: kamiwaza-pull}]. |
core.extensionRuntime.kubernetesApi.egressCidrs | Only to override the API server addresses Core finds. The list replaces everything, so give every API server endpoint and the kubernetes Service address, each as /32 (IPv4) or /128 (IPv6). |
Optional values
| Value | Notes |
|---|---|
registry.persistence.size, seaweedfs.persistence.size | Volume sizes for the model registry cache (default 500Gi) and the built-in object store (default 100Gi). Lower them when storage is small; see Block storage. Set them before the first install; they can't be reduced later. |
core.userDefaults.adminPassword | The password for the admin user. Leave it unset and Kamiwaza generates one, which you read back in step 5. Setting it here stores it in the Helm release, or in the Argo CD Application. It applies at first install only; changing it later does not rotate the password. |
Example
The chart ships an example values file for this environment,
examples/kubernetes-envoy.yaml. Pull the chart for the version you install and
copy the file:
helm pull oci://ghcr.io/kamiwaza-ai/releases/kamiwaza/charts/kamiwaza --version 1.4.2 --untar
cp kamiwaza/examples/kubernetes-envoy.yaml kamiwaza-values.yaml
Without internet access, pull the chart from your registry instead.
Then edit kamiwaza-values.yaml: replace this cluster's facts as the tables above
list, and set global.eula.accepted to true once you have read the EULA. The
file comments out the global.trust.edgeAnchor block: uncomment it and set
pem to the contents of edge-ca.crt.
Step 3: Install
Install with Helm, below, or with Argo CD.
Record the start time first. The verification step uses it to ignore events from before this install.
INSTALL_START=$(date -u +%Y-%m-%dT%H:%M:%SZ)
helm upgrade --install kamiwaza \
oci://ghcr.io/kamiwaza-ai/releases/kamiwaza/charts/kamiwaza \
--version <version> \
--namespace kamiwaza \
--values kamiwaza-values.yaml \
--timeout 70m
<version> is the Kamiwaza version you are installing, for example 1.4.2.
- Do not add
--create-namespace. The namespace belongs to the platform administrator. - Helm may print Pod Security
restrictedwarnings. They are expected. - The install prints a
NOTE:that the certificate inkamiwaza-tlsmust namekamiwaza-envoy.kamiwaza.svc.cluster.local. Step 1 checked that it does. - It also prints
WARNING: HR-16 not checked, which lists permissions the chart checks for, andWARNING: no cluster owner trust. Both are expected when no cluster owner prepared the namespace. - A typical install takes 5 to 15 minutes, most of it pulling images.
To upgrade to a later release in the same line, rerun the
helm upgrade --install command above with the new --version and the same
values file. To upgrade from 1.3, see Upgrade Kamiwaza. If you
upgrade with Helm 4, see
Upgrading with Helm 4.
Install with Argo CD
From 1.4.2 you can install with Argo CD in place of the helm command above.
The chart generates no key, password or certificate while it renders, as long
as DataHub and the observability stack stay off and network.tls.mode stays
byo, as in the example file. A Job in your namespace,
kamiwaza-namespace-prepare, creates each key once and never replaces one that
exists. Argo CD runs it as a PreSync hook before every sync.
Read these first:
- Never sync 1.4.0 or earlier with Argo CD, or with any other tool that applies a rendered chart. Those charts generated new keys and passwords in every render, and applying them made stored credentials and access tokens unreadable.
- Do not install or upgrade by applying the output of
helm templatewithkubectl apply, at any version: the chart's Jobs then run in no order, and nothing creates the keys before the workloads need them. - To move an existing Helm installation to Argo CD, or to upgrade from 1.3, see Upgrade through Argo CD.
- The limits listed under Argo CD limits come from the chart, not the mesh, and apply here too.
For a fresh install:
-
Prepare as for a Helm install. Complete Platform Prerequisites, including the resource metrics API and Argo CD, step 1 and step 2. Before the first sync, these must exist in the
kamiwazanamespace:- the
kamiwaza-licenseSecret; - the
kamiwaza-tlsedge certificate Secret; - your pull Secret, if
global.imagePullSecretsnames one; - the cluster owner's signed profile ConfigMap, if you set
core.inferenceResources.bundleConfigMap.
Argo CD's render cannot read the cluster, so nothing checks these before the sync.
- the
-
Put the chart where Argo CD can read it. Argo CD pulls the chart from an OCI registry that it can reach:
-
With internet access, it can use the public registry,
ghcr.io/kamiwaza-ai/releases/kamiwaza/charts. -
After Install Without Internet Access, the chart is already in your registry, at
<registry-host>/kamiwaza-ai/releases/kamiwaza/charts. -
Otherwise, push it to your registry yourself, with an account that may push there:
helm pull oci://ghcr.io/kamiwaza-ai/releases/kamiwaza/charts/kamiwaza --version <version>helm registry login <registry-host>helm push kamiwaza-<version>.tgz oci://<registry-host>/<project>/charts# Expect "Pushed:" and the chart's referenceThe chart is then at
<registry-host>/<project>/charts/kamiwaza. If your registry's certificate is signed by a private CA, add--ca-file <CA file>to the login and the push. The login asks for a user name and password, so it needs a terminal. Where there is none, such as a pipeline job, pass the user with-u <user>and the password on standard input, from a file that only you can read:helm registry login -u <user> --password-stdin <registry-host> < <password file>.
-
-
Note the start time. Step 5 uses it:
INSTALL_START=$(date -u +%Y-%m-%dT%H:%M:%SZ) -
Create the Application. The Application, the repository registration and the project are Argo CD objects. Whoever administers Argo CD at the site creates them, not the installer identity. Give them the YAML below and your values file.
apiVersion: argoproj.io/v1alpha1kind: Applicationmetadata:name: kamiwazanamespace: argocd# Deleting the Application then deletes what it installed.finalizers:- resources-finalizer.argocd.argoproj.iospec:project: <your project>source:repoURL: <registry-host>/<project>/chartschart: kamiwazatargetRevision: <version>helm:releaseName: kamiwazavaluesObject:# the contents of kamiwaza-values.yaml from step 2destination:server: https://kubernetes.default.svcnamespace: kamiwazarepoURLis the chart's location from the previous step, withoutoci://and without the chart name at the end. Register it in Argo CD as an OCI Helm repository (enableOCI: "true"). The public registry needs no credentials. Your own registry usually needs credentials and, for a private CA, the CA; the Argo CD administrator sets both.- Add nothing under
syncPolicy.syncOptions, noignoreDifferencesand nosyncPolicy.retry, and do not use selective sync. Do not set theCreateNamespace=truesync option: the namespace belongs to the platform administrator. - The values in the Application are readable by whoever can read the Application, including any password you put in them.
-
Sync by hand. Start the first sync yourself, or ask the Argo CD administrator to. Expect one sync that ends
Succeeded. After it succeeds, you can add automated sync:syncPolicy:automated:prune: trueselfHeal: trueWhen you sync by hand, enable Prune for every sync that changes the version (the Prune box in the sync dialog, or
argocd app sync kamiwaza --prune). The release Jobs carry a hash in their names, and without Prune the old ones keep the ApplicationOutOfSync. -
Check.
-
Argo CD shows the Application
SyncedandHealthyat thetargetRevisionyou set. If you cannot open Argo CD, ask whoever administers it for the sync result. -
The
kamiwaza-namespace-prepareJob finished:kubectl -n kamiwaza logs job/kamiwaza-namespace-prepare | tail -1The line is
kamiwaza-namespace-prepare: done: <N> generated Secret(s) present. The log holds names and fingerprints, never a value. -
helm list -n kamiwazashows nothing: Argo CD keeps no Helm release record. That is expected.
Then publish the edge, in step 4.
-
The generated Secrets are not part of the Application, so Argo CD never
applies, compares or prunes them, and a later sync changes none of them. To
upgrade to a later release, put that release's chart where Argo CD reads it,
change targetRevision, and sync.
Step 4: Publish the edge
The chart creates kamiwaza-envoy as a ClusterIP Service on port 443. Unless
you set network.envoy.service.type: LoadBalancer in your values, publish it
now, the way you chose in
Publishing the edge. A namespace admin
can create each of these.
A Service of your own. It selects the Envoy pods and targets their https
port. This one uses externalIPs, for a cluster without a load balancer;
replace <node-ip> with the node address your users reach. For a load
balancer, set type: LoadBalancer and leave out externalIPs.
apiVersion: v1
kind: Service
metadata:
name: kamiwaza-edge-public
namespace: kamiwaza
spec:
type: ClusterIP
externalIPs:
- <node-ip>
selector:
app.kubernetes.io/name: kamiwaza-envoy
app.kubernetes.io/instance: kamiwaza
ports:
- name: https
protocol: TCP
port: 443
targetPort: https
Save it as kamiwaza-edge-public.yaml and apply it:
kubectl apply -f kamiwaza-edge-public.yaml
Expect a warning that externalIPs is deprecated on Kubernetes 1.36 and later.
This Service is yours, not the chart's: Helm and Argo CD do not manage it, and
the uninstall deletes it.
An Ingress with TLS passthrough. Point it at port 443 of kamiwaza-envoy
for your domain, and turn on passthrough the way your ingress controller does.
The Ingress must not terminate TLS.
Check from a machine that resolves the domain to the published address:
curl -s -o /dev/null -w '%{http_code}\n' --cacert edge-ca.crt https://kamiwaza.example.com/
# Expect 200
A certificate error means the edge serves another certificate, or the
published address does not reach kamiwaza-envoy.
Step 5: Verify
Check what the platform does, not only its status fields.
Wait for the platform to start. Helm can return before every pod is ready
and every setup job has finished. The chart's objects carry
managed-by=Helm under Argo CD too:
kubectl -n kamiwaza wait deployment -l app.kubernetes.io/managed-by=Helm \
--for=condition=Available --timeout=30m
kubectl -n kamiwaza wait job -l app.kubernetes.io/managed-by=Helm \
--for=condition=Complete --timeout=70m
Pods are running and ready:
kubectl -n kamiwaza get pods --no-headers \
| awk '$3 != "Completed" { split($2, r, "/"); if ($3 != "Running" || r[1] != r[2]) print }'
# Expect no output
An Error pod whose Job later completed is a retried attempt, not a failure.
Confirm with kubectl -n kamiwaza get jobs: every Job should show all completions.
No image pulls failed during this install. Older events in the namespace are
ignored. Run this in the same shell as step 3, or set INSTALL_START to the time you
started the install, in the same format:
kubectl -n kamiwaza get events -o json | jq --arg start "$INSTALL_START" '
[.items[]
| select((.lastTimestamp // .eventTime // .metadata.creationTimestamp) >= $start)
| select((.message // "") | test("ErrImagePull|ImagePullBackOff|Failed to pull image|Back-off pulling image"))
] | length'
# Expect 0
The platform answers at its domain:
curl -s -o /dev/null -w '%{http_code}\n' --cacert edge-ca.crt https://kamiwaza.example.com/ # expect 200
Log in. If you did not set an admin password, read the generated one:
kubectl -n kamiwaza get secret kamiwaza-user-admin \
-o jsonpath='{.data.password}' | base64 -d; echo
Open https://kamiwaza.example.com/ and log in as admin. With a certificate
your browser does not trust, accept the warning first.
admin is the Kamiwaza application administrator. It is not the installer
identity and not the Keycloak management account.
The platform is installed. Deploying models and apps is covered in the Quickstart.
Rotate the edge certificate
Envoy reads its certificate only when it starts. To renew the certificate, or to replace it with one from another CA, replace the Secret and restart the edge:
kubectl -n kamiwaza create secret tls kamiwaza-tls --cert=edge.crt --key=edge.key \
--dry-run=client -o yaml | kubectl apply -f -
kubectl -n kamiwaza rollout restart deployment/kamiwaza-envoy
kubectl -n kamiwaza rollout status deployment/kamiwaza-envoy
The new certificate needs the same names as the old one; see
Edge certificate. The edge is unavailable
for a few seconds while it restarts. Instead of the restart, you can change
network.envoy.rolloutKey in your values to any new string and upgrade, or
sync under Argo CD.
If the new certificate comes from a different CA, Kamiwaza's workloads must
trust that CA before the edge serves the certificate. First add the new CA to
global.trust.edgeAnchor.pem, after the old one, and upgrade or sync. A new
self-signed certificate is a new CA: give it a subject that differs from the old
one's, for example -subj "/CN=$DOMAIN/O=Kamiwaza edge 2027". With two
self-signed CAs of the same subject in the list, Core can't tell them apart and
its calls to the edge fail. The upgrade restarts Core, but App Garden apps and
Tool Shed tool servers load the CA list only when they are deployed, so redeploy
running apps and tool servers next. Then
replace the Secret and restart the edge as above. Remove the old CA from the
value with a later upgrade or sync. See
TLS Trust for Private Certificate Authorities
for which pods load the CA list and when.
Troubleshooting
The install stops before creating anything. The chart checks its values
before rendering. A missing EULA acceptance or license prints
INSTALLATION HALTED. A missing edge trust value prints the Context TLS
preflight error. Nothing was installed. Fix the values file and rerun step 3.
no Kamiwaza license is configured, with the license set. The license value
belongs under core:. Check that it is core.license.existingSecret, not
license.existingSecret.
The kamiwaza-envoy pod stays in ContainerCreating. The Secret that
network.tls.secretName names does not exist in the namespace. Create it as in
step 1.
Calls inside the platform fail with Hostname mismatch. The edge
certificate does not name kamiwaza-envoy.kamiwaza.svc.cluster.local. Reissue
it with that name, then rotate it and redeploy
running App Garden apps and Tool Shed tool servers. See
Envoy with network.tls.mode: byo.
The install hangs for about 15 minutes, then fails on a post-install job.
This is almost always a cascade from core-scheduler not starting. Check its
logs first: kubectl -n kamiwaza logs deploy/core-scheduler. A license problem
shows here as License check failed; see License File.
Pods are Pending on their volumes. A StorageClass named in the values does
not exist or cannot provision. Compare kubectl get storageclass with
global.storage.stateful.*.
Images fail to pull with unauthorized. The pull Secret named in
global.imagePullSecrets does not exist in the namespace, or has the wrong
credentials. Compare it with kubectl -n kamiwaza get secret. Recreate the
Secret; the pods retry the pull with back-off.
The domain does not answer, or answers with another certificate. The edge
is not published, or DNS points elsewhere. Check the Service or Ingress from
step 4, and that it selects the kamiwaza-envoy pods:
kubectl -n kamiwaza get endpointslices -l kubernetes.io/service-name=kamiwaza-edge-public
lists the Envoy pod's address.
Argo CD: every sync ends Failed on horizontalpodautoscaler/core-api.
The cluster does not serve the resource metrics API. Everything else ran. Have
the platform administrator install metrics-server; see
Resource metrics API.
Argo CD: a Job named core-db-init-r<n>-<hash> failed. Read its log for
the cause, then sync again. At the start of the next sync,
kamiwaza-namespace-prepare removes the failed Job, and the sync runs it again.
Argo CD: the sync stops in kamiwaza-namespace-prepare. Read the last line
of its log:
kubectl -n kamiwaza logs job/kamiwaza-namespace-prepare | tail -20.
STOPPED ON PURPOSE, ONCE means: sync again. REFUSED lists each problem and
its remedy; nothing was changed. A refusal that names a volume with no Secret
usually means an earlier installation left its volumes in the namespace; see
Uninstall.
Argo CD: the Application stays Progressing. With
network.envoy.service.type: LoadBalancer, the Service has no external address
yet. Check kubectl -n kamiwaza get service kamiwaza-envoy.
Next steps
- Quickstart: start using Kamiwaza.
- License File: check and rotate the license.
- Uninstall.