radar-appserver-jersey

by RADAR-Base

Helm chartv0.1.1App 2.4.7Apache-2.0Verified publisher

A Helm chart for the backend application of RADAR-base Appserver

About this chart

radar-appserver-jersey

A Helm chart for the backend application of RADAR-base Appserver

Homepage: https://radar-base.org

Maintainers

NameEmailUrl
Yatharth Ranjan[email protected]https://www.kcl.ac.uk/people/yatharth-ranjan
Pauline Conde[email protected]https://www.kcl.ac.uk/people/pauline-conde
Aditya Mishra[email protected]

Source Code

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 Gateway radar-base-k8s-gateway must exist — it can be created via the gateway-api chart

Requirements

RepositoryNameVersion
https://radar-base.github.io/radar-helm-chartscommon2.x.x

Values

KeyTypeDefaultDescription
replicaCountint1Number of radar-appserver replicas to deploy
image.registrystring"ghcr.io"Image registry
image.repositorystring"radar-base/radar-appserver/radar-appserver"Image repository
image.tagstringnilImage tag (immutable tags are recommended) Overrides the image tag whose default is the chart appVersion.
image.digeststring""Image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag
image.pullPolicystring"IfNotPresent"Image pull policy
image.pullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace. e.g: pullSecrets: - myRegistryKeySecretName
nameOverridestring""String to partially override radar-appserver.fullname template with a string (will prepend the release name)
fullnameOverridestring""String to fully override radar-appserver.fullname template with a string
podSecurityContextobject{}Configure radar-appserver pods' Security Context
securityContextobject{}Configure radar-appserver containers' Security Context
service.typestring"ClusterIP"Kubernetes Service type
service.portint8080radar-appserver port
disable_tlsboolfalseReconfigure Ingress to not force TLS
advertised_protocolstring"https"The protocol in advertised URIs (https, http)
ingress.enabledbooltrueEnable ingress controller resource
ingress.annotationsobjectcheck values.yamlAnnotations that define default ingress class, certificate issuer and session configuration
ingress.pathstring"/appserver/?(.*)"Path within the url structure
ingress.pathTypestring"ImplementationSpecific"Ingress path type
ingress.ingressClassNamestring"nginx"IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)
ingress.hostslist["localhost"]Hosts to accept requests from
ingress.tls.secretNamestring"radar-base-tls"TLS Secret Name
gatewayAPI.enabledboolfalseEnable Gateway API HTTPRoute resource (alternative to ingress). Opt-in: requires the Gateway API CRDs and a Gateway controller to be installed.
gatewayAPI.annotationsobject{}Annotations to add to the HTTPRoute
gatewayAPI.parentRefobject{"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.namestring"radar-base-k8s-gateway"Name of the Gateway
gatewayAPI.parentRef.namespacestring""Namespace of the Gateway (defaults to the release namespace when empty)
gatewayAPI.hostnameslist["{{ .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.httpsobject{"port":443,"sectionName":""}HTTPS listener on the Gateway that the main route attaches to
gatewayAPI.https.portint443Listener port (empty attaches to all matching listeners)
gatewayAPI.https.sectionNamestring""Listener sectionName on the Gateway (optional)
gatewayAPI.pathTypestring"PathPrefix"Path match type (PathPrefix, Exact or RegularExpression)
gatewayAPI.pathstring"/appserver"Path to match within the URL structure
gatewayAPI.filterslistcheck values.yamlAdditional 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.httpsRedirectobject{"enabled":true,"port":80,"sectionName":"","statusCode":301}HTTP->HTTPS redirect route (equivalent to nginx force-TLS behaviour)
gatewayAPI.httpsRedirect.enabledbooltrueEnable a second HTTPRoute that 301-redirects HTTP traffic to HTTPS
gatewayAPI.httpsRedirect.portint80HTTP listener port on the Gateway to attach the redirect to
gatewayAPI.httpsRedirect.sectionNamestring""Listener sectionName on the Gateway (optional)
gatewayAPI.httpsRedirect.statusCodeint301Redirect HTTP status code
resources.requestsobject{"cpu":"100m","memory":"128Mi"}CPU/Memory resource requests
nodeSelectorobject{}Node labels for pod assignment
tolerationslist[]Toleration labels for pod assignment
affinityobject{}Affinity labels for pod assignment
javaOptsstring"-XX:GCTimeRatio=19 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=30 --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.management/javax.management.openmbean=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.management/javax.management=ALL-UNNAMED -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"Standard JAVA_OPTS that should be passed to this service
extraEnvVarslist[]Extra environment variables
customLivenessProbeobject{}Custom livenessProbe that overrides the default one
livenessProbe.enabledbooltrueEnable livenessProbe
livenessProbe.initialDelaySecondsint5Initial delay seconds for livenessProbe
livenessProbe.periodSecondsint30Period seconds for livenessProbe
livenessProbe.timeoutSecondsint10Timeout seconds for livenessProbe
livenessProbe.successThresholdint1Success threshold for livenessProbe
livenessProbe.failureThresholdint3Failure threshold for livenessProbe
customReadinessProbeobject{}Custom readinessProbe that overrides the default one
readinessProbe.enabledbooltrueEnable readinessProbe
readinessProbe.initialDelaySecondsint30Initial delay seconds for readinessProbe
readinessProbe.periodSecondsint30Period seconds for readinessProbe
readinessProbe.timeoutSecondsint10Timeout seconds for readinessProbe
readinessProbe.successThresholdint1Success threshold for readinessProbe
readinessProbe.failureThresholdint3Failure threshold for readinessProbe
customStartupProbeobject{}Custom startupProbe that overrides the default one
startupProbe.enabledbooltrueEnable startupProbe
startupProbe.initialDelaySecondsint5Initial delay seconds for startupProbe
startupProbe.periodSecondsint10Period seconds for startupProbe
startupProbe.timeoutSecondsint10Timeout seconds for startupProbe
startupProbe.successThresholdint1Success threshold for startupProbe
startupProbe.failureThresholdint10Failure threshold for startupProbe
networkpolicyobjectcheck values.yamlNetwork policy defines who can access this application and who this applications has access to
postgres.hoststringnilhost name of the postgres db
postgres.portstringnilport of the postgres db
postgres.databasestringnildatabase name
postgres.urlSecretobject{"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.userstringnilpostgres user
postgres.userSecretobject{"key":"username","name":"radar-cloudnative-postgresql-appserver"}Kubernetes secret containing the database user (disables use of 'user' value).
postgres.passwordstringnilpassword of the postgres user
postgres.passwordSecretobject{"key":"password","name":"radar-cloudnative-postgresql-appserver"}Kubernetes secret containing the database password (disables use of 'password' value).
postgres.hibernateDialectstring"org.hibernate.dialect.PostgreSQLDialect"Hibernate SQL dialect used to talk to the database
postgres.jdbcDriverstring"org.postgresql.Driver"JDBC driver class used to connect to the database
postgres.liquibase.enabledbooltrueEnable Liquibase database migrations
postgres.liquibase.changelogsstring"db/changelog/db.changelog-master.yaml"Path to the Liquibase changelog file
postgres.connection_parametersstring""Additional JDBC connection parameters e.g. sslmode=verify-full. Ignored when using 'urlSecret'.
postgres.ssl.enabledboolfalseset to true of the connecting to postgres using SSL
postgres.ssl.keystorepasswordstring"keystorepassword"Password for the SSL keystore used for the postgres connection
server.basePathstring"/"Base path (subpath) under which the appserver API and health endpoint are served
server.requestTimeoutint30Request timeout in seconds for the appserver
server.isJmxEnabledboolfalseEnable JMX monitoring for the appserver
eventBus.numThreadsint3Number of worker threads for the appserver event bus
protocol.githubProtocolRepostring"RADAR-base/RADAR-aRMT-protocols"GitHub repository containing the aRMT protocols
protocol.protocolFileNamestring"protocol.json"Name of the protocol file within the protocol repository
protocol.githubBranchstring"master"Branch of the protocol repository to read the protocol from
managementportal_urlstring"http://management-portal:8080/managementportal"URL of the Management Portal
serverNamestring"localhost"Server host name used by the appserver
managementportal_resource_namestring"res_AppServer"radar_is.yml config for token verification
public_key_endpointslist["http://hydra-public:4444/.well-known/jwks.json","http://management-portal:8080/managementportal/oauth/token_key"]List of OAuth2 authentication server public key endpoints for token verification
google_application_credentialsstring""Google credentials containing FCM server key, etc.
github_client_tokenstring""Github client token which is used for authenticating requests
smtp.enabledboolfalseset to true, if sending of notifications via email should be enabled.
smtp.hoststring"smtp"Hostname of the SMTP server
smtp.portint25Port of the SMTP server
smtp.usernamestring"username"Username of the SMTP server
smtp.passwordstring"secret"Password of the SMTP server
smtp.fromstring"[email protected]"Email address which should be used to send activation emails
smtp.starttlsboolfalseset to true,if TTLS should be enabled
smtp.authbooltrueset to true, if the account should be authenticated before sending emails
smtp.connect_timeoutint10000Timeout (ms) for establishing TCP connection to server
smtp.read_timeoutint10000Timeout (ms) for read operations (socket read timeout), waiting for server responses
upload.enabledboolfalseif set to true, file upload endpoint will be enabled
upload.max_file_sizestring"20MB"Maximum file size for upload. Can be any number followed by MB or GB.
upload.storage.typestring"s3"Type of storage to use for file upload (s3)
upload.storage.urlstring"http://minio-headless:9000"Internal url to storage
upload.storage.bucket_namestring"radar-output-storage"Bucket name of the S3 storage
upload.storage.access_keystring"secret"Access key of the S3 storage
upload.storage.secret_keystring"secret"Secret key of the S3 storage
upload.storage.path.prefixstring"output"Prefix for the path in the storage; will become ////
upload.storage.path.collection_per_dayboolfalseif set to true, a new folder will be created for each day

Deploy radar-appserver-jersey 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-jersey 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartradar-appserver-jersey is pinned at v0.1.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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