antrea-ui
by Antrea
Helm chartv0.8.0App 0.8.0Apache-2.0Verified publisher
Web UI for the Antrea Kubernetes network plugin
About this chart
antrea-ui
Web UI for the Antrea Kubernetes network plugin
Homepage: https://antrea.io/
Source Code
Requirements
Kubernetes: >= 1.28.0-0
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity for the Antrea UI Pod. |
| antreaNamespace | string | "kube-system" | Namespace where Antrea is installed. |
| auth.basic.enable | bool | true | Enable password-based authentication (the static "admin" password). Kubernetes API calls made by these sessions are impersonated as the antrea-ui-admin ServiceAccount, so every user logging in this way has exactly the same cluster access. |
| auth.bearerToken.enable | bool | true | Enable the "Authorization: Bearer " fallback on the Antrea UI API, for non-browser clients (a script, a controller, the e2e suite) that authenticate every request with a Kubernetes token instead of holding a session cookie. Such a request creates no session, and its token is validated against the API server on the request itself, since there is no login step to validate it at. The browser UI never sends this header, so turning it off costs the UI nothing; leave it on only if something other than a browser talks to the API. |
| auth.kubeconfig.enable | bool | false | Enable "bring your own kubeconfig" authentication: the user uploads a kubeconfig and Antrea UI uses the current context's credential (a token, or a client certificate and key) on their behalf. Credentials that would have to run a program on the user's machine (exec plugins, auth-provider) are rejected. |
| auth.oidc.clientID | string | "" | Application (client) ID to be used by the Antrea UI server to identify itself to the OIDC provider. |
| auth.oidc.clientIDSecretRef.key | string | "clientID" | Name of the key field storing the application (client) ID in the referenced secret. |
| auth.oidc.clientIDSecretRef.name | string | "" | Name of the secret containing the application (client) ID to be used by the Antrea UI server to identify itself to the OIDC provider. The secret must exist in the Namespace of the Helm release. It is mutually exclusive with the clientID value. |
| auth.oidc.clientSecret | string | "" | Application secret to be used by the Antrea UI server to identify itself to the OIDC provider. Note that this secret will never be exposed to the UI frontend and to users. It should be base64-encoded. |
| auth.oidc.clientSecretSecretRef.key | string | "clientSecret" | Name of the key field storing the application secret in the referenced secret. |
| auth.oidc.clientSecretSecretRef.name | string | "" | Name of the secret containing the application secret to be used by the Antrea UI server to identify itself to the OIDC provider. The secret must exist in the Namespace of the Helm release. It is mutually exclusive with the clientSecret value. |
| auth.oidc.discoveryURL | string | "" | Address at which to perform OIDC discovery, when it differs from issuerURL. Only needed when the issuer is a public address the backend Pod cannot reach (or cannot reach until it is itself Ready, which would deadlock startup). Leave empty to discover at issuerURL, which is the normal case. |
| auth.oidc.enable | bool | false | Enable OIDC-based authentication: the server connects to an OIDC provider to authenticate users. When enabling OIDC authentication, you will need to set the top-level url value. The kube-apiserver must be configured to trust the same issuer, via the --oidc-issuer-url and --oidc-client-id flags, because the id_token is what Antrea UI presents to it on the user's behalf. See docs/oidc.md. |
| auth.oidc.issuerURL | string | "" | URL of the OIDC provider. The server will use the URL to retrieve the OpenID Provider Configuration Document, which should be available at the /.well-known/openid-configuration endpoint. The kube-apiserver must be configured to trust this same issuer, since the id_token it issues is the credential Antrea UI presents to Kubernetes on the user's behalf. |
| auth.oidc.logoutURL | string | "" | URL to log out of the OIDC provider. It will be invoked when the user logs out of the Antrea UI. Some OIDC providers may not offer this capability. If this is empty, the user will stay signed into the identity provider even after logging out of the Antrea UI. The provided URL will be processed by a template engine, and the following template values are supported: {{Token}} (the ID token issued by the provider), {{ClientID}} (the application ID), {{URL}} (the URL at which Antrea UI is accessible), and {{LogoutReturnURL}} (useful if you want to redirect back to Antrea UI after signing out from the identity provider, with a helpful user-facing message). |
| auth.oidc.providerName | string | "" | Name of the OIDC provider (Dex, Github OAuth2, ...). This is used for user-facing messages, and does not have any impact on functionality. |
| auth.oidc.scopes | list | ["openid","email","groups","offline_access"] | Scopes to request from the OIDC provider. "offline_access" is what makes the provider issue a refresh token, without which a session ends as soon as the id_token does (often only minutes). "groups" populates the group claims that group-based Kubernetes RBAC needs. "email" is requested because --oidc-username-claim=email is by far the most common kube-apiserver configuration, and providers omit the claim if the scope was not asked for. |
| auth.token.enable | bool | true | Enable Kubernetes token authentication on the login page: the user pastes a bearer token (typically a ServiceAccount token) and Antrea UI creates a session from it, like any other login mode. Independent of auth.bearerToken below, which accepts the same credential as a per-request API header rather than as a login. |
| backend.extraVolumeMounts | list | [] | Additional volumeMounts. |
| backend.image | object | {"pullPolicy":"IfNotPresent","repository":"antrea/antrea-ui-backend","tag":""} | Container image to use for the Antrea UI backend. |
| backend.logVerbosity | int | 0 | Log verbosity switch for backend server. |
| backend.port | int | 8080 | Container port on which the backend will listen. |
| backend.resources | object | {} | Resource requests and limits for the backend container. |
| extraVolumes | list | [] | Additional volumes. |
| flowAggregator.address | string | "flow-aggregator.flow-aggregator.svc:14740" | gRPC address (host:port) of the FlowStreamService. |
| flowAggregator.caConfigMap | string | "flow-aggregator-ca" | Name of the ConfigMap (in namespace below) containing the CA certificate (key: ca.crt) used to verify the FlowStreamService server certificate. The FlowStreamService uses server-side TLS only (no client authentication). Leave empty to skip server certificate verification (dev/test only). |
| flowAggregator.enabled | bool | false | When true, the backend connects to Flow Aggregator's FlowStreamService over gRPC. |
| flowAggregator.insecureSkipVerify | bool | false | Disable TLS server certificate verification. Should only be used for development or testing; never enable this in production. |
| flowAggregator.namespace | string | "flow-aggregator" | Namespace where the Flow Aggregator is installed. |
| flowAggregator.serverName | string | "" | Override the TLS server name used for certificate verification. Useful when dialing via kubectl port-forward (loopback address) while the server cert is issued for the in-cluster Service DNS name (e.g. flow-aggregator.flow-aggregator.svc). Leave empty to use the hostname from the address field. |
| frontend.extraVolumeMounts | list | [] | Additional volumeMounts. |
| frontend.image | object | {"pullPolicy":"IfNotPresent","repository":"antrea/antrea-ui-frontend","tag":""} | Container image to use for the Antrea UI frontend. |
| frontend.port | int | 3000 | Container port on which the frontend will listen. |
| frontend.resources | object | {} | Resource requests and limits for the frontend container. |
| hostAliases | list | [] | Additional entries for the Pod's /etc/hosts, in the standard PodSpec hostAliases form. Useful when the backend has to reach a name that cluster DNS cannot resolve - an OIDC issuer served outside the cluster, for example - without having to touch CoreDNS. Each entry is {ip: <address>, hostnames: [<name>, ...]}. |
| https.auto | object | {"commonName":"localhost","daysValid":365,"dnsNames":[],"ipAddresses":[]} | Configure automatic TLS certificate generation with Helm. |
| https.auto.commonName | string | "localhost" | Common name to use in the certificate. |
| https.auto.daysValid | int | 365 | Number of days for which the certificate will be valid. There is no automatic rotation with this method. |
| https.auto.dnsNames | list | [] | DNS names to use in the certificate. |
| https.auto.ipAddresses | list | [] | IP addresses to use in the certificate. |
| https.enable | bool | false | Enable HTTPS (only) for accessing the web UI. When using an Ingress to terminate TLS, you do not need to enable HTTPS here. |
| https.method | string | "auto" | Method for generating the TLS certificate for the web server. We support "auto", "user", "userCA", and "secret". With "auto", Helm will generate a new self-signed certificate every time the template function is executed. With "user", the user is responsible for providing a certificate and key, which will be used directly. With "userCA", the user is responsible for providing a CA certificate and key, which will be used to generate a signed certificate to be used by the web server. With "secret", the user is responsible for providing a secret of type kubernetes.io/tls, in the Namespace of the release. The secret must include the tls.crt and tls.key data fields. |
| https.secret.secretName | string | "antrea-ui-tls" | Name of the secret containing the PEM data for the certificate and private key to use. Secret must be of type kubernetes.io/tls. The typical use case is a secret generated by cert-manager. The secret must exist in the Namespace of the Helm release (typically, kube-system). |
| https.user | object | {"cert":"","key":""} | Use the provided TLS certificate and key. |
| https.user.cert | string | "" | Certificate (base64-encoded PEM format) |
| https.user.key | string | "" | Private key (base64-encoded PEM format) |
| https.userCA | object | {"cert":"","commonName":"localhost","daysValid":365,"dnsNames":[],"ipAddresses":[],"key":""} | Use the provided CA certificate and key to generate a signed certificate. |
| https.userCA.cert | string | "" | CA certificate (base64-encoded PEM format) |
| https.userCA.commonName | string | "localhost" | Common name to use in the certificate. |
| https.userCA.daysValid | int | 365 | Number of days for which the certificate will be valid. There is no automatic rotation with this method. |
| https.userCA.dnsNames | list | [] | DNS names to use in the certificate. |
| https.userCA.ipAddresses | list | [] | IP addresses to use in the certificate. |
| https.userCA.key | string | "" | CA private key (base64-encoded PEM format) |
| ipv6.enable | bool | true | Enable IPv6 for accessing the web UI. Even if the cluster does not support IPv6, you do not typically need to set this value to false. |
| nodeSelector | object | {"kubernetes.io/os":"linux"} | Node selector for the Antrea UI Pod. |
| plugins.directory | string | "" | Filesystem path (inside the backend container) the backend also watches for plugin bundles - one subdirectory per plugin, each holding a manifest.json plus a bundle.zip (see docs/plugins.md). Meant as a fallback for a plugin whose bundle.zip outgrows a ConfigMap's ~1MiB cap: mount whatever shared volume actually delivers the bundle there (a hostPath, a PVC, ...) via the top-level extraVolumes/backend.extraVolumeMounts values, then point this at that mount path. Empty (the default) disables directory-based loading entirely; ConfigMap-based loading is unaffected either way. |
| plugins.labelSelector | string | "ui.antrea.io/plugin=true" | Label selector for the ConfigMaps (in the namespace below) that the backend watches for frontend plugins. |
| plugins.maxBundleBytes | int | 10485760 | Caps how many bytes a single plugin's bundle.zip may decompress to in total, shared by both sources. A ConfigMap's own ~1MiB etcd size limit only bounds the compressed bytes, not what they decompress to, and a plugin directory has no equivalent limit at all, so this is what actually protects the backend from a maliciously high-ratio archive ("zip bomb") exhausting its disk. 0 means unbounded. |
| plugins.maxConfigMapPlugins | int | 10 | Caps how many distinct ConfigMap-backed plugins the backend tracks at once. A new plugin past this limit is rejected and logged; updates to an already-tracked one are never blocked by it. 0 means unbounded. |
| plugins.maxDirectoryPlugins | int | 10 | Same as maxConfigMapPlugins, but for the directory source above. 0 means unbounded. |
| plugins.namespace | string | "" | Namespace to watch for plugin ConfigMaps. Defaults to the release namespace. Set this to isolate plugin ConfigMaps away from antrea-ui's own release namespace - useful since antrea-ui is commonly installed into kube-system, which can host other sensitive ConfigMaps. If set to anything other than the release namespace, whoever runs helm install/upgrade needs permission to create a Role/RoleBinding in that other namespace too. |
| podAnnotations | object | {} | Annotations to be added to the Antrea UI Pod. |
| podLabels | object | {} | Labels to be |
Deploy antrea-ui with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has antrea-ui on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartantrea-ui is pinned at v0.8.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply