Polaris Helm Chart

Version: 1.1.0-incubating-SNAPSHOT Type: application AppVersion: 1.1.0-incubating-SNAPSHOT

A Helm chart for Apache Polaris (incubating).

Homepage: https://polaris.apache.org/

Source Code

Installation

Running locally with a Minikube cluster

The below instructions assume Minikube and Helm are installed.

Start the Minikube cluster, build and load image into the Minikube cluster:

minikube start
eval $(minikube docker-env)

./gradlew \
  :polaris-server:assemble \
  :polaris-server:quarkusAppPartsBuild --rerun \
  :polaris-admin:assemble \
  :polaris-admin:quarkusAppPartsBuild --rerun \
  -Dquarkus.container-image.build=true

Installing the chart locally

The below instructions assume a local Kubernetes cluster is running and Helm is installed.

Common setup

Create the target namespace:

kubectl create namespace polaris

Create all the required resources in the polaris namespace. This usually includes a Postgres database, Kubernetes secrets, and service accounts. The Polaris chart does not create these resources automatically, as they are not required for all Polaris deployments. The chart will fail if these resources are not created beforehand. You can find some examples in the helm/polaris/ci/fixtures directory, but beware that these are primarily intended for tests.

Below are two sample deployment models for installing the chart: one with a non-persistent backend and another with a persistent backend.

[!WARNING] The examples below use values files located in the helm/polaris/ci directory. These files are intended for testing purposes primarily, and may not be suitable for production use. For production deployments, create your own values files based on the provided examples.

Non-persistent backend

Install the chart with a non-persistent backend. From Polaris repo root:

helm upgrade --install --namespace polaris \
  polaris helm/polaris

Persistent backend

[!WARNING] The Postgres deployment set up in the fixtures directory is intended for testing purposes only and is not suitable for production use. For production deployments, use a managed Postgres service or a properly configured and secured Postgres instance.

Install the chart with a persistent backend. From Polaris repo root:

helm upgrade --install --namespace polaris \
  --values helm/polaris/ci/persistence-values.yaml \
  polaris helm/polaris
kubectl wait --namespace polaris --for=condition=ready pod --selector=app.kubernetes.io/name=polaris --timeout=120s

To access Polaris and Postgres locally, set up port forwarding for both services (This is needed for bootstrap processes):

kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=polaris -o jsonpath='{.items[0].metadata.name}') 8181:8181

kubectl port-forward -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=postgres -o jsonpath='{.items[0].metadata.name}') 5432:5432

Run the catalog bootstrap using the Polaris admin tool. This step initializes the catalog with the required configuration:

container_envs=$(kubectl exec -it -n polaris $(kubectl get pod -n polaris -l app.kubernetes.io/name=polaris -o jsonpath='{.items[0].metadata.name}') -- env)
export QUARKUS_DATASOURCE_USERNAME=$(echo "$container_envs" | grep quarkus.datasource.username | awk -F '=' '{print $2}' | tr -d '\n\r')
export QUARKUS_DATASOURCE_PASSWORD=$(echo "$container_envs" | grep quarkus.datasource.password | awk -F '=' '{print $2}' | tr -d '\n\r')
export QUARKUS_DATASOURCE_JDBC_URL=$(echo "$container_envs" | grep quarkus.datasource.jdbc.url | sed 's/postgres/localhost/2' | awk -F '=' '{print $2}' | tr -d '\n\r')

java -jar runtime/admin/build/quarkus-app/quarkus-run.jar bootstrap -c POLARIS,root,pass -r POLARIS

Uninstalling

helm uninstall --namespace polaris polaris

kubectl delete --namespace polaris -f helm/polaris/ci/fixtures/

kubectl delete namespace polaris

Development & Testing

This section is intended for developers who want to run the Polaris Helm chart tests.

Prerequisites

The following tools are required to run the tests:

Quick installation instructions for these tools:

helm plugin install https://github.com/helm-unittest/helm-unittest.git
brew install chart-testing

The integration tests also require some fixtures to be deployed. The ci/fixtures directory contains the required resources. To deploy them, run the following command:

kubectl apply --namespace polaris -f helm/polaris/ci/fixtures/
kubectl wait --namespace polaris --for=condition=ready pod --selector=app.kubernetes.io/name=postgres --timeout=120s

The helm/polaris/ci contains a number of values files that will be used to install the chart with different configurations.

Running the unit tests

Helm unit tests do not require a Kubernetes cluster. To run the unit tests, execute Helm Unit from the Polaris repo root:

helm unittest helm/polaris

You can also lint the chart using the Chart Testing tool, with the following command:

ct lint --charts helm/polaris

Running the integration tests

Integration tests require a Kubernetes cluster. See installation instructions above for setting up a local cluster.

Integration tests are run with the Chart Testing tool:

ct install --namespace polaris --charts ./helm/polaris

Values

KeyTypeDefaultDescription
advancedConfigobject{}Advanced configuration. You can pass here any valid Polaris or Quarkus configuration property. Any property that is defined here takes precedence over all the other configuration values generated by this chart. Properties can be passed “flattened” or as nested YAML objects (see examples below). Note: values should be strings; avoid using numbers, booleans, or other types.
affinityobject{}Affinity and anti-affinity for polaris pods. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity.
authenticationobject{"authenticator":{"type":"default"},"tokenBroker":{"maxTokenGeneration":"PT1H","secret":{"name":null,"privateKey":"private.pem","publicKey":"public.pem","rsaKeyPair":{"privateKey":"private.pem","publicKey":"public.pem"},"secretKey":"symmetric.pem","symmetricKey":{"secretKey":"symmetric.pem"}},"type":"rsa-key-pair"},"tokenService":{"type":"default"}}Polaris authentication configuration.
authentication.authenticatorobject{"type":"default"}The type of authentication to use. Two built-in types are supported: default and test; test is not recommended for production.
authentication.tokenBrokerobject{"maxTokenGeneration":"PT1H","secret":{"name":null,"privateKey":"private.pem","publicKey":"public.pem","rsaKeyPair":{"privateKey":"private.pem","publicKey":"public.pem"},"secretKey":"symmetric.pem","symmetricKey":{"secretKey":"symmetric.pem"}},"type":"rsa-key-pair"}The type of token broker to use. Two built-in types are supported: rsa-key-pair and symmetric-key.
authentication.tokenBroker.maxTokenGenerationstring"PT1H"Maximum token generation duration (e.g., PT1H for 1 hour).
authentication.tokenBroker.secretobject{"name":null,"privateKey":"private.pem","publicKey":"public.pem","rsaKeyPair":{"privateKey":"private.pem","publicKey":"public.pem"},"secretKey":"symmetric.pem","symmetricKey":{"secretKey":"symmetric.pem"}}The secret name to pull the public and private keys, or the symmetric key secret from.
authentication.tokenBroker.secret.namestringnilThe name of the secret to pull the keys from. If not provided, a key pair will be generated. This is not recommended for production.
authentication.tokenBroker.secret.privateKeystring"private.pem"DEPRECATED: Use authentication.tokenBroker.secret.rsaKeyPair.privateKey instead. Key name inside the secret for the private key
authentication.tokenBroker.secret.publicKeystring"public.pem"DEPRECATED: Use authentication.tokenBroker.secret.rsaKeyPair.publicKey instead. Key name inside the secret for the public key
authentication.tokenBroker.secret.rsaKeyPairobject{"privateKey":"private.pem","publicKey":"public.pem"}Optional: configuration specific to RSA key pair secret.
authentication.tokenBroker.secret.rsaKeyPair.privateKeystring"private.pem"Key name inside the secret for the private key
authentication.tokenBroker.secret.rsaKeyPair.publicKeystring"public.pem"Key name inside the secret for the public key
authentication.tokenBroker.secret.secretKeystring"symmetric.pem"DEPRECATED: Use authentication.tokenBroker.secret.symmetricKey.secretKey instead. Key name inside the secret for the symmetric key
authentication.tokenBroker.secret.symmetricKeyobject{"secretKey":"symmetric.pem"}Optional: configuration specific to symmetric key secret.
authentication.tokenBroker.secret.symmetricKey.secretKeystring"symmetric.pem"Key name inside the secret for the symmetric key
authentication.tokenServiceobject{"type":"default"}The type of token service to use. Two built-in types are supported: default and test; test is not recommended for production.
autoscaling.enabledboolfalseSpecifies whether automatic horizontal scaling should be enabled. Do not enable this when using in-memory version store type.
autoscaling.maxReplicasint3The maximum number of replicas to maintain.
autoscaling.minReplicasint1The minimum number of replicas to maintain.
autoscaling.targetCPUUtilizationPercentageint80Optional; set to zero or empty to disable.
autoscaling.targetMemoryUtilizationPercentagestringnilOptional; set to zero or empty to disable.
configMapLabelsobject{}Additional Labels to apply to polaris configmap.
containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true,"runAsUser":10000,"seccompProfile":{"type":"RuntimeDefault"}}Security context for the polaris container. See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/.
containerSecurityContext.runAsUserint10000UID 10000 is compatible with Polaris OSS default images; change this if you are using a different image.
corsobject{"accessControlAllowCredentials":null,"accessControlMaxAge":null,"allowedHeaders":[],"allowedMethods":[],"allowedOrigins":[],"exposedHeaders":[]}Polaris CORS configuration.
cors.accessControlAllowCredentialsstringnilThe Access-Control-Allow-Credentials response header. The value of this header will default to true if allowedOrigins property is set and there is a match with the precise Origin header.
cors.accessControlMaxAgestringnilThe Access-Control-Max-Age response header value indicating how long the results of a pre-flight request can be cached. Must be a valid duration.
cors.allowedHeaderslist[]HTTP headers allowed for CORS, ex: X-Custom, Content-Disposition. If this is not set or empty, all requested headers are considered allowed.
cors.allowedMethodslist[]HTTP methods allowed for CORS, ex: GET, PUT, POST. If this is not set or empty, all requested methods are considered allowed.
cors.allowedOriginslist[]Origins allowed for CORS, e.g. http://polaris.apache.org, http://localhost:8181. In case an entry of the list is surrounded by forward slashes, it is interpreted as a regular expression.
cors.exposedHeaderslist[]HTTP headers exposed to the client, ex: X-Custom, Content-Disposition. The default is an empty list.
extraEnvlist[]Advanced configuration via Environment Variables. Extra environment variables to add to the Polaris server container. You can pass here any valid EnvVar object: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.27/#envvar-v1-core This can be useful to get configuration values from Kubernetes secrets or config maps.
extraInitContainerslist[]Add additional init containers to the polaris pod(s) See https://kubernetes.io/docs/concepts/workloads/pods/init-containers/.
extraServiceslist[]Additional service definitions. All service definitions always select all Polaris pods. Use this if you need to expose specific ports with different configurations, e.g. expose polaris-http with an alternate LoadBalancer service instead of ClusterIP.
extraVolumeMountslist[]Extra volume mounts to add to the polaris container. See https://kubernetes.io/docs/concepts/storage/volumes/.
extraVolumeslist[]Extra volumes to add to the polaris pod. See https://kubernetes.io/docs/concepts/storage/volumes/.
featuresobject{"realmOverrides":{}}Polaris features configuration.
features.realmOverridesobject{}Features to enable or disable per realm. This field is a map of maps. The realm name is the key, and the value is a map of feature names to values. If a feature is not present in the map, the default value from the ‘defaults’ field is used.
fileIoobject{"type":"default"}Polaris FileIO configuration.
fileIo.typestring"default"The type of file IO to use. Two built-in types are supported: default and wasb. The wasb one translates WASB paths to ABFS ones.
image.configDirstring"/deployments/config"The path to the directory where the application.properties file, and other configuration files, if any, should be mounted. Note: if you are using EclipseLink, then this value must be at least two folders down to the root folder, e.g. /deployments/config is OK, whereas /deployments is not.
image.pullPolicystring"IfNotPresent"The image pull policy.
image.repositorystring"apache/polaris"The image repository to pull from.
image.tagstring"1.1.0-incubating-SNAPSHOT"The image tag.
imagePullSecretslist[]References to secrets in the same namespace to use for pulling any of the images used by this chart. Each entry is a LocalObjectReference to an existing secret in the namespace. The secret must contain a .dockerconfigjson key with a base64-encoded Docker configuration file. See https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ for more information.
ingress.annotationsobject{}Annotations to add to the ingress.
ingress.classNamestring""Specifies the ingressClassName; leave empty if you don’t want to customize it
ingress.enabledboolfalseSpecifies whether an ingress should be created.
ingress.hostslist[{"host":"chart-example.local","paths":[]}]A list of host paths used to configure the ingress.
ingress.tlslist[]A list of TLS certificates; each entry has a list of hosts in the certificate, along with the secret name used to terminate TLS traffic on port 443.
livenessProbeobject{"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"terminationGracePeriodSeconds":30,"timeoutSeconds":10}Configures the liveness probe for polaris pods.
livenessProbe.failureThresholdint3Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1.
livenessProbe.initialDelaySecondsint5Number of seconds after the container has started before liveness probes are initiated. Minimum value is 0.
livenessProbe.periodSecondsint10How often (in seconds) to perform the probe. Minimum value is 1.
livenessProbe.successThresholdint1Minimum consecutive successes for the probe to be considered successful after having failed. Minimum value is 1.
livenessProbe.terminationGracePeriodSecondsint30Optional duration in seconds the pod needs to terminate gracefully upon probe failure. Minimum value is 1.
livenessProbe.timeoutSecondsint10Number of seconds after which the probe times out. Minimum value is 1.
loggingobject{"categories":{"org.apache.iceberg.rest":"INFO","org.apache.polaris":"INFO"},"console":{"enabled":true,"format":"%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] [%X{requestId},%X{realmId}] [%X{traceId},%X{parentId},%X{spanId},%X{sampled}] (%t) %s%e%n","json":false,"threshold":"ALL"},"file":{"enabled":false,"fileName":"polaris.log","format":"%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] [%X{requestId},%X{realmId}] [%X{traceId},%X{parentId},%X{spanId},%X{sampled}] (%t) %s%e%n","json":false,"logsDir":"/deployments/logs","rotation":{"fileSuffix":null,"maxBackupIndex":5,"maxFileSize":"100Mi"},"storage":{"className":"standard","selectorLabels":{},"size":"512Gi"},"threshold":"ALL"},"level":"INFO","mdc":{},"requestIdHeaderName":"Polaris-Request-Id"}Logging configuration.
logging.categoriesobject{"org.apache.iceberg.rest":"INFO","org.apache.polaris":"INFO"}Configuration for specific log categories.
logging.consoleobject{"enabled":true,"format":"%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] [%X{requestId},%X{realmId}] [%X{traceId},%X{parentId},%X{spanId},%X{sampled}] (%t) %s%e%n","json":false,"threshold":"ALL"}Configuration for the console appender.
logging.console.enabledbooltrueWhether to enable the console appender.
logging.console.formatstring"%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] [%X{requestId},%X{realmId}] [%X{traceId},%X{parentId},%X{spanId},%X{sampled}] (%t) %s%e%n"The log format to use. Ignored if JSON format is enabled. See https://quarkus.io/guides/logging#logging-format for details.
logging.console.jsonboolfalseWhether to log in JSON format.
logging.console.thresholdstring"ALL"The log level of the console appender.
logging.fileobject{"enabled":false,"fileName":"polaris.log","format":"%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] [%X{requestId},%X{realmId}] [%X{traceId},%X{parentId},%X{spanId},%X{sampled}] (%t) %s%e%n","json":false,"logsDir":"/deployments/logs","rotation":{"fileSuffix":null,"maxBackupIndex":5,"maxFileSize":"100Mi"},"storage":{"className":"standard","selectorLabels":{},"size":"512Gi"},"threshold":"ALL"}Configuration for the file appender.
logging.file.enabledboolfalseWhether to enable the file appender.
logging.file.fileNamestring"polaris.log"The log file name.
logging.file.formatstring"%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c{3.}] [%X{requestId},%X{realmId}] [%X{traceId},%X{parentId},%X{spanId},%X{sampled}] (%t) %s%e%n"The log format to use. Ignored if JSON format is enabled. See https://quarkus.io/guides/logging#logging-format for details.
logging.file.jsonboolfalseWhether to log in JSON format.
logging.file.logsDirstring"/deployments/logs"The local directory where log files are stored. The persistent volume claim will be mounted here.
logging.file.rotationobject{"fileSuffix":null,"maxBackupIndex":5,"maxFileSize":"100Mi"}Log rotation configuration.
logging.file.rotation.fileSuffixstringnilAn optional suffix to append to the rotated log files. If present, the rotated log files will be grouped in time buckets, and each bucket will contain at most maxBackupIndex files. The suffix must be in a date-time format that is understood by DateTimeFormatter. If the suffix ends with .gz or .zip, the rotated files will also be compressed using the corresponding algorithm.
logging.file.rotation.maxBackupIndexint5The maximum number of backup files to keep.
logging.file.rotation.maxFileSizestring"100Mi"The maximum size of the log file before it is rotated. Should be expressed as a Kubernetes quantity.
logging.file.storageobject{"className":"standard","selectorLabels":{},"size":"512Gi"}The log storage configuration. A persistent volume claim will be created using these settings.
logging.file.storage.classNamestring"standard"The storage class name of the persistent volume claim to create.
logging.file.storage.selectorLabelsobject{}Labels to add to the persistent volume claim spec selector; a persistent volume with matching labels must exist. Leave empty if using dynamic provisioning.
logging.file.storage.sizestring"512Gi"The size of the persistent volume claim to create.
logging.file.thresholdstring"ALL"The log level of the file appender.
logging.levelstring"INFO"The log level of the root category, which is used as the default log level for all categories.
logging.mdcobject{}Configuration for MDC (Mapped Diagnostic Context). Values specified here will be added to the log context of all incoming requests and can be used in log patterns.
logging.requestIdHeaderNamestring"Polaris-Request-Id"The header name to use for the request ID.
managementServiceobject{"annotations":{},"clusterIP":"None","externalTrafficPolicy":null,"internalTrafficPolicy":null,"ports":[{"name":"polaris-mgmt","nodePort":null,"port":8182,"protocol":null,"targetPort":null}],"sessionAffinity":null,"trafficDistribution":null,"type":"ClusterIP"}Management service settings. These settings are used to configure liveness and readiness probes, and to configure the dedicated headless service that will expose health checks and metrics, e.g. for metrics scraping and service monitoring.
managementService.annotationsobject{}Annotations to add to the service.
managementService.clusterIPstring"None"By default, the management service is headless, i.e. it does not have a cluster IP. This is generally the right option for exposing health checks and metrics, e.g. for metrics scraping and service monitoring.
managementService.portslist[{"name":"polaris-mgmt","nodePort":null,"port":8182,"protocol":null,"targetPort":null}]The ports the management service will listen on. At least one port is required; the first port implicitly becomes the HTTP port that the application will use for serving management requests. By default, it’s 8182. Note: port names must be unique and no more than 15 characters long.
managementService.ports[0]object{"name":"polaris-mgmt","nodePort":null,"port":8182,"protocol":null,"targetPort":null}The name of the management port. Required.
managementService.ports[0].nodePortstringnilThe port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail.
managementService.ports[0].portint8182The port the management service listens on. By default, the management interface is exposed on HTTP port 8182.
managementService.ports[0].protocolstringnilThe IP protocol for this port. Supports “TCP”, “UDP”, and “SCTP”. Default is TCP.
managementService.ports[0].targetPortstringnilNumber or name of the port to access on the pods targeted by the service. If this is a string, it will be looked up as a named port in the target Pod’s container ports. If this is not specified, the value of the ‘port’ field is used.
managementService.typestring"ClusterIP"The type of service to create. Valid values are: ExternalName, ClusterIP, NodePort, and LoadBalancer. The default value is ClusterIP.
metrics.enabledbooltrueSpecifies whether metrics for the polaris server should be enabled.
metrics.tagsobject{}Additional tags (dimensional labels) to add to the metrics.
nodeSelectorobject{}Node labels which must match for the polaris pod to be scheduled on that node. See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector.
persistenceobject{"relationalJdbc":{"secret":{"jdbcUrl":"jdbcUrl","name":null,"password":"password","username":"username"}},"type":"in-memory"}Polaris persistence configuration.
persistence.relationalJdbcobject{"secret":{"jdbcUrl":"jdbcUrl","name":null,"password":"password","username":"username"}}The configuration for the relational-jdbc persistence manager.
persistence.relationalJdbc.secretobject{"jdbcUrl":"jdbcUrl","name":null,"password":"password","username":"username"}The secret name to pull the database connection properties from.
persistence.relationalJdbc.secret.jdbcUrlstring"jdbcUrl"The secret key holding the database JDBC connection URL
persistence.relationalJdbc.secret.namestringnilThe secret name to pull database connection properties from
persistence.relationalJdbc.secret.passwordstring"password"The secret key holding the database password for authentication
persistence.relationalJdbc.secret.usernamestring"username"The secret key holding the database username for authentication
persistence.typestring"in-memory"The type of persistence to use. Two built-in types are supported: in-memory and relational-jdbc. The eclipse-link type is also supported but is deprecated.
podAnnotationsobject{}Annotations to apply to polaris pods.
podLabelsobject{}Additional Labels to apply to polaris pods.
podSecurityContextobject{"fsGroup":10001,"seccompProfile":{"type":"RuntimeDefault"}}Security context for the polaris pod. See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/.
podSecurityContext.fsGroupint10001GID 10001 is compatible with Polaris OSS default images; change this if you are using a different image.
rateLimiterobject{"tokenBucket":{"requestsPerSecond":9999,"type":"default","window":"PT10S"},"type":"no-op"}Polaris rate limiter configuration.
rateLimiter.tokenBucketobject{"requestsPerSecond":9999,"type":"default","window":"PT10S"}The configuration for the default rate limiter, which uses the token bucket algorithm with one bucket per realm.
rateLimiter.tokenBucket.requestsPerSecondint9999The maximum number of requests per second allowed for each realm.
rateLimiter.tokenBucket.typestring"default"The type of the token bucket rate limiter. Only the default type is supported out of the box.
rateLimiter.tokenBucket.windowstring"PT10S"The time window.
rateLimiter.typestring"no-op"The type of rate limiter filter to use. Two built-in types are supported: default and no-op.
readinessProbeobject{"failureThreshold":3,"initialDelaySeconds":5,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":10}Configures the readiness probe for polaris pods.
readinessProbe.failureThresholdint3Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1.
readinessProbe.initialDelaySecondsint5Number of seconds after the container has started before readiness probes are initiated. Minimum value is 0.
readinessProbe.periodSecondsint10How often (in seconds) to perform the probe. Minimum value is 1.
readinessProbe.successThresholdint1Minimum consecutive successes for the probe to be considered successful after having failed. Minimum value is 1.
readinessProbe.timeoutSecondsint10Number of seconds after which the probe times out. Minimum value is 1.
realmContextobject{"realms":["POLARIS"],"type":"default"}Realm context resolver configuration.
realmContext.realmslist["POLARIS"]List of valid realms, for use with the default realm context resolver. The first realm in the list is the default realm. Realms not in this list will be rejected.
realmContext.typestring"default"The type of realm context resolver to use. Two built-in types are supported: default and test; test is not recommended for production as it does not perform any realm validation.
replicaCountint1The number of replicas to deploy (horizontal scaling). Beware that replicas are stateless; don’t set this number > 1 when using in-memory meta store manager.
resourcesobject{}Configures the resources requests and limits for polaris pods. We usually recommend not to specify default resources and to leave this as a conscious choice for the user. This also increases chances charts run on environments with little resources, such as Minikube. If you do want to specify resources, uncomment the following lines, adjust them as necessary, and remove the curly braces after ‘resources:’.
revisionHistoryLimitstringnilThe number of old ReplicaSets to retain to allow rollback (if not set, the default Kubernetes value is set to 10).
serviceobject{"annotations":{},"clusterIP":null,"externalTrafficPolicy":null,"internalTrafficPolicy":null,"ports":[{"name":"polaris-http","nodePort":null,"port":8181,"protocol":null,"targetPort":null}],"sessionAffinity":null,"trafficDistribution":null,"type":"ClusterIP"}Polaris main service settings.
service.annotationsobject{}Annotations to add to the service.
service.clusterIPstringnilYou can specify your own cluster IP address If you define a Service that has the .spec.clusterIP set to “None” then Kubernetes does not assign an IP address. Instead, DNS records for the service will return the IP addresses of each pod targeted by the server. This is called a headless service. See https://kubernetes.io/docs/concepts/services-networking/service/#headless-services
service.externalTrafficPolicystringnilControls how traffic from external sources is routed. Valid values are Cluster and Local. The default value is Cluster. Set the field to Cluster to route traffic to all ready endpoints. Set the field to Local to only route to ready node-local endpoints. If the traffic policy is Local and there are no node-local endpoints, traffic is dropped by kube-proxy.
service.internalTrafficPolicystringnilControls how traffic from internal sources is routed. Valid values are Cluster and Local. The default value is Cluster. Set the field to Cluster to route traffic to all ready endpoints. Set the field to Local to only route to ready node-local endpoints. If the traffic policy is Local and there are no node-local endpoints, traffic is dropped by kube-proxy.
service.portslist[{"name":"polaris-http","nodePort":null,"port":8181,"protocol":null,"targetPort":null}]The ports the service will listen on. At least one port is required; the first port implicitly becomes the HTTP port that the application will use for serving API requests. By default, it’s 8181. Note: port names must be unique and no more than 15 characters long.
service.ports[0]object{"name":"polaris-http","nodePort":null,"port":8181,"protocol":null,"targetPort":null}The name of the port. Required.
service.ports[0].nodePortstringnilThe port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail.
service.ports[0].portint8181The port the service listens on. By default, the HTTP port is 8181.
service.ports[0].protocolstringnilThe IP protocol for this port. Supports “TCP”, “UDP”, and “SCTP”. Default is TCP.
service.ports[0].targetPortstringnilNumber or name of the port to access on the pods targeted by the service. If this is a string, it will be looked up as a named port in the target Pod’s container ports. If this is not specified, the value of the ‘port’ field is used.
service.sessionAffinitystringnilThe session affinity for the service. Valid values are: None, ClientIP. The default value is None. ClientIP enables sticky sessions based on the client’s IP address. This is generally beneficial to Polaris deployments, but some testing may be required in order to make sure that the load is distributed evenly among the pods. Also, this setting affects only internal clients, not external ones. If Ingress is enabled, it is recommended to set sessionAffinity to None.
service.trafficDistributionstringnilThe traffic distribution field provides another way to influence traffic routing within a Kubernetes Service. While traffic policies focus on strict semantic guarantees, traffic distribution allows you to express preferences such as routing to topologically closer endpoints. The only valid value is: PreferClose. The default value is implementation-specific.
service.typestring"ClusterIP"The type of service to create. Valid values are: ExternalName, ClusterIP, NodePort, and LoadBalancer. The default value is ClusterIP.
serviceAccount.annotationsobject{}Annotations to add to the service account.
serviceAccount.createbooltrueSpecifies whether a service account should be created.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
serviceMonitor.enabledbooltrueSpecifies whether a ServiceMonitor for Prometheus operator should be created.
serviceMonitor.intervalstring""The scrape interval; leave empty to let Prometheus decide. Must be a valid duration, e.g. 1d, 1h30m, 5m, 10s.
serviceMonitor.labelsobject{}Labels for the created ServiceMonitor so that Prometheus operator can properly pick it up.
serviceMonitor.metricRelabelingslist[]Relabeling rules to apply to metrics. Ref https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config.
storageobject{"secret":{"awsAccessKeyId":null,"awsSecretAccessKey":null,"gcpToken":null,"gcpTokenLifespan":null,"name":null}}Storage credentials for the server. If the following properties are unset, default credentials will be used, in which case the pod must have the necessary permissions to access the storage.
storage.secretobject{"awsAccessKeyId":null,"awsSecretAccessKey":null,"gcpToken":null,"gcpTokenLifespan":null,"name":null}The secret to pull storage credentials from.
storage.secret.awsAccessKeyIdstringnilThe key in the secret to pull the AWS access key ID from. Only required when using AWS.
storage.secret.awsSecretAccessKeystringnilThe key in the secret to pull the AWS secret access key from. Only required when using AWS.
storage.secret.gcpTokenstringnilThe key in the secret to pull the GCP token from. Only required when using GCP.
storage.secret.gcpTokenLifespanstringnilThe key in the secret to pull the GCP token expiration time from. Only required when using GCP. Must be a valid ISO 8601 duration. The default is PT1H (1 hour).
storage.secret.namestringnilThe name of the secret to pull storage credentials from.
tasksobject{"maxConcurrentTasks":null,"maxQueuedTasks":null}Polaris asynchronous task executor configuration.
tasks.maxConcurrentTasksstringnilThe maximum number of concurrent tasks that can be executed at the same time. The default is the number of available cores.
tasks.maxQueuedTasksstringnilThe maximum number of tasks that can be queued up for execution. The default is Integer.MAX_VALUE.
tolerationslist[]A list of tolerations to apply to polaris pods. See https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/.
tracing.attributesobject{}Resource attributes to identify the polaris service among other tracing sources. See https://opentelemetry.io/docs/reference/specification/resource/semantic_conventions/#service. If left empty, traces will be attached to a service named “Apache Polaris”; to change this, provide a service.name attribute here.
tracing.enabledboolfalseSpecifies whether tracing for the polaris server should be enabled.
tracing.endpointstring"http://otlp-collector:4317"The collector endpoint URL to connect to (required). The endpoint URL must have either the http:// or the https:// scheme. The collector must talk the OpenTelemetry protocol (OTLP) and the port must be its gRPC port (by default 4317). See https://quarkus.io/guides/opentelemetry for more information.
tracing.samplestring"1.0d"Which requests should be sampled. Valid values are: “all”, “none”, or a ratio between 0.0 and “1.0d” (inclusive). E.g. “0.5d” means that 50% of the requests will be sampled. Note: avoid entering numbers here, always prefer a string representation of the ratio.