Skip to content
GenerateDocs
What's new
Install and upgradeInstall on your cluster
On this page

Install Generate into namespaces on your own cluster

Plan and run a Generate install in two namespaces of a Kubernetes cluster you run, with Helm, Argo CD or an import, then upgrade or remove it.

EditionsEnterprise: availableConsumer: not availableStorage: not availableHealthcare: availableAirgapped: not available
Who can do thisA cluster administrator for the one-time bundle, then a namespace administrator whose portal account can request install grants.
WhereA terminal with a kubeconfig for the cluster, and the Iterate portal.

This page helps your platform team install a Generate site into two namespaces of a Kubernetes cluster you already run, and keep it upgraded.

The work splits between two people. A cluster administrator applies a reviewed cluster bundle once, which holds everything that needs cluster-wide rights. A namespace administrator then installs the site with rights only in the site’s two namespaces. On a platform that installs applications through its own import tool, such as HPE Private Cloud AI, a platform administrator imports the site’s chart archive as a third step.

The installer never installs Kubernetes, node drivers, an ingress controller or Argo CD. It uses your cluster’s edge, storage, GPUs and, if you name one, your registry.

Name the namespace the site installs into and create the site in the portal.

  1. Have the site namespace ready

    The site namespace must exist before you print the machine code, because the code is read from it. Use a namespace your platform already gave you, or ask the cluster administrator to create it. The sandbox namespace can wait for the cluster bundle, which creates it.

  2. Print the machine code

    Run this as the namespace administrator, with the kubeconfig you will install with. It reads only the namespace’s kube-root-ca.crt and the cluster’s version and API groups, and prints one line with no QR code.

    Terminal window
    ./generate machine-code --kubeconfig <file> --namespace <site namespace>
  3. Answer the Existing cluster step

    In the portal, choose New site and paste the line. Because the code came from a namespace, the wizard adds an Existing cluster step after Machine. Fill in Where it runs, How it installs, How traffic arrives, Sandbox runtime and Operators your cluster runs, and under Optional your registry and platform sign-in. What the cluster must provide explains each answer.

  4. Download the grant

    Download the grant file, generate-grant-<id>.json. A grant works for that namespace, for one release, for 48 hours.

A site on your cluster takes your own domain only. Your platform’s edge holds the certificate and ends TLS, so the site requests no certificate of its own.

Copy the images, if the site has its own registry

Section titled “Copy the images, if the site has its own registry”

With a registry set on the site, the cluster bundle’s checks pull their image from that registry, so the release’s images must be there before the cluster administrator applies it. The namespace administrator copies them with the grant.

  1. Log in to your registry

    The installer’s oras reads your own login there.

    Terminal window
    oras login <registry host>
  2. Copy the images

    Use the kubeconfig and namespace you printed the machine code with.

    Terminal window
    ./generate copy-images --grant generate-grant-<id>.json --issuer <portal address> --kubeconfig <file> --namespace <site namespace>

The command reads the namespace to check the grant, writes nothing in the cluster and starts no install in the portal, so the grant still works for the install. It copies each image the release pins, by digest, and skips any whose digest your registry already holds, then prints how many it copied and how many were already there. A second run copies nothing. On a site without its own registry it refuses, because the install pulls from Iterate’s registry.

The cluster administrator reads and applies everything the site needs outside its two namespaces, once per site and again when a new release raises a component’s version.

  1. Download the bundle

    On the site’s page in the portal, the Cluster bundle card offers cluster-bundle.yaml for the site’s release. It holds parameters and manifests, and no secret.

  2. Read what it changes

    This prints every object the apply step writes, the operator charts rendered, and touches no cluster. It needs helm and network access to the operators’ public chart repositories.

    Terminal window
    ./generate cluster-bundle print --file cluster-bundle.yaml
  3. Apply it

    Run this with a cluster administrator’s kubeconfig. --subject names the namespace administrator as the cluster authenticates them, user:<name> or group:<name>. The machine needs helm, kubectl and python3 on its path, and the command uses the kubeconfig’s current context.

    Terminal window
    ./generate cluster-bundle apply --file cluster-bundle.yaml --kubeconfig <admin kubeconfig> --subject user:<name>
  4. Apply the Argo CD rights, on an Argo CD site

    On a site Argo CD deploys, the command ends by printing a Role and RoleBinding for your Argo CD namespace, which it does not apply. Put the namespace administrator in place of NAMESPACE-ADMINISTRATOR and apply them.

Before it writes anything, apply lists every refusal at once: a bundle from another release, a provided operator whose named namespace runs none of its Deployments or that runs below Generate’s version, a shared storage class that is missing or binds only once a pod uses it, and nodes too small for the site’s size. Then, in order, it:

  • creates the site and sandbox namespaces where they are missing
  • installs the operators the site needs that your cluster does not provide, at Generate’s pinned versions, and the agent sandbox controller with its extension CRDs
  • applies the bundle’s cluster-scoped objects: the gVisor RuntimeClass when you chose gVisor, and the PCAI labelling policy on a PCAI site that is not imported, as a Kyverno MutatingPolicy where your Kyverno serves that kind and a ClusterPolicy where it does not
  • runs a short pod under gVisor, when you chose it, and refuses if the nodes cannot start it
  • creates the shared sandbox volume pair, described in The two namespaces
  • creates Role generate-installer in each namespace, holding the rights the install needs, and binds it to --subject
  • writes ConfigMap generate-cluster-facts in the site namespace: the nodes, the Kubernetes version and each component’s version

It installs no gateway, because the site’s release carries its own. A second apply with the same file changes nothing but the time on the facts.

The namespace administrator installs the site with the grant, with rights in the two namespaces and nothing else.

  1. Log in to your registry, if the site uses one

    With a registry set on the site, the install copies Iterate’s images into it. Log in there first, as the installer’s oras reads your own login.

    Terminal window
    oras login <registry host>
  2. Run the install command

    Run it from Linux or a Mac with Apple silicon, with the same kubeconfig and namespace you printed the machine code with. The machine needs neither kubectl nor python3.

    Terminal window
    ./generate install --grant generate-grant-<id>.json --issuer <portal address> --kubeconfig <file> --namespace <site namespace>
  3. Read the administrator password

    The install ends by printing where to sign in and the command that reads the first administrator’s password from Secret admin-initial-credentials in the site namespace.

  4. Sign in and register a tenant

    Open /tenant-register/login on the site’s app host, sign in as the account the install printed, and choose Register a tenant. With platform sign-in set, the first tenant’s users sign in through your platform’s identity provider without further setup.

The install first runs every check and writes nothing unless all of them pass: one access review per row of the site’s rights, the facts ConfigMap at or above this release’s floor and large enough for the site’s size and GPU needs, the operators’ APIs, both shared claims bound, a 1 GiB ReadWriteMany probe claim that must bind within 60 seconds, the pull secret in both namespaces when the site names one, and on an Argo CD site an Argo CD repo server in the namespace you named.

It then writes only Secrets in the two namespaces: the pull credential, the telemetry token, the site handle site-handle, the first administrator’s account and the issued keys. It creates no Namespace, writes no AppProject and reads no PersistentVolume. What happens next depends on the deployer:

Deployer What the install does
Helm Downloads its own pinned Helm, pulls the site’s chart with the grant’s credential, seeds the in-cluster Postgres, and runs helm upgrade --install rel into the site namespace, waiting up to 30 minutes while it gives the site’s secret store its identities. It runs Helm once more when that step minted new values.
Argo CD Writes the repository Secret and two small Roles for the site’s jobs in your Argo CD namespace, seeds Postgres, writes the Application into your namespace and project with the site namespace as its destination, waits for it to sync, then gives the secret store its identities. It writes no AppProject.
Import Seeds Postgres for release rel and writes a chart archive for your platform’s import tool, as the next task describes. No Helm release exists until the import.

On an Argo CD site, your project must allow the site’s config repository in Iterate’s registry, oci://<registry>/site-<site id>/config, and the two namespaces as destinations; it needs no cluster-scoped resource. A rerun of the install picks up where a stopped one left off and changes nothing that is already right.

On an import site the platform’s Import Framework installs the release, so the install finishes in two runs around the import.

  1. Run the install command

    As above. It writes the Secrets, seeds Postgres and writes <site id>-<release>.tgz in the working directory. With a registry set, it copies the images first, and the archive pulls from your registry.

  2. Import the archive

    A platform administrator imports the archive in the Import Framework into the site namespace, with release name rel. The installer seeded Postgres for that name and the chart names the Secrets it wrote after it, so any other name fails. The values the wizard shows for the virtual service come from the site’s edge.

  3. Run the install command again

    Once the release exists, the same command gives the site’s secret store its identities and writes a second archive carrying them. Run before the import, it changes nothing and says to import first.

  4. Upgrade the imported application

    A platform administrator opens the application’s tile in the Import Framework, chooses Update, uploads the second archive, then chooses Upgrade.

How a site on your cluster moves to a new release depends on its deployer.

Deployer How it upgrades
Helm A person starts the update in the portal, then runs generate upgrade, which the site’s update card shows. The portal never offers an automatic update policy for it.
Argo CD The site’s release reporter moves the Application to the release the portal points at. With your own registry, the reporter leaves it, and generate upgrade copies the new release’s images and then moves the Application.
Import generate upgrade writes the new release’s archive, and a platform administrator upgrades the imported application with it: Update, upload the archive, Upgrade.
  1. Start the update in the portal

    Move the site to the newer release in the portal. On an Argo CD site that pulls from Iterate’s registry, nothing more is needed.

  2. Run the upgrade command

    Run it as the namespace administrator. It reads the site handle the install kept in the site namespace, so it takes no grant.

    Terminal window
    ./generate upgrade --issuer <portal address> --kubeconfig <file> --namespace <site namespace>

The upgrade runs the same checks as the install, writes any issued key the new release adds, copies the images when the site has its own registry, then runs helm upgrade, moves the Application or writes the archive. Its log goes to the site’s update in the portal as it runs and stays in generate-upgrade-<run>.log in the working directory.

Remove what the namespace administrator’s install created, and get the commands for what the cluster administrator keeps.

  1. Remove the imported release first, on an import site

    A platform administrator removes the application in the Import Framework. Until then the uninstall refuses, naming release rel.

  2. Run the uninstall command

    Run it as the namespace administrator, with no --handle.

    Terminal window
    ./generate uninstall --issuer <portal address> --kubeconfig <file> --namespace <site namespace>
  3. Hand the printed commands to the cluster administrator

    The command ends by printing what stays, as commands for a cluster administrator’s kubeconfig. It never runs them.

The uninstall removes the Helm release, or the Argo CD Application with its resources, and on an import site the Postgres the install seeded. It then deletes the Secrets the install wrote in both namespaces and, on an Argo CD site, the repository Secret and the jobs’ Roles in your Argo CD namespace, with site-handle last. It deletes no Namespace, Role, operator or PersistentVolume.

What it prints for the cluster administrator:

  • Role and RoleBinding generate-installer in each namespace that holds them
  • the shared volume pair, whose volume is kept on delete, so the share keeps its files
  • the two namespaces
  • the cluster-scoped objects and operators the bundle installed, to remove once no other site uses them
  • on an import site, the platform’s pull secret, a delete for each form of the labelling policy the import left behind (only the form your cluster holds removes anything), and the repositories the images were copied to

The uninstall exchanges the site handle, so a site revoked in the portal cannot be uninstalled this way.

A site uses two namespaces: the site namespace for its services, data stores and gateway, and the sandbox namespace for the pods where its agents run code and tools. Agents write that code at run time, so the site treats it as untrusted, and the second namespace keeps it apart:

  • Secrets and Roles in the site namespace are out of reach of a sandbox pod.
  • A quota caps the sandbox namespace’s pods, CPU and memory at what the site’s size allows.
  • A network policy lets only the site’s agent services reach the sandbox router.
  • With gVisor chosen, sandbox pods run under its RuntimeClass.

The site and its sandboxes still read one file set. A claim belongs to one namespace, so the bundle creates claim sandbox-data-main in the site namespace, then a second volume over the same storage and claim sandbox-data-sandbox in the sandbox namespace. The site’s release renders neither claim and only mounts them.

The rights are listed per namespace, API group and resource in the site’s install-access.yaml, which the Cluster bundle card shows as Rights the installer needs and the bundle turns into Role generate-installer in each namespace. They are worked out from the site’s own release, so they differ slightly between sites and releases.

Deployer In the site and sandbox namespaces In your Argo CD namespace
Helm Every kind the release creates there, with create, get, list, patch, update and delete; every rule of each Role the release creates there; Secrets, ConfigMaps and claims; the reads Helm’s waits use None
Argo CD The same, without Helm’s waits Applications, Secrets, Roles and RoleBindings, and list on Deployments
Import Secrets, ConfigMaps and claims; Postgres clusters and poolers in the site namespace None

Why each part exists:

  • Every kind the release creates. The Helm deployer’s Helm applies the release as you, so you need every right the release’s objects take.
  • Every rule of each Role the release creates. Kubernetes refuses to let you create a Role that grants rights you do not hold yourself, and the release creates Roles for its own services.
  • Secrets, ConfigMaps and claims. The installer writes its Secrets in both namespaces and creates the storage probe claim.
  • The secret store step. In the site namespace the installer reads Services and Deployments, lists pods and opens a port-forward to the store, to give the site’s secret store its identities.
  • Helm’s waits. Helm watches the release’s hook Jobs and Pods, lists ReplicaSets and pods while it waits for readiness, and reads the namespace when it replaces a hook.
  • The same rows on Argo CD. Argo CD applies the release with its own rights, but the installer still seeds Postgres, runs the secret store step and writes the jobs’ Roles in the two namespaces.
  • The Argo CD namespace. The installer writes the Application and its repository Secret there, since Argo CD reads repository Secrets only from its own namespace. The site’s two Roles there let the release reporter move the Application and the registry refresher renew the repository Secret. list on Deployments lets the checks find the Argo CD repo server, and delete serves the uninstall.
  • Import. The import applies the release with the platform’s rights, so the installer needs only its own writes and the Postgres it seeds before the import.

No row grants a cluster-wide right, and the site’s gateway runs with a service account that holds no rights at all.

What What the site needs from it
An edge An ingress controller with an IngressClass, or Istio with a Gateway, that ends TLS for the site’s hosts. The site’s release creates one object for it in the site namespace: an Ingress on your class, or a VirtualService on your gateway, sending every site host to Service apisix-gateway on port 80.
Storage A storage class served by a CSI driver that offers ReadWriteMany and binds a claim as soon as it is created. The shared volume pair copies the bound volume’s CSI source, so a class without CSI is refused.
Operators Any of the operators the site needs: cert-manager, CloudNativePG, Strimzi, the Milvus operator, the Prometheus operator stack, Reloader and External Secrets. Tick the ones your cluster runs in the wizard, and name the namespace each one runs in; the bundle installs the rest. The site’s network policy admits that namespace for the operators that reach the site’s pods (CloudNativePG and the Milvus operator). A provided operator must run in the namespace you named, at or above Generate’s version, read from the helm.sh/chart label on its Deployments there, or the older chart label where that is the only one; one installed with neither label is refused.
A sandbox runtime gVisor’s runsc on the nodes that run sandboxes, or runc. With runc, the install prints on every run what running sandboxes without gVisor means for isolation.
GPUs, for a model served on the site Nodes that advertise nvidia.com/gpu, through your platform’s GPU operator.
Capacity Nodes with the CPU and memory of the site’s size, as Install Generate lists.

The edge reaches the gateway through the site’s own network policy, which admits the gateway’s ports from any source, so a network plugin that enforces policies needs no extra rule.

Your edge must pass a request body of at least the site’s upload limit, 100 MiB unless your site sets another. An edge with a smaller limit, such as a 1 MiB default, makes every larger upload fail with status 413 before it reaches the site. The installer cannot read your edge’s limit, so it prints the site’s figure on every run as an obligation for you to meet.

With a registry set on the site, generate copy-images copies the release’s images there before the cluster bundle, as Copy the images describes. The install and every upgrade copy each image the release pins, by digest, from Iterate’s registry to yours with the installer’s pinned oras, and the site’s pods pull from your registry with the pull secret you named. That Secret must exist in both namespaces before the install, and the checks refuse without it. Every image the site runs is copied, its data stores included. The operators the cluster bundle installs still come from their public chart repositories and registries, so on a cluster that may pull only from its own registry, the administrator installs them from your mirror and lists them as provided.

Your distribution’s vendor supports Kubernetes on your cluster. Iterate supports Generate on the Kubernetes versions and distributions it lists for this install path.

That list is empty today. Each distribution joins it once a site has been installed on it on real hardware, and this page will name it then. The site’s chart declares Kubernetes 1.28 or later, so Helm refuses to install it on an older cluster.

Command What it does
generate registry-login --issuer <portal address> --kubeconfig <file> --namespace <site namespace> Prints a helm registry login for the site’s chart in Iterate’s registry, with a credential that lasts 12 hours, and names the chart it pulls
generate diagnose Writes a support file for Iterate, as Install Generate describes

Last updated on