{
  "schema_version": 2,
  "id": "operate/iris/identity-service/self-managed/deploy",
  "title": "Deploy the Identity Service",
  "url": "https://redis.io/docs/latest/operate/iris/identity-service/self-managed/deploy/",
  "summary": "Install the Identity Service with the redis-iris suite chart, check that it answers, and find the credentials the chart generates.",
  "aliases": [
    "/operate/iris/identity-service/deploy/"
  ],
  "tags": [
    "docs",
    "operate",
    "iris"
  ],
  "last_updated": "2026-11-12T12:39:49-05:00",
  "page_type": "content",
  "content_hash": "82dd2776e851ded5a6cbf68a2a6024f66242168679fc867f319ec23da7858218",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "The `redis-iris` suite chart installs the Identity Service, the Iris console, and the services you enable as one Helm release. It always installs the Identity Service, under the fixed name `iris-identity-service`, and the services find it by that name. These steps cover the Identity Service part of the [suite install](https://redis.io/docs/latest/operate/iris/self-managed).\n\nThe examples use the release name `iris`. Before you begin, review the [prerequisites](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/prerequisites)."
    },
    {
      "id": "1-create-the-namespace",
      "title": "1. Create the namespace",
      "role": "content",
      "text": "Use a namespace that holds only this release:\n\n[code example]"
    },
    {
      "id": "2-create-the-metadata-secret",
      "title": "2. Create the metadata Secret",
      "role": "content",
      "text": "Create a Secret with the connection of your metadata Redis, under the key `metadata.yaml`. Use `rediss://` for TLS, and put the Redis user and password in the URL:\n\n[code example]\n\nAlso create the shared Secrets that the [suite install](https://redis.io/docs/latest/operate/iris/self-managed#2-create-the-shared-secrets) lists, and each enabled service's own Secrets."
    },
    {
      "id": "3-add-the-identity-service-values",
      "title": "3. Add the Identity Service values",
      "role": "content",
      "text": "Add these values to `iris-values.yaml`:\n\n[code example]\n\nChoose the tenant ID before the first install. You can't change it later. See [Tenant](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/configuration#tenant).\n\nFor a complete installation, start from the files in the chart's `examples/` directory: `memory-only.yaml`, `playbook.yaml`, `lens.yaml`, `context-gateway.yaml`, and `intent.yaml`. `single-product.yaml` shows one service with IdP sign-in in the console."
    },
    {
      "id": "what-the-chart-sets-for-you",
      "title": "What the chart sets for you",
      "role": "content",
      "text": "The suite chart derives these Identity Service settings. Don't set them under `identityService:`: a value that differs from the derived one fails the install and names the field.\n\n- The name `iris-identity-service`, port `9200`, and a PodDisruptionBudget.\n- The control token Secret, `iris-identity-service-control-token`.\n- One runtime credential for each enabled data plane, for example `memory-dp`, with the `api-key-introspect` operation for its service only.\n- One grant validator for each enabled control plane. See [Services](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/configuration#services).\n- The tenant, operator sign-in, and role bindings, from `global.iris`.\n- The **API Keys** page of the Iris console, which calls the Identity Service.\n\nThe chart runs two Identity Service replicas by default. You can change `identityService.replicaCount`."
    },
    {
      "id": "4-run-the-preflight-and-install",
      "title": "4. Run the preflight and install",
      "role": "content",
      "text": "Run the [suite preflight](https://redis.io/docs/latest/operate/iris/self-managed#4-run-the-preflight). Then pull the chart for its `examples/` directory, and install:\n\n[code example]\n\nAdd an `-f redis-iris/examples/<service>.yaml` file for each other service you enable."
    },
    {
      "id": "5-check-the-installation",
      "title": "5. Check the installation",
      "role": "content",
      "text": "1. Port-forward the Identity Service in its own terminal, and leave it running:\n\n   [code example]\n\n1. Check readiness. It checks the metadata Redis:\n\n   [code example]\n\n   The response is `{\"status\":\"ready\"}`.\n\n1. Read the control token. `helm status` also prints this command:\n\n   [code example]\n\n1. List the services that have a grant validator:\n\n   [code example]\n\n1. Run the suite test:\n\n   [code example]\n\n   For each enabled service, the test creates a resource and a key, uses the key on the data plane, and then deletes them. For Lens, it uses the instance `default` and creates no resource. This proves grant validation and key checks.\n\n   - The test creates its Agent Memory store in Memory database `1`. If your Memory `databases` registry uses another key, set `tests.suiteVerify.databaseId`.\n   - The test pod uses a public Python image. Without access to Docker Hub, set `tests.suiteVerify.image` to your mirror."
    },
    {
      "id": "credentials",
      "title": "Credentials",
      "role": "content",
      "text": "By default, the chart generates every credential once, as Secrets that Helm keeps across upgrades, rollbacks, and uninstalls. Each component mounts only its own key.\n\n| Secret | Key | Used by |\n| --- | --- | --- |\n| `iris-identity-service-control-token` | `token` | The Identity Service control API |\n| `iris-<service>-dataplane-credential` | `<service>-dp` | The service's data plane and the Identity Service |\n| `iris-<service>-internal-token` | `<service>` | The service's control plane and the Identity Service |\n| `iris-<service>-admin-token` | `token` | The service's control plane admin API |\n| `iris-ui-session-key` | `key` | The console's sign-in service, with IdP sign-in |\n\n`<service>` is `memory`, `playbook`, `lens`, `context-gateway`, or `intent`.\n\nFor the runtime credentials and the internal tokens, the caller and the Identity Service mount the same Secret. The console doesn't mount the control token. With IdP sign-in, the console gateway sends the operator's access token. In admin token mode, the operator pastes the control token in the browser, and the gateway sends it to the Identity Service."
    },
    {
      "id": "supply-your-own-credentials",
      "title": "Supply your own credentials",
      "role": "content",
      "text": "For GitOps tools such as Argo CD or Flux, create the Secrets yourself. Set `global.iris.renderMode: gitops` and `global.iris.secrets.generate: false`, then create these Secrets, with their keys, before the first sync:\n\n| Secret | Value that names it | Keys |\n| --- | --- | --- |\n| Data plane credentials | `global.iris.secrets.dataplaneServiceCredentials.existingSecret` | `<service>-dp`, for each enabled service |\n| Internal tokens | `global.iris.secrets.controlplaneInternalTokens.existingSecret` | `<service>`, for each enabled service |\n| Identity Service control token | `identityService.control.existingSecret` | `token` |\n| Service admin tokens | `<alias>.controlplane.adminToken.existingSecret` | `token` |\n| Console session key | `ui.sso.session.existingSecret` | `key`. Required with `ui.sso.enabled`, the default. |\n\n- `<alias>` is `memory`, `playbook`, `lens`, `contextGateway`, or `intent`.\n- The two `global.iris.secrets.*` Secrets must have different names.\n- An offline render can't read the Secrets. The suite preflight checks that each key is in the two `global.iris.secrets.*` Secrets. Run it before the first sync.\n\nStart from `examples/byo-gitops.yaml` or `examples/full-suite-gitops.yaml` in the chart."
    },
    {
      "id": "next-steps",
      "title": "Next steps",
      "role": "content",
      "text": "- [Give an agent access with an agent key](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/operations#give-an-agent-access-with-an-agent-key).\n- [Let operators sign in with your IdP](https://redis.io/docs/latest/operate/iris/identity-service/self-managed/authentication#operator-sign-in-with-your-identity-provider)."
    }
  ],
  "examples": [
    {
      "id": "1-create-the-namespace-ex0",
      "language": "bash",
      "code": "kubectl create namespace <namespace-name>",
      "section_id": "1-create-the-namespace"
    },
    {
      "id": "2-create-the-metadata-secret-ex0",
      "language": "bash",
      "code": "kubectl -n <namespace-name> create secret generic ids-metadata \\\n  --from-literal=metadata.yaml='metadata: {urls: [\"rediss://<metadata-user>:<metadata-password>@<metadata-host>:<metadata-port>\"]}'",
      "section_id": "2-create-the-metadata-secret"
    },
    {
      "id": "3-add-the-identity-service-values-ex0",
      "language": "yaml",
      "code": "global:\n  iris:\n    tenantId: default\nidentityService:\n  metadata:\n    existingSecret: ids-metadata",
      "section_id": "3-add-the-identity-service-values"
    },
    {
      "id": "4-run-the-preflight-and-install-ex0",
      "language": "bash",
      "code": "helm repo add redis-ai https://helm.redis.io/ai\nhelm repo update redis-ai\nhelm pull redis-ai/redis-iris --version 1.0.0 --untar\nhelm install iris redis-ai/redis-iris \\\n  --version 1.0.0 \\\n  --namespace <namespace-name> \\\n  -f redis-iris/examples/memory-only.yaml \\\n  -f iris-values.yaml",
      "section_id": "4-run-the-preflight-and-install"
    },
    {
      "id": "5-check-the-installation-ex0",
      "language": "bash",
      "code": "kubectl -n <namespace-name> port-forward svc/iris-identity-service 9200:9200",
      "section_id": "5-check-the-installation"
    },
    {
      "id": "5-check-the-installation-ex1",
      "language": "bash",
      "code": "curl -sS http://localhost:9200/health/readiness",
      "section_id": "5-check-the-installation"
    },
    {
      "id": "5-check-the-installation-ex2",
      "language": "bash",
      "code": "export IRIS_IDENTITY_TOKEN=$(kubectl -n <namespace-name> get secret iris-identity-service-control-token \\\n     -o jsonpath='{.data.token}' | base64 -d)",
      "section_id": "5-check-the-installation"
    },
    {
      "id": "5-check-the-installation-ex3",
      "language": "bash",
      "code": "curl -sS -H \"Authorization: Bearer $IRIS_IDENTITY_TOKEN\" http://localhost:9200/v1/products",
      "section_id": "5-check-the-installation"
    },
    {
      "id": "5-check-the-installation-ex4",
      "language": "bash",
      "code": "helm test iris --namespace <namespace-name> --logs",
      "section_id": "5-check-the-installation"
    }
  ]
}
