scalardb-cluster

by joaquinito2051

Helm chartv1.11.1App 3.18.0

ScalarDB Cluster

About this chart

scalardb-cluster

ScalarDB Cluster Current chart version is 1.11.1

Requirements

Kubernetes: >= 1.31.0-0

RepositoryNameVersion
https://scalar-labs.github.io/helm-chartsenvoy~2.6.0

Values

KeyTypeDefaultDescription
envoy.enabledboolfalseenable envoy
envoy.envoyConfiguration.serviceListenersstring"scalardb-cluster-service:60053"list of service name and port
envoy.image.versionstring"1.6.1"Docker tag
envoy.nameOverridestring"scalardb-cluster"String to partially override envoy.fullname template
envoy.service.annotationsobject{}Service annotations, e.g: prometheus, etc.
envoy.service.ports.envoy.portint60053envoy public port
envoy.service.ports.envoy.protocolstring"TCP"envoy protocol
envoy.service.ports.envoy.targetPortint60053envoy k8s internal name
envoy.service.typestring"ClusterIP"service types in kubernetes
fullnameOverridestring""String to fully override scalardb-cluster.fullname template
global.azureobject{"images":{"envoy":{"image":"scalar-envoy","registry":"scalar.azurecr.io","tag":"1.6.1"},"scalardbCluster":{"image":"scalardb-cluster-node-azure-payg-premium","registry":"scalar.azurecr.io","tag":"3.18.0"}}}Azure Marketplace specific configurations.
global.azure.images.envoyobject{"image":"scalar-envoy","registry":"scalar.azurecr.io","tag":"1.6.1"}Container image of Envoy for Azure Marketplace.
global.azure.images.scalardbClusterobject{"image":"scalardb-cluster-node-azure-payg-premium","registry":"scalar.azurecr.io","tag":"3.18.0"}Container image of ScalarDB Cluster for Azure Marketplace.
global.platformstring""Specify the platform that you use. This configuration is for internal use.
nameOverridestring""String to partially override scalardb-cluster.fullname template (will maintain the release name)
scalardbCluster.affinityobject{}The affinity/anti-affinity feature, greatly expands the types of constraints you can express.
scalardbCluster.encryption.enabledboolfalseEnable encryption at rest. You must set this to true if you're using the encryption feature in ScalarDB Cluster.
scalardbCluster.encryption.typestring""Type of encryption. You must set this value to the same value as "scalar.db.cluster.encryption.type" for ScalarDB Cluster.
scalardbCluster.encryption.vaultobject{"tls":{"caRootCertSecret":"","enabled":false}}Vault-specific configurations.
scalardbCluster.encryption.vault.tlsobject{"caRootCertSecret":"","enabled":false}TLS configurations to provide access from ScalarDB Cluster to Vault by using TLS. If you're using HashiCorp Cloud Platform (HCP) Vault Dedicated, you don't need to set these TLS configurations because HCP Vault Dedicated uses a trusted, well-known CA and ScalarDB Cluster can validate the certificate that is provided by HCP Vault Dedicated. You need to set these TLS configurations only if you need to set a custom CA root certificate, for example, you're using your private CA together with HashiCorp Vault deployments other than HCP Vault Dedicated, like a self-hosted HashiCorp Vault.
scalardbCluster.encryption.vault.tls.caRootCertSecretstring""Name of the Secret containing the custom CA root certificate for TLS communication between ScalarDB Cluster and Vault. The certificate file will be mounted under the /encryption/vault/tls/certs/ directory in the ScalarDB Cluster pod.
scalardbCluster.encryption.vault.tls.enabledboolfalseEnable TLS between ScalarDB Cluster and Vault. Note that you must enable the TLS feature on the Vault side.
scalardbCluster.extraVolumeMountslist[]Defines additional volume mounts. If you want to get a heap dump of the ScalarDB Cluster node, you need to mount a volume to make the dump file persistent.
scalardbCluster.extraVolumeslist[]Defines additional volumes. If you want to get a heap dump of the ScalarDB Cluster node, you need to mount a volume to make the dump file persistent.
scalardbCluster.grafanaDashboard.enabledboolfalseEnable grafana dashboard.
scalardbCluster.grafanaDashboard.namespacestring"monitoring"Which namespace grafana dashboard is located. by default monitoring.
scalardbCluster.graphql.enabledboolfalseenable graphql
scalardbCluster.graphql.service.annotationsobject{}Service annotations, e.g: prometheus, etc.
scalardbCluster.graphql.service.ports.graphql.portint8080graphql public port
scalardbCluster.graphql.service.ports.graphql.protocolstring"TCP"graphql protocol
scalardbCluster.graphql.service.ports.graphql.targetPortint8080graphql k8s internal port
scalardbCluster.graphql.service.typestring"ClusterIP"service types in kubernetes
scalardbCluster.image.pullPolicystring"IfNotPresent"Specify a image pulling policy.
scalardbCluster.image.repositorystring"registry.connect.redhat.com/scalar-labs/scalardb-cluster-node-ubi-byol-premium"Docker image repository of ScalarDB Cluster.
scalardbCluster.image.tagstring""Override the image tag whose default is the chart appVersion
scalardbCluster.imagePullSecretslist[]Optionally specify an array of imagePullSecrets. Secrets must be manually created in the namespace.
scalardbCluster.logLevelstring"INFO"The log level of ScalarDB Cluster
scalardbCluster.nodeSelectorobject{}nodeSelector is form of node selection constraint.
scalardbCluster.podAnnotationsobject{}Pod annotations for the scalardb-cluster deployment
scalardbCluster.podLabelsobject{}Pod labels for the scalardb-cluster deployment
scalardbCluster.podSecurityContextobject{"seccompProfile":{"type":"RuntimeDefault"}}PodSecurityContext holds pod-level security attributes and common container settings.
scalardbCluster.prometheusRule.enabledboolfalseEnable rules for prometheus.
scalardbCluster.prometheusRule.namespacestring"monitoring"Which namespace prometheus is located. by default monitoring.
scalardbCluster.replicaCountint3Default values for number of replicas.
scalardbCluster.resourcesobject{}Resources allowed to the pod.
scalardbCluster.scalardbClusterNodePropertiesstringThe minimum template of database.properties is set by default.The database.properties is created based on the values of scalardb-cluster.storageConfiguration by default. If you want to customize database.properties, you can override this value with your database.properties.
scalardbCluster.secretNamestring""Secret name that includes sensitive data such as credentials. Each secret key is passed to Pod as environment variables using envFrom.
scalardbCluster.securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsNonRoot":true}Setting security context at the pod applies those settings to all containers in the pod.
scalardbCluster.securityContext.allowPrivilegeEscalationboolfalseAllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process
scalardbCluster.securityContext.capabilitiesobject{"drop":["ALL"]}Capabilities (specifically, Linux capabilities), are used for permission management in Linux. Some capabilities are enabled by default
scalardbCluster.securityContext.runAsNonRootbooltrueContainers should be run as a non-root user with the minimum required permissions (principle of least privilege)
scalardbCluster.service.ports.scalardb-cluster.portint60053ScalarDB Cluster port.
scalardbCluster.service.ports.scalardb-cluster.protocolstring"TCP"ScalarDB Cluster protocol.
scalardbCluster.service.ports.scalardb-cluster.targetPortint60053ScalarDB Cluster target port.
scalardbCluster.service.typestring"ClusterIP"service types in kubernetes.
scalardbCluster.serviceAccount.automountServiceAccountTokenbooltrueSpecify to mount a service account token or not
scalardbCluster.serviceAccount.serviceAccountNamestring""Name of the existing service account resource
scalardbCluster.serviceMonitor.enabledboolfalseEnable metrics collect with prometheus.
scalardbCluster.serviceMonitor.intervalstring"15s"Custom interval to retrieve the metrics.
scalardbCluster.serviceMonitor.namespacestring"monitoring"Which namespace prometheus is located. by default monitoring.
scalardbCluster.strategy.rollingUpdate.maxSurgestring"25%"The number of pods that can be created above the desired amount of pods during an update
scalardbCluster.strategy.rollingUpdate.maxUnavailablestring"25%"The number of pods that can be unavailable during the update process
scalardbCluster.strategy.typestring"RollingUpdate"New pods are added gradually, and old pods are terminated gradually, e.g: Recreate or RollingUpdate
scalardbCluster.tls.caRootCertSecretstring""Name of the Secret containing the custom CA root certificate for TLS communication.
scalardbCluster.tls.caRootCertSecretForServiceMonitorstring""Name of the Secret containing the CA root certificate for TLS communication on the metrics endpoint. Prometheus Operator retrieves the CA root certificate file from this secret resource. You must create this secret resource in the same namespace as Prometheus.
scalardbCluster.tls.certChainSecretstring""Name of the Secret containing the certificate chain file used for TLS communication.
scalardbCluster.tls.certManager.dnsNameslist["localhost"]Subject Alternative Name (SAN) of a certificate.
scalardbCluster.tls.certManager.durationstring"8760h0m0s"Duration of a certificate.
scalardbCluster.tls.certManager.enabledboolfalseUse cert-manager to manage private key and certificate files.
scalardbCluster.tls.certManager.issuerRefobject{}Issuer references of cert-manager.
scalardbCluster.tls.certManager.privateKeyobject{"algorithm":"ECDSA","encoding":"PKCS1","size":256}Configuration of a private key.
scalardbCluster.tls.certManager.renewBeforestring"360h0m0s"How long before expiry a certificate should be renewed.
scalardbCluster.tls.certManager.selfSignedobject{"caRootCert":{"duration":"8760h0m0s","renewBefore":"360h0m0s"},"enabled":false}Configuration of a certificate for self-signed CA.
scalardbCluster.tls.certManager.selfSigned.caRootCert.durationstring"8760h0m0s"Duration of a self-signed CA certificate.
scalardbCluster.tls.certManager.selfSigned.caRootCert.renewBeforestring"360h0m0s"How long before expiry a self-signed CA certificate should be renewed.
scalardbCluster.tls.certManager.selfSigned.enabledboolfalseUse self-signed CA.
scalardbCluster.tls.certManager.usageslist["server auth","key encipherment","signing"]List of key usages.
scalardbCluster.tls.enabledboolfalseEnable TLS. You need to enable TLS when you use wire encryption feature of ScalarDB Cluster.
scalardbCluster.tls.overrideAuthoritystring""The custom authority for TLS communication. This doesn't change what host is actually connected. This is intended for testing, but may safely be used outside of tests as an alternative to DNS overrides. For example, you can specify the hostname presented in the certificate chain file that you set by using scalardbCluster.tls.certChainSecret. This chart uses this value for startupProbe and livenessProbe.
scalardbCluster.tls.privateKeySecretstring""Name of the Secret containing the private key file used for TLS communication.
scalardbCluster.tolerationslist[]Tolerations are applied to pods, and allow (but do not require) the pods to schedule onto nodes with matching taints.

Deploy scalardb-cluster with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has scalardb-cluster 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 chartscalardb-cluster is pinned at v1.11.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