radar-appserver
by RADAR-Base
Helm chartv0.10.4App 2.4.7Apache-2.0Verified publisher
A Helm chart for the backend application of RADAR-base Appserver
About this chart
radar-appserver
A Helm chart for the backend application of RADAR-base Appserver
Homepage: https://radar-base.org
Maintainers
| Name | Url | |
|---|---|---|
| Yatharth Ranjan | [email protected] | https://www.kcl.ac.uk/people/yatharth-ranjan |
| Pauline Conde | [email protected] | https://www.kcl.ac.uk/people/pauline-conde |
Source Code
- https://github.com/RADAR-base/radar-helm-charts/tree/main/charts/radar-appserver
- https://github.com/RADAR-base/RADAR-Appserver
Prerequisites
- Kubernetes 1.28+
- Kubectl 1.28+
- Helm 3.1.0+
- When
gatewayAPI.enabled=true: the Gateway API CRDs and a Gateway Controller (e.g. NGINX Gateway Fabric) must already be installed in the cluster, and the shared parent Gatewayradar-base-k8s-gatewaymust exist — it can be created via the gateway-api chart
Requirements
| Repository | Name | Version |
|---|---|---|
| https://radar-base.github.io/radar-helm-charts | common | 2.x.x |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| replicaCount | int | 2 | Number of radar-appserver replicas to deploy |
| image.registry | string | "ghcr.io" | Image registry |
| image.repository | string | "radar-base/radar-appserver/radar-appserver" | Image repository |
| image.tag | string | nil | Image tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion. |
| image.digest | string | "" | Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy |
| image.pullSecrets | list | [] | Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName |
| nameOverride | string | "" | String to partially override radar-appserver.fullname template with a string (will prepend the release name) |
| fullnameOverride | string | "" | String to fully override radar-appserver.fullname template with a string |
| podSecurityContext | object | {} | Configure radar-appserver pods' Security Context |
| securityContext | object | {} | Configure radar-appserver containers' Security Context |
| service.type | string | "ClusterIP" | Kubernetes Service type |
| service.port | int | 8080 | radar-appserver port |
| disable_tls | bool | false | Reconfigure Ingress to not force TLS |
| advertised_protocol | string | "https" | The protocol in advertised URIs (https, http) |
| ingress.enabled | bool | true | Enable ingress controller resource |
| ingress.annotations | object | check values.yaml | Annotations that define default ingress class, certificate issuer and session configuration |
| ingress.path | string | "/appserver/?(.*)" | Path within the url structure |
| ingress.pathType | string | "ImplementationSpecific" | Ingress path type |
| ingress.ingressClassName | string | "nginx" | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) |
| ingress.hosts | list | ["localhost"] | Hosts to accept requests from |
| ingress.tls.secretName | string | "radar-base-tls" | TLS Secret Name |
| gatewayAPI.enabled | bool | false | Enable Gateway API HTTPRoute resource (alternative to ingress). Opt-in: requires the Gateway API CRDs and a Gateway controller to be installed. |
| gatewayAPI.annotations | object | {} | Annotations to add to the HTTPRoute |
| gatewayAPI.parentRef | object | {"name":"radar-base-k8s-gateway","namespace":""} | Parent Gateway that the HTTPRoute attaches to. The Gateway itself is a shared resource and must be created separately (not by this chart). |
| gatewayAPI.parentRef.name | string | "radar-base-k8s-gateway" | Name of the Gateway |
| gatewayAPI.parentRef.namespace | string | "" | Namespace of the Gateway (defaults to the release namespace when empty) |
| gatewayAPI.hostnames | list | ["{{ .Values.serverName }}"] | Hostnames the HTTPRoutes accept requests for (must intersect the Gateway listener hostnames). String values support Helm templating (tpl); defaults to serverName so deployments override it the same way as ingress.hosts. |
| gatewayAPI.https | object | {"port":443,"sectionName":""} | HTTPS listener on the Gateway that the main route attaches to |
| gatewayAPI.https.port | int | 443 | Listener port (empty attaches to all matching listeners) |
| gatewayAPI.https.sectionName | string | "" | Listener sectionName on the Gateway (optional) |
| gatewayAPI.pathType | string | "PathPrefix" | Path match type (PathPrefix, Exact or RegularExpression) |
| gatewayAPI.path | string | "/appserver" | Path to match within the URL structure |
| gatewayAPI.filters | list | check values.yaml | Additional HTTPRoute filters (e.g. URLRewrite, RequestHeaderModifier) Strips the /appserver prefix before forwarding, equivalent to the ingress nginx.ingress.kubernetes.io/rewrite-target: /$1 annotation. |
| gatewayAPI.httpsRedirect | object | {"enabled":true,"port":80,"sectionName":"","statusCode":301} | HTTP->HTTPS redirect route (equivalent to nginx force-TLS behaviour) |
| gatewayAPI.httpsRedirect.enabled | bool | true | Enable a second HTTPRoute that 301-redirects HTTP traffic to HTTPS |
| gatewayAPI.httpsRedirect.port | int | 80 | HTTP listener port on the Gateway to attach the redirect to |
| gatewayAPI.httpsRedirect.sectionName | string | "" | Listener sectionName on the Gateway (optional) |
| gatewayAPI.httpsRedirect.statusCode | int | 301 | Redirect HTTP status code |
| resources.requests | object | {"cpu":"100m","memory":"128Mi"} | CPU/Memory resource requests |
| nodeSelector | object | {} | Node labels for pod assignment |
| tolerations | list | [] | Toleration labels for pod assignment |
| affinity | object | {} | Affinity labels for pod assignment |
| extraEnvVars | list | [] | Extra environment variables |
| customLivenessProbe | object | {} | Custom livenessProbe that overrides the default one |
| livenessProbe.enabled | bool | true | Enable livenessProbe |
| livenessProbe.initialDelaySeconds | int | 5 | Initial delay seconds for livenessProbe |
| livenessProbe.periodSeconds | int | 30 | Period seconds for livenessProbe |
| livenessProbe.timeoutSeconds | int | 5 | Timeout seconds for livenessProbe |
| livenessProbe.successThreshold | int | 1 | Success threshold for livenessProbe |
| livenessProbe.failureThreshold | int | 3 | Failure threshold for livenessProbe |
| customReadinessProbe | object | {} | Custom readinessProbe that overrides the default one |
| readinessProbe.enabled | bool | true | Enable readinessProbe |
| readinessProbe.initialDelaySeconds | int | 5 | Initial delay seconds for readinessProbe |
| readinessProbe.periodSeconds | int | 30 | Period seconds for readinessProbe |
| readinessProbe.timeoutSeconds | int | 5 | Timeout seconds for readinessProbe |
| readinessProbe.successThreshold | int | 1 | Success threshold for readinessProbe |
| readinessProbe.failureThreshold | int | 3 | Failure threshold for readinessProbe |
| customStartupProbe | object | {} | Custom startupProbe that overrides the default one |
| startupProbe.enabled | bool | true | Enable startupProbe |
| startupProbe.initialDelaySeconds | int | 5 | Initial delay seconds for startupProbe |
| startupProbe.periodSeconds | int | 10 | Period seconds for startupProbe |
| startupProbe.timeoutSeconds | int | 10 | Timeout seconds for startupProbe |
| startupProbe.successThreshold | int | 1 | Success threshold for startupProbe |
| startupProbe.failureThreshold | int | 30 | Failure threshold for startupProbe |
| networkpolicy | object | check values.yaml | Network policy defines who can access this application and who this applications has access to |
| postgres.host | string | nil | host name of the postgres db |
| postgres.port | string | nil | port of the postgres db |
| postgres.database | string | nil | database name |
| postgres.urlSecret | object | {"key":"jdbc-uri","name":"radar-cloudnative-postgresql-appserver"} | Kubernetes secret containing the database JDBC Connection url (disables use of 'host', 'port' and 'database' values). |
| postgres.user | string | nil | postgres user |
| postgres.userSecret | object | {"key":"username","name":"radar-cloudnative-postgresql-appserver"} | Kubernetes secret containing the database user (disables use of 'user' value). |
| postgres.password | string | nil | password of the postgres user |
| postgres.passwordSecret | object | {"key":"password","name":"radar-cloudnative-postgresql-appserver"} | Kubernetes secret containing the database password (disables use of 'password' value). |
| postgres.connection_parameters | string | "" | Additional JDBC connection parameters e.g. sslmode=verify-full. Ignored when using 'urlSecret'. |
| postgres.ssl.enabled | bool | false | set to true of the connecting to postgres using SSL |
| postgres.ssl.keystorepassword | string | "keystorepassword" | |
| radar_admin_user | string | "radar" | |
| radar_admin_password | string | "radar" | |
| managementportal_url | string | "http://management-portal:8080/managementportal" | URL of the Management Portal |
| serverName | string | "localhost" | |
| managementportal_resource_name | string | "res_AppServer" | radar_is.yml config for token verification |
| public_key_endpoints | list | ["http://management-portal:8080/managementportal/oauth/token_key"] | List of OAuth2 authentication server public key endpoints for token verification |
| google_application_credentials | string | "" | Google credentials containing FCM server key, etc. |
| github_client_token | string | "" | Github client token which is used for authenticating requests |
| smtp.enabled | bool | false | set to true, if sending of notifications via email should be enabled. |
| smtp.host | string | "smtp" | Hostname of the SMTP server |
| smtp.port | int | 25 | Port of the SMTP server |
| smtp.username | string | "username" | Username of the SMTP server |
| smtp.password | string | "secret" | Password of the SMTP server |
| smtp.from | string | "[email protected]" | Email address which should be used to send activation emails |
| smtp.starttls | bool | false | set to true,if TTLS should be enabled |
| smtp.auth | bool | true | set to true, if the account should be authenticated before sending emails |
| upload.enabled | bool | false | if set to true, file upload endpoint will be enabled |
| upload.max_file_size | string | "20MB" | Maximum file size for upload. Can be any number followed by MB or GB. |
| upload.storage.type | string | "s3" | Type of storage to use for file upload (s3) |
| upload.storage.url | string | "http://minio-headless:9000" | Internal url to storage |
| upload.storage.bucket_name | string | "radar-output-storage" | Bucket name of the S3 storage |
| upload.storage.access_key | string | "secret" | Access key of the S3 storage |
| upload.storage.secret_key | string | "secret" | Secret key of the S3 storage |
| upload.storage.path.prefix | string | "output" | Prefix for the path in the storage; will become //// |
| upload.storage.path.collection_per_day | bool | false | if set to true, a new folder will be created for each day |
Deploy radar-appserver with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has radar-appserver 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 chartradar-appserver is pinned at v0.10.4 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