everest

by Solanica

Helm chartv1.13.0App 1.13.0Verified publisher

A cloud-native database platform

About this chart

OpenEverest

This helm chart deploys OpenEverest.

Useful links:

Usage

1. Add the Helm repository

helm repo add openeverest https://openeverest.github.io/helm-charts/
helm repo update

2. Install Everest

helm install everest-core openeverest/everest \
    --namespace everest-system \
    --create-namespace

Notes:

  • This command deploys the OpenEverest components in the everest-system namespace. Currently, we do not support specifying a different namespace for Everest.
  • Additionally, it also deploys a new namespace called everest for your databases and the database operators.
  • If you prefer to manage your database namespace separately, you may set dbNamespace.enabled=false.
  • You may override the name of the database namespace using the dbNamespace.namespaceOverride parameter.
  • By default, all database operators are installed in your database namespace. You may override this by specifying one or more of the following: [dbNamespace.pxc=false, dbNamespace.postgresql=false, dbNamespace.psmdb=false].
  • We currently do not support installation without the use of chart hooks. I.e, the use of --no-hooks is not supported during installation.

3. Retrieve the admin password

Once the installation is complete, you may retrieve the admin credentials using the following command:

kubectl get secret everest-accounts -n everest-system -o jsonpath='{.data.users\.yaml}' | base64 --decode  | yq '.admin.passwordHash'

You may open the OpenEverest UI by port-forwarding the service to your local machine:

kubectl port-forward svc/everest -n everest-system 8080:8080

Notes:

  • The default username to login to the OpenEverest UI is admin.
  • You may specify a different default admin password using server.initialAdminPassword parameter during installation.
  • The default admin password is stored in plain text. It is highly recommended to update the password using everestctl to ensure that the passwords are hashed.

4. Deploy additional database namespaces

After OpenEverest is successfully running, you may create additional database namespaces using the everest-db-namespace Helm chart. If you had set dbNamespaces.enabled=false in the previous step, you may deploy a database namespaces using the following command:

helm install everest \
    openeverest/everest-db-namespace \
    --create-namespace \
    --namespace everest

Notes:

  • By default, all database operators are installed in your database namespace. You may override this by specifying one or more of the following: [dbNamespace.pxc=false, dbNamespace.postgresql=false, dbNamespace.psmdb=false].
  • We currently do not support installation without the use of chart hooks. I.e, the use of --no-hooks is not supported during installation.

4.1 Deploying additional operators to an existing database namespace

If you have an existing database namespace and would like to deploy additional operators to it, you may do so using the following command:

helm upgrade everest \
    openeverest/everest-db-namespace \
    --namespace [NAMESPACE]
    --pxc=true \
    --postgresql=true

The above example assumes that the MongoDB operator is already installed in the database namespace and you would like to install the Percona XtraDB Cluster and PostgreSQL operators.

Notes:

  • Removing a database operator from a namespace is not supported. You may only add additional operators.

5. Uninstall

5.1 Uninstalling database namespaces

If you created any database namespaces (apart from the one installed by default), you must delete them first.

helm uninstall everest -n <your_db_namespace>
kubectl delete ns <your_db_namespace>

Notes:

  • This runs a chart hook that cleans up your database resources first. While it is not recommended, you may skip this step by specifying cleanupOnUninstall=false.

5.2 Uninstalling Everest

helm uninstall everest-core -n everest-system
kubectl delete ns everest-system

6. Upgrade

6.1 Upgrade CRDs

As of Helm v3, CRDs are not automatically updated during a Helm upgrade. You must manually upgrade the CRDs.

helm repo update
helm upgrade --install everest-crds \
    openeverest/everest-crds \
    --namespace everest-system \
    --take-ownership

Note: If you're using a version of Helm older than 3.17.0, the --take-ownership flag will not be available. This flag is required only when upgrading from Everest 1.8.0. Without it, you may encounter the following error:

invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm";
annotation validation error: missing key "meta.helm.sh/release-name": must be set to "everest-crds";
annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "everest-system"

If you must use a Helm version older than 3.17.0, you can manually simulate the behavior of --take-ownership by adding the required labels and annotations to the OpenEverest CRDs:

CRDS=(databaseclusters.everest.percona.com databaseengines.everest.percona.com databaseclusterbackups.everest.percona.com databaseclusterrestores.everest.percona.com backupstorages.everest.percona.com monitoringconfigs.everest.percona.com)
kubectl label crds "${CRDS[@]}" app.kubernetes.io/managed-by=Helm --overwrite
kubectl annotate crds "${CRDS[@]}" meta.helm.sh/release-name=everest-crds
kubectl annotate crds "${CRDS[@]}" meta.helm.sh/release-namespace=everest-system

This ensures the CRDs are correctly recognized as managed by Helm, avoiding validation issues during the upgrade.

6.2 Upgrade Helm Releases

Upgrade the Helm release for Everest (core components):

helm upgrade everest-core openeverest/everest --namespace everest-system --version $(VERSION)

Upgrade the Helm release for the database namespace (if applicable):

helm upgrade everest openeverest/everest-db-namespace --namespace [DB NAMESPACE] --version $(VERSION)

Notes:

  • :warning: When specifying values during an upgrade (i.e, using --set, --set-json, --values, etc.), Helm resets all the other values to the defaults built into the chart. To preserve the previously set values, you must use the --reuse-values flag. Alternatively, provide the full set of values, including any overrides applied during installation.
  • It is recommended to upgrade 1 minor release at a time, otherwise you may run into unexpected issues.
  • It is recommended to upgrade to the latest patch release first before upgrading to the next minor release.
  • To ensure that the upgrade happens safely, we run a pre-upgrade hook that runs a series of checks. This can be disabled by setting upgrade.preflightChecks=false. However, in doing so, a safe upgrade cannot be guaranteed.

Configuration

The following table shows the configurable parameters of the OpenEverest chart and their default values.

KeyTypeDefaultDescription
compatibility.openshiftboolfalseEnable OpenShift compatibility.
createMonitoringResourcesbooltrueIf set, creates resources for Kubernetes monitoring.
dataImporters.perconaPGOperatorobject{"enabled":true}Settings for the Percona PostgreSQL Operator data importer.
dataImporters.perconaPGOperator.enabledbooltrueIf set, installs the Percona PostgreSQL Operator data importer.
dataImporters.perconaPSMDBOperatorobject{"enabled":true}Settings for the Percona PSMDB Operator data importer.
dataImporters.perconaPSMDBOperator.enabledbooltrueIf set, installs the Percona PSMDB Operator data importer.
dataImporters.perconaPXCOperatorobject{"enabled":true}Settings for the Percona PXC Operator data importer.
dataImporters.perconaPXCOperator.enabledbooltrueIf set, installs the Percona PXC Operator data importer.
dbNamespace.enabledbooltrueIf set, deploy the database operators in everest namespace. The namespace may be overridden by setting dbNamespace.namespaceOverride.
dbNamespace.namespaceOverridestring"everest"If dbNamespace.enabled is true, deploy the database operators in this namespace.
hooksobject{"image":"percona/everest-helmtools:0.0.1","lbcCleanup":{},"pspCleanup":{},"upgradeChecks":{}}Configuration for Helm chart hooks.
hooks.imagestringDefault image to use for the Helm chart hooks job.
hooks.lbcCleanupobject{}Configuration for LoadBalancerConfig clean-up hook.
hooks.pspCleanupobject{}Configuration for PodSchedulingPolicy clean-up hook.
hooks.upgradeChecksobject{}Configuration for the upgrade checks hook.
ingress.annotationsobject{}Additional annotations for the ingress resource.
ingress.enabledboolfalseEnable ingress for Everest server
ingress.hostslist[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]List of hosts and their paths for the ingress resource.
ingress.ingressClassNamestring""Ingress class name. This is used to specify which ingress controller should handle this ingress.
ingress.tlslist[]Each entry in the list specifies a TLS certificate and the hosts it applies to.
namespaceOverridestring""Namespace override. Defaults to the value of .Release.Namespace.
olm.catalogSourceImagestring"ghcr.io/openeverest/openeverest-catalog-dev"Image to use for Everest CatalogSource.
olm.imagestring"percona/olm@sha256:13e8f4e919e753faa7da35a9064822381098bcd44acc284877bf0964ceecbfd5"Image to use for the OLM components.
olm.installbooltrueIf set, installs OLM in the provided namespace. Should be set to false if compatibility.openshift=true.
olm.namespacestring"everest-olm"Namespace where OLM is installed. Do no change unless you know what you are doing. DEPRECATED: Will be removed in a future release. Use olm.namespaceOverride instead.
olm.namespaceOverridestring"everest-olm"Namespace where OLM is installed. Do no change unless you know what you are doing.
olm.packageserver.tls.caCertstring""CA certificate for the PackageServer APIService. Overrides the tls.type setting.
olm.packageserver.tls.tlsCertstring""Client certificate for the PackageServer APIService. Overrides the tls.type setting.
olm.packageserver.tls.tlsKeystring""Client key for the PackageServer APIService. Overrides the tls.type setting.
olm.packageserver.tls.typestring"helm"Type of TLS certificates. Supported values are "helm" and "cert-manager". For production setup, it is recommended to use "cert-manager".
operator.enableLeaderElectionbooltrueEnable leader election for the operator.
operator.envlist[]Additional environment variables to pass to the operator deployment.
operator.healthProbeAddrstring":8081"Health probe address for the operator.
operator.imagestring"ghcr.io/openeverest/openeverest-operator-dev"Image to use for the Everest operator container.
operator.initbooltrueEnable initContainer migration
operator.metricsAddrstring"127.0.0.1:8080"Metrics address for the operator.
operator.resourcesobject{"limits":{"cpu":"500m","memory":"128Mi"},"requests":{"cpu":"5m","memory":"64Mi"}}Resources to allocate for the operator container.
operator.webhook.certsobject{"ca.crt":"","tls.crt":"","tls.key":""}Certificates to use for the webhook server. The values must be base64 encoded. If unset, uses self-signed certificates.
operator.webhook.preserveTLSCertsboolIf set to true, preserves existing TLS Certificate Secrets during upgrades. This setting is ignored if certificates are explicitly provided in operator.webhook.certs, in which case the specified certificates are used instead. This setting has no effect during installation.
pmmobject{"enabled":false,"nameOverride":"pmm"}PMM settings.
pmm.enabledboolfalseIf set, deploys PMM2 in the release namespace.
pmm3.enabledboolfalseIf set, deploys PMM3 in the release namespace.
pmm3.pmmobject{"nameOverride":"pmm3"}PMM configuration. All PMM chart values go under this key.
server.apiRequestsRateLimitint100Set the allowed number of requests per second.
server.envlist[]Additional environment variables to pass to the server deployment.
server.imagestring"ghcr.io/openeverest/openeverest-dev"Image to use for the server container.
server.initialAdminPasswordstring""The initial password configured for the admin user. If unset, a random password is generated. It is strongly recommended to reset the admin password after installation.
server.jwtKeystring""Key for signing JWT tokens. This needs to be an RSA private key. This is created during installation only. To update the key after installation, you need to manually update the everest-jwt Secret or use everestctl.
server.oidcobject{}OIDC configuration for Everest. These settings are applied during installation only. To change the settings after installation, you need to manually update the everest-settings ConfigMap.
server.rbacobject{"enabled":false,"policy":"g, admin, role:admin\n"}Settings for RBAC. These settings are applied during installation only. To change the settings

Deploy everest with OpenTenant

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