--- myst: html_meta: description: Deploy Flower's SuperLink Helm chart to set up federated learning servers. Default config mirrors official releases, enabling seamless deployment, evaluation. property:og:description: Deploy Flower's SuperLink Helm chart to set up federated learning servers. Default config mirrors official releases, enabling seamless deployment, evaluation. --- # Deploy SuperLink using Helm ```{note} Flower Helm charts are a Flower Enterprise feature. See [Flower Enterprise](https://flower.ai/enterprise) for details. ``` The Flower Framework offers a unified approach to federated learning, analytics, and evaluation, allowing you to federate any workload, machine learning framework, or programming language. This Helm chart installs the server-side components of the Flower Framework, specifically setting up the SuperLink. The default installation configuration aims to replicate the functionality and setup of the provided Flower Framework releases. ## Disable the SuperLink component ```yaml superlink: name: superlink enabled: false ``` ## Enable the ServerApp component ```yaml serverapp: name: serverapp enabled: true ``` ## Run simulations in Kubernetes using the Simulation Plugin For more details, visit: [Run simulations](../how-to-run-simulations.rst#run-simulations) guide. ```yaml superlink: enabled: true executor: plugin: flwr.superexec.simulation:executor config: num-supernodes: 2 [...] ``` ## Change Log Verbosity Level The log verbosity level in Flower can be adjusted using the `FLWR_LOG_LEVEL` environment variable. This helps control the level of detail included in logs, making debugging and monitoring easier. ### Setting Global Log Level To enable detailed logging (e.g., `DEBUG` level) for all services, add `FLWR_LOG_LEVEL` to the `env` parameter under the `global` section in your `values.yml` file: ```yaml global: env: - name: FLWR_LOG_LEVEL value: DEBUG ``` ### Setting Log Level for a Specific Service If you want to enable logging only for a specific service (e.g., `superlink`), you can specify it under the respective service section: ```yaml superlink: env: - name: FLWR_LOG_LEVEL value: DEBUG ``` For more details on logging configuration, visit: [Flower Logging Documentation](../how-to-configure-logging.rst) ## Configure Audit Logging Audit logging provides JSON-formatted log output for Flower, allowing you to capture and store events that occur in the SuperLink. This feature is useful for monitoring, debugging, or maintaining a historical record of important actions. To enable audit logging, add the following flag to the SuperLink configuration: ```yaml superlink: enabled: true extraArgs: - --enable-event-log ``` For more details on audit logging configuration, visit: [Flower Audit Logging Documentation](../how-to-configure-audit-logging.rst) ## License Key Starting from `1.20.0`, the SuperLink service must be started with a valid license key. You can configure the license key in the `global.license` section of your `values.yml` file in one of two ways: 1. Directly — by setting `global.license.key` to your license key. 2. From an existing Kubernetes Secret — by setting `global.license.existingSecret` to the name of a secret that contains your key. ### Example: Setting the License Key Directly ```yaml global: license: enabled: true key: existingSecret: "" ``` In this configuration, the Helm chart will automatically create a Kubernetes Secret and mount it into the SuperLink container. ### Example: Using an Existing Secret ```yaml global: license: enabled: true key: "" existingSecret: "existing-license-key-secret" ``` If both `key` and `existingSecret` are set, `existingSecret` takes precedence and the `key` value will be ignored. Note that the existing secret must contain the key `FLWR_LICENSE_KEY`: ```yaml kind: Secret stringData: FLWR_LICENSE_KEY: ``` ## Enable User Authentication User authentication can be enabled if you're using the Flower Enterprise Edition (EE) Docker images. This is configured in the `global.userAuth` section of your `values.yml` file. ### Example: Enabling OpenID Connect (OIDC) Authentication ```yaml global: userAuth: enabled: true config: authentication: auth_type: oidc auth_url: https:///auth/device token_url: https:///token validate_url: https:///userinfo oidc_client_id: oidc_client_secret: ``` Explanation of Parameters: - `auth_type`: The authentication mechanism being used (e.g., oidc). - `auth_url`: The OpenID Connect authentication endpoint where users authenticate. - `token_url`: The URL for retrieving access tokens. - `validate_url`: The endpoint for validating user authentication. - `oidc_client_id`: The client ID issued by the authentication provider. - `oidc_client_secret`: The secret key associated with the client ID. ### Use an Existing Secret To use an existing secret that contains the user authentication configuration, set `existingSecret` to the name of the existing secret: ```yaml global: userAuth: enabled: true config: {} existingSecret: "existing-user-auth-config" ``` Note that the existing secret must contain the key `user-auth-config.yml`: ```yaml kind: Secret stringData: user-auth-config.yml: | authentication: auth_type: oidc auth_url: https:///auth/device token_url: https:///token validate_url: https:///userinfo oidc_client_id: oidc_client_secret: ``` ### Configuring OpenFGA The flower-server chat component supports OpenFGA as a fine-grained authorization service, but it is disabled by default. To enable OpenFGA change the following value in your `values.yml` file: ```yaml openfga: enabled: true ``` By default, OpenFGA will run with an in-memory store, which is non-persistent and suitable only for testing or development. OpenFGA supports persistent storage using PostgreSQL or MySQL: - To deploy OpenFGA with a new PostgreSQL/MySQL instance, enable the bundled chart configuration. - To connect to an existing database, provide the appropriate connection details via Helm values (e.g., `openfga.datastore.uri`). For more information visit the official [OpenFGA Helm Chart Documentation](https://artifacthub.io/packages/helm/openfga/openfga/0.2.30). The following commands set up a store, authorization model, and inserts users (using tuples) into OpenFGA. Run these once the OpenFGA instance is deployed. Setup the authorization model and tuples: :::{dropdown} Authorization model file `model.fga` ```text model # We are using the 1.1 schema with type restrictions schema 1.1 # Define the 'flwr_aid' type to represent individual users in the system. type flwr_aid # Define the 'service' type to group users. type service relations # The 'has_access' relation defines users who have access to this service. define has_access: [flwr_aid] ``` ::: :::{dropdown} User permissions file `tuples.fga` ```yaml - user: flwr_aid: relation: has_access object: service: - user: flwr_aid: relation: has_access object: service: ``` ::: Create store: ```shell OPENFGA_URL="" OPENFGA_STORE_NAME="" docker run --rm -v "$(pwd)":/app -w /app openfga/cli \ --api-url ${OPENFGA_URL} store create \ --name ${OPENFGA_STORE_NAME} ``` The response will include an `id` field, which is the OpenFGA store ID associated with the `OPENFGA_STORE_NAME` that was created. Get store ID (alternative way): ```shell docker run --rm -v "$(pwd)":/app -w /app openfga/cli \ --api-url ${OPENFGA_URL} store list ``` Set OpenFGA store ID from previous step and write model: ```shell OPENFGA_STORE_ID="" docker run --rm -v "$(pwd)":/app -w /app openfga/cli \ --api-url ${OPENFGA_URL} model write \ --store-id ${OPENFGA_STORE_ID} \ --file model.fga ``` Set OpenFGA model ID from previous step and write tuples: ```shell OPENFGA_MODEL_ID="" docker run --rm -v "$(pwd)":/app -w /app openfga/cli \ --api-url ${OPENFGA_URL} tuple write \ --store-id ${OPENFGA_STORE_ID} \ --model-id ${OPENFGA_MODEL_ID} \ --file tuples.yaml ``` Add a new `authorization` section under your existing `global.userAuth` configuration or directly within your existing secret, depending on your setup. Set the `OPENFGA_STORE_ID` and `OPENFGA_MODEL_ID` from the previous steps in the file: ```yaml authorization: authz_type: openfga authz_url: store_id: model_id: relation: has_access object: service: ``` ## Change Isolation Mode The isolation mode determines how the SuperLink manages the ServerApp process execution. This setting can be adjusted using the `superlink.isolationMode` parameter: **Example: Changing Isolation Mode** ```yaml superlink: isolationMode: process # Don’t forget to enable the serverapp if you don’t # plan to use an existing one. serverapp: enabled: true ``` ## Deploy Flower Framework with TLS To ensure TLS communication within the Flower Framework, you need to configure your deployment with proper TLS certificates. ```yaml global: insecure: false superlink: enabled: true ``` ### Override certificate paths By default, the TLS-related flags use the following paths when TLS is enabled: `--ssl-ca-certfile`: `/app/cert/ca.crt`, `--ssl-certfile`: `/app/cert/tls.crt`, `--ssl-keyfile`: `/app/cert/tls.key`. These paths can be overridden by specifying the flags in the extraArgs, as shown below. ```yaml global: insecure: false superlink: enabled: true extraArgs: - --ssl-ca-certfile - /mount/cert/ca.cert - --ssl-certfile - /mount/cert/tls.cert - --ssl-keyfile - /mount/cert/tls.key ``` ## Deploy Flower Framework without TLS To deploy the Flower Framework simply, you need to configure your deployment as insecure. ```yaml global: insecure: true superlink: enabled: true ``` ## Pre-provide TLS Certificate If certificate creation is disabled, you must provide a pre-existing secret of type `kubernetes.io/tls` named `-server-tls`. ```yaml certificate: enabled: false ``` ## Ingress Configuration ### SSL-Passthrough When the `tls` option is set to `true`, it expects the existence of the `-server-tls` secret. Flower Framework components will load TLS certificates on startup. ```yaml superlink: enabled: true ingress: annotations: nginx.ingress.kubernetes.io/backend-protocol: GRPCS nginx.ingress.kubernetes.io/force-ssl-redirect: "false" nginx.ingress.kubernetes.io/ssl-passthrough: "false" nginx.ingress.kubernetes.io/ssl-redirect: "false" ingressClassName: nginx tls: true api: enabled: true hostname: exec-api.example.com path: / pathType: ImplementationSpecific fleet: enabled: true hostname: fleet.example.com path: / pathType: ImplementationSpecific driver: enabled: true hostname: driver.example.com annotations: nginx.ingress.kubernetes.io/backend-protocol: GRPCS nginx.ingress.kubernetes.io/force-ssl-redirect: "false" nginx.ingress.kubernetes.io/ssl-passthrough: "false" nginx.ingress.kubernetes.io/ssl-redirect: "false" path: / pathType: ImplementationSpecific ``` **Pre-Provide TLS Certificate with Additional Hosts** In this example, we use `cert-manager` to create a certificate. By default, the certificate will only include the DNS name specified in `common-name`. In some cases, the server and client charts are deployed in the same cluster, while the exec API is accessible via the internet. To allow SuperNodes to connect to the SuperLink via the internal service URL, you need to add an additional host, as shown below: ```yaml certificate: enabled: false superlink: ingress: enabled: true tls: true annotations: nginx.ingress.kubernetes.io/backend-protocol: GRPCS nginx.ingress.kubernetes.io/force-ssl-redirect: "false" nginx.ingress.kubernetes.io/ssl-passthrough: "false" nginx.ingress.kubernetes.io/ssl-redirect: "false" cert-manager.io/cluster-issuer: cert-manager-selfsigned cert-manager.io/common-name: api.example.com api: enabled: true hostname: api.example.com extraHosts: - name: ..svc.cluster.local pathType: ImplementationSpecific path: / port: 9092 ``` ## Enable Node Authentication ```yaml global: insecure: false nodeAuth: enabled: true authListPublicKeys: - ecdsa-sha2-nistp384 [...] - ecdsa-sha2-nistp384 [...] superlink: enabled: true superlink: executor: plugin: flwr.superexec.deployment:executor config: root-certificates: '"/app/cert/ca.crt"' ``` Public keys can include comments at the end of the key data: ```yaml global: nodeAuth: authListPublicKeys: - ecdsa-sha2-nistp384 [...] comment with spaces ``` ## Parameters ### Helm parameters | Name | Description | Value | | ------------------ | --------------------------------------------------------- | --------------- | | `nameOverride` | Override Replaces the name of the chart in the Chart.yaml | `flower-server` | | `fullnameOverride` | Override Completely replaces the generated name. | `""` | ### Global parameters | Name | Description | Value | | ---------------------------------------------------- | ----------------------------------------------------------------- | ------------------ | | `global.annotations` | Default Annotations | `{}` | | `global.labels` | Default Labels | `{}` | | `global.podLabels` | Default PodLabels | `{}` | | `global.domain` | Default Domain | `example.com` | | `global.insecure` | Decide if you deploy the Flower Framework with TLS | `true` | | `global.ingressClassName` | Default IngressClass | `""` | | `global.nodeSelector` | Default node selector for all components | `{}` | | `global.tolerations` | Default tolerations for all components | `[]` | | `global.affinity.podAntiAffinity` | Default affinity preset for all components | `soft` | | `global.affinity.podAntiAffinity` | Default pod anti-affinity rules. Either: `none`, `soft` or `hard` | `soft` | | `global.affinity.nodeAffinity.type` | Default node affinity rules. Either: `none`, `soft` or `hard` | `hard` | | `global.affinity.nodeAffinity.matchExpressions` | Default match expressions for node affinity | `[]` | | `global.certificateAnnotations` | Default Cert-Manager certificate annotations | `{}` | | `global.nodeAuth.enabled` | Enables or Disables Node-Authentication SuperLink \<-> SuperNode | `false` | | `global.nodeAuth.authListPublicKeys` | A list of ecdsa-sha2-nistp384 SuperNode keys | `[]` | | `global.userAuth.enabled` | Enables or disables the user authentication plugin. | `false` | | `global.userAuth.config` | Set the user authentication configuration. | `{}` | | `global.userAuth.existingSecret` | Existing secret with user authentication configuration. | `""` | | `global.license.enabled` | Enables or disables the configuration of the EE license. | `true` | | `global.license.key` | The EE license key. | `""` | | `global.license.secretKey` | The name of the key inside the Kubernetes Secret | `FLWR_LICENSE_KEY` | | `global.license.existingSecret` | Name of an existing Kubernetes Secret | `""` | | `global.securityContext.runAsUser` | Set Security Context runAsUser | `49999` | | `global.securityContext.runAsGroup` | Set Security Context runAsGroup | `49999` | | `global.securityContext.fsGroup` | Set Security Context fsGroup | `49999` | | `global.podSecurityContext.runAsNonRoot` | Set Security Context runAsNonRoot | `true` | | `global.podSecurityContext.readOnlyRootFilesystem` | Set Security Context readOnlyRootFilesystem | `true` | | `global.podSecurityContext.allowPrivilegeEscalation` | Set Security Context allowPrivilegeEscalation | `false` | | `global.podSecurityContext.seccompProfile.type` | Set Security Context seccompProfile | `RuntimeDefault` | | `global.podSecurityContext.capabilities.drop` | Set Security Context capabilities | `["ALL"]` | | `global.env` | Default environment variables | `[]` | | `global.image.pullPolicy` | Default image pullPolicy | `IfNotPresent` | ### Flower-TLS-Certificate parameters | Name | Description | Value | | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------- | | `certificate.enabled` | Can be disabled if a Secret already exists | `true` | | `certificate.annotations` | Certificate CRD annotations | `{}` | | `certificate.name` | Certificate name | `flower-server-tls` | | `certificate.duration` | The requested ‘duration’ (i.e. lifetime) of the Certificate. Default is 5 years. | `43800h` | | `certificate.renewBefore` | How long before the currently issued certificate’s expiry cert-manager should renew the certificate. Default is 15 days. | `360h` | | `certificate.privateKey` | Private key options. These include the key algorithm and size, the used encoding and the rotation policy. | `{}` | | `certificate.usages` | Requested key usages and extended key usages. | `[]` | | `certificate.additionalHosts` | Additional hosts you want to put into the SAN's of the certificate | `[]` | | `certificate.issuer.group` | Defaults to cert-Manager.io | `cert-manager.io` | | `certificate.issuer.kind` | Defaults to Issuer | `Issuer` | | `certificate.issuer.name` | Name of the Issuer or Issuer to use | `""` | | `certificate.issuer.spec` | The contents of the `.spec` block for the cert-manager Issuer. | `{}` | ### Component SuperLink | Name | Description | Value | | -------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------ | | `superlink.name` | Name of the SuperLink | `superlink` | | `superlink.enabled` | Enable or Disable SuperLink | `true` | | `superlink.resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` | | `superlink.volumes` | Specify a list of volumes for the SuperLink pod(s) | `[]` | | `superlink.volumeMounts` | Allows to specify additional VolumeMounts | `[]` | | `superlink.executor.plugin` | The executer plugin of the SuperLink | `flwr.superexec.deployment:executor` | | `superlink.executor.config` | Set executor config arguments | `{}` | | `superlink.isolationMode` | The isolation mode of the SuperLink | `subprocess` | | `superlink.automountServiceAccountToken` | Automount SA-Token into the pod. | `true` | | `superlink.serviceAccount.enabled` | Enabled a service account for the application controller | `true` | | `superlink.serviceAccount.annotations` | Annotations applied to enabled service account | `{}` | | `superlink.serviceAccount.labels` | Labels applied to enabled service account | `{}` | | `superlink.serviceAccount.automountServiceAccountToken` | Automount SA-Token | `true` | | `superlink.service.servicePortApiName` | Prefix of the SuperLink API port | `api` | | `superlink.service.servicePortApi` | Port to expose for the SuperLink API | `9093` | | `superlink.service.nodePortApi` | Node port for SuperLink API | `""` | | `superlink.service.type` | Valid are ClusterIP, NodePort or Loadbalancer | `ClusterIP` | | `superlink.service.servicePortDriverName` | Prefix of the SuperLink Driver API port | `driver` | | `superlink.service.servicePortDriver` | Port to expose for the SuperLink Driver API | `9091` | | `superlink.service.nodePortDriver` | Node port for SuperLink Driver API | `""` | | `superlink.service.servicePortFleetName` | Prefix of the SuperLink Fleet API port | `fleet` | | `superlink.service.servicePortFleet` | Port to expose for the SuperLink Fleet API | `9092` | | `superlink.service.nodePortFleet` | Node port for SuperLink Fleet API | `""` | | `superlink.service.servicePortSimulationIoName` | Prefix of the SuperLink SimulationIo API port | `simulationIo` | | `superlink.service.servicePortSimulationIo` | Port to expose for the SuperLink SimulationIo API | `9096` | | `superlink.service.nodePortSimulationIo` | Node port for SuperLink SimulationIo API | `""` | | `superlink.containerPorts.api` | Container port for SuperLink Exec API | `9093` | | `superlink.containerPorts.driver` | Container port for SuperLink Driver API | `9091` | | `superlink.containerPorts.fleet` | Container port for SuperLink Fleet API | `9092` | | `superlink.containerPorts.simulationIo` | Container port for SuperLink SimulationIo API | `9096` | | `superlink.replicaCount` | The number of SuperLink pods to run | `1` | | `superlink.labels` | Extra labels for SuperLink pods | `{}` | | `superlink.extraArgs` | Add extra arguments to the default arguments for the SuperLink | `[]` | | `superlink.nodeSelector` | Node labels for SuperLink pods which merges with global.nodeSelector | `{}` | | `superlink.tolerations` | Node tolerations for SuperLink pods which merges with global.tolerations | `[]` | | `superlink.updateStrategy.type` | SuperLink deployment strategy type | `RollingUpdate` | | `superlink.updateStrategy.rollingUpdate` | SuperLink deployment rolling update configuration parameters | `{}` | | `superlink.affinity` | Node affinity for SuperLink pods which merges with global.affinity | `{}` | | `superlink.env` | Array with extra environment variables to add to SuperLink nodes which merges with global.env | `[]` | | `superlink.podSecurityContext` | Security settings that for the SuperLink Pods | `{}` | | `superlink.securityContext` | Security settings that for the SuperLink | `{}` | | `superlink.ingress.enabled` | Enable the ingress resource | `false` | | `superlink.ingress.annotations` | Additional annotations for the ingress | `{}` | | `superlink.ingress.ingressClassName` | Defines which ingress controller which implement the resource | `""` | | `superlink.ingress.tls` | Ingress TLS configuration | `false` | | `superlink.ingress.api.enabled` | Enable an ingress resource for SuperLink API | `false` | | `superlink.ingress.api.hostname` | Ingress hostname for the SuperLink API ingress | `exec-api.example.com` | | `superlink.ingress.api.path` | SuperLink API ingress path | `/` | | `superlink.ingress.api.pathType` | Ingress path type. One of Exact, Prefix or ImplementationSpecific | `ImplementationSpecific` | | `superlink.ingress.fleet.enabled` | Enable an ingress resource for SuperLink Fleet API | `false` | | `superlink.ingress.fleet.hostname` | Ingress hostname for the SuperLink Fleet API ingress | `fleet.example.com` | | `superlink.ingress.fleet.path` | SuperLink Fleet API ingress path | `/` | | `superlink.ingress.fleet.pathType` | Ingress path type. One of Exact, Prefix or ImplementationSpecific | `ImplementationSpecific` | | `superlink.ingress.driver.enabled` | Enable an ingress resource for SuperLink Driver API | `false` | | `superlink.ingress.driver.hostname` | Ingress hostname for the SuperLink Driver API ingress | `driver.example.com` | | `superlink.ingress.driver.path` | SuperLink Driver API ingress path | `/` | | `superlink.ingress.driver.pathType` | Ingress path type. One of Exact, Prefix or ImplementationSpecific | `ImplementationSpecific` | | `superlink.ingress.simulationIo.enabled` | Enable an ingress resource for SuperLink SimulationIo API | `false` | | `superlink.ingress.simulationIo.hostname` | Ingress hostname for the SuperLink SimulationIo API ingress | `simulation.example.com` | | `superlink.ingress.simulationIo.path` | SuperLink SimulationIo API ingress path | `/` | | `superlink.ingress.simulationIo.pathType` | Ingress path type. One of Exact, Prefix or ImplementationSpecific | `ImplementationSpecific` | | `superlink.ingress.extraHosts` | An array with additional hostname(s) to be covered with the ingress record | `[]` | | `superlink.ingress.extraTls` | TLS configuration for additional hostname(s) to be covered with this ingress record | `[]` | | `superlink.ingress.extraRules` | Additional rules to be covered with this ingress record | `[]` | | `superlink.lifecycle` | SuperLink container(s) to automate configuration before or after startup | `{}` | | `superlink.annotations` | Additional custom annotations for SuperLink | `{}` | | `superlink.selectorLabels` | Extra selectorLabels for SuperLink pods | `{}` | | `superlink.podAnnotations` | Annotations for SuperLink pods | `{}` | | `superlink.podLabels` | Extra podLabels for SuperLink pods | `{}` | | `superlink.imagePullSecrets` | SuperLink image pull secrets which overrides global.imagePullSecrets | `[]` | | `superlink.image.registry` | SuperLink image registry | `registry.hub.docker.com` | | `superlink.image.repository` | SuperLink image repository | `flwr/superlink-ee` | | `superlink.image.tag` | SuperLink image tag | `1.20.0-ubuntu` | | `superlink.image.digest` | SuperLink image digest | `""` | | `superlink.image.pullPolicy` | SuperLink image pullPolicy which Components image pullPolicy | `IfNotPresent` | | `superlink.networkPolicy.enabled` | Specifies whether a NetworkPolicy should be created | `true` | | `superlink.networkPolicy.allowExternal` | Allow external ingress traffic | `true` | | `superlink.networkPolicy.allowExternalEgress` | Allow unrestricted egress traffic | `true` | | `superlink.networkPolicy.extraIngress` | Add extra ingress rules to the NetworkPolicy | `[]` | | `superlink.networkPolicy.extraEgress` | Add extra ingress rules to the NetworkPolicy (ignored if allowExternalEgress=true) | `[]` | | `superlink.networkPolicy.driver.ingressPodMatchLabels` | Labels to match to allow traffic from other pods. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.driver.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.driver.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.fleet.ingressPodMatchLabels` | Labels to match to allow traffic from other pods. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.fleet.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.fleet.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.api.ingressPodMatchLabels` | Labels to match to allow traffic from other pods. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.api.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.api.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.simulationIo.ingressPodMatchLabels` | Labels to match to allow traffic from other pods. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.simulationIo.ingressNSMatchLabels` | Labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | | `superlink.networkPolicy.simulationIo.ingressNSPodMatchLabels` | Pod labels to match to allow traffic from other namespaces. Ignored if `superlink.networkPolicy.allowExternal` is true. | `{}` | ### Component ServerApp | Name | Description | Value | | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------- | | `serverapp.name` | Name of the ServerApp | `serverapp` | | `serverapp.enabled` | Enable or disable ServerApp | `false` | | `serverapp.resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` | | `serverapp.superlink` | Address of the SuperLink the ServerApp should connect to | `{}` | | `serverapp.volumes` | Optionally specify list of volumes for the ServerApp pod(s) | `[]` | | `serverapp.volumeMounts` | Allows to specify additional VolumeMounts | `[]` | | `serverapp.automountServiceAccountToken` | Automount SA-Token into the pod. | `true` | | `serverapp.serviceAccount.enabled` | Enable a service account for this component | `true` | | `serverapp.serviceAccount.annotations` | Annotations applied to enabled service account | `{}` | | `serverapp.serviceAccount.labels` | Labels applied to enabled service account | `{}` | | `serverapp.serviceAccount.automountServiceAccountToken` | Automount SA-Token | `true` | | `serverapp.podSecurityContext` | Security settings that for the SuperLink Pods | `{}` | | `serverapp.replicas` | The number of ServerApp pods to run | `1` | | `serverapp.labels` | Extra labels for ServerApp pods | `{}` | | `serverapp.extraArgs` | Add extra arguments to the default arguments for the ServerApp | `[]` | | `serverapp.nodeSelector` | Node labels for ServerApp pods which merges with global.nodeSelector | `{}` | | `serverapp.tolerations` | Node tolerations for ServerApp pods which merges with global.tolerations | `[]` | | `serverapp.updateStrategy.type` | ServerApp deployment strategy type | `RollingUpdate` | | `serverapp.updateStrategy.rollingUpdate` | ServerApp deployment rolling update configuration parameters | `{}` | | `serverapp.affinity` | Node affinity for ServerApp pods which merges with global.affinity | `{}` | | `serverapp.env` | Array with extra environment variables to add to ServerApp nodes which merges with global.env | `[]` | | `serverapp.lifecycle` | ServerApp container(s) to automate configuration before or after startup | `{}` | | `serverapp.annotations` | Additional custom annotations for ServerApp | `{}` | | `serverapp.selectorLabels` | Extra selectorLabels for ServerApp pods | `{}` | | `serverapp.podAnnotations` | Annotations for ServerApp pods | `{}` | | `serverapp.podLabels` | Extra podLabels for ServerApp pods | `{}` | | `serverapp.imagePullSecrets` | ServerApp image pull secrets which overrides global.imagePullSecrets | `[]` | | `serverapp.image.registry` | ServerApp image registry | `registry.hub.docker.com` | | `serverapp.image.repository` | ServerApp image repository | `flwr/serverapp` | | `serverapp.image.tag` | Image tag of ServerApp | `1.20.0-py3.11-ubuntu24.04` | | `serverapp.image.digest` | Image digest of ServerApp | `""` | | `serverapp.image.pullPolicy` | Components image pullPolicy | `Always` | | `serverapp.networkPolicy.enabled` | Specifies whether a NetworkPolicy should be created | `true` | | `serverapp.networkPolicy.allowExternalEgress` | Allow unrestricted egress traffic | `true` | | `serverapp.networkPolicy.extraEgress` | Add extra ingress rules to the NetworkPolicy (ignored if allowExternalEgress=true) | `[]` | ### Component OpenFGA | Name | Description | Value | | ----------------- | ---------------------------------------------- | ------- | | `openfga.enabled` | Enable the openfga subchart and deploy OpenFGA | `false` |