Overview
Niro can manage KubernetesConfigMap and Secret resources for a connected cluster. Use this when an app needs runtime configuration, credentials, API keys, webhook URLs, or feature flags that should exist in the cluster before the app starts.
| Resource | Use for | Visibility |
|---|---|---|
ConfigMap | Non-sensitive app configuration | Values are shown in the dashboard |
Secret | Passwords, tokens, webhook URLs, private keys | Values are encrypted at rest and redacted after save |
Prerequisites
- A cluster connected to Niro
- The apply capability enabled on that cluster
Create a ConfigMap or Secret
- Open Clusters in the Niro dashboard.
- Select the cluster.
- Open the Config panel.
- Choose ConfigMap or Secret.
- Enter the namespace, name, and key-value pairs.
- Click Create ConfigMap or Create Secret.
Reference from an app
After the resource exists, reference it from the Visual Builder in the app’s Secrets section. Use envFrom when the container should receive every key:Update values
- Open the cluster’s Config panel.
- Select ConfigMap or Secret.
- Click Edit on the resource.
- Change keys or values.
- Click Save changes.
Kubernetes does not restart pods automatically when environment variables from a Secret or ConfigMap change. Restart or redeploy the workload if the app reads those values only at startup.
Delete a resource
- Open the cluster’s Config panel.
- Select ConfigMap or Secret.
- Click Delete on the resource.
- Confirm the deletion.
GitOps and direct management
Config resources managed from the cluster Config panel are applied directly to the cluster. They are not committed to your Git repo. If you want Git to be the source of truth for a ConfigMap or Secret, manage that resource in your repository instead. For sensitive values, avoid committing plaintext secret values to Git.Required permissions
The apply capability grants Niro permission to create, update, patch, and delete the namespaced resources it manages, includingConfigMap and Secret resources. It can create and patch namespaces, but it never deletes namespaces.
If create or delete fails with a Kubernetes permission error, re-run the installer with apply enabled:
Related
- Deploy an App - reference Secrets and ConfigMaps from workloads
- Visual Builder - generated manifest reference
- Agent Capabilities - RBAC details for apply