cortex

by StrangeBee

Helm chartv1.3.0App 4.2.0-1AGPL-3.0Verified publisher

Cortex official Helm Chart

About this chart

cortex

Cortex official Helm Chart

Description

Cortex official Helm Chart

Please refer to StrangeBee's official documentation page for installation instructions and configuration.

Homepage: https://strangebee.com/cortex/

Maintainers

NameEmailUrl
StrangeBeehttps://strangebee.com/

Source Code

Requirements

Kubernetes: >= 1.23.0-0

RepositoryNameVersion
oci://registry-1.docker.io/bitnamichartselasticsearch22.1.6

Values

KeyTypeDefaultDescription
cortex.affinityobject{}Affinity rules for pod assignment
cortex.annotationsobject{}Additional annotations to attach to Cortex resources
cortex.configFilestring"# Cortex configuration file\n# See https://docs.strangebee.com/cortex/installation-and-configuration/#configuration-guides\nanalyzer {\n urls: [\n \"https://catalogs.download.strangebee.com/latest/json/analyzers.json\",\n ]\n\n # Max analyzer jobs run concurrently (extra jobs queue)\n thread-pool-executor {\n fixed-pool-size = 20\n }\n}\n\nresponder {\n urls: [\n \"https://catalogs.download.strangebee.com/latest/json/responders.json\",\n ]\n\n # Max responder jobs run concurrently (extra jobs queue)\n thread-pool-executor {\n fixed-pool-size = 20\n }\n}\n\n# ElasticSearch\nsearch {\n # Set default value for the password\n password = \"\"\n # Override credentials (if these environment variables exist)\n user = ${?CORTEX_ELASTICSEARCH_USERNAME}\n password = ${?CORTEX_ELASTICSEARCH_PASSWORD}\n}\n\nplay.http.parser.maxDiskBuffer = 100MB\nplay.http.parser.maxMemoryBuffer = 100MB\n"Custom application.conf configuration file content for Cortex
cortex.dockerImageRegistryPrefixstring""Registry prefix prepended to every neuron (analyzer/responder) Docker image at runtime. Useful for pull-through caches (Harbor, ECR proxy, Artifactory) and air-gapped clusters. Example: "harbor.example.com/docker.io/"
cortex.extraCommandlist[]Extra command-line arguments for Cortex entrypoint
cortex.extraEnvlist[]Extra environment variables for Cortex container
cortex.httpSecretstring"ChangeThisSecretWithOneContainingAtLeast32Chars"HTTP secret for Cortex application (must be at least 32 characters)
cortex.image.pullPolicystring"IfNotPresent"Image pull policy
cortex.image.registrystring"docker.io"Docker registry for Cortex image
cortex.image.repositorystring"thehiveproject/cortex"Cortex image repository
cortex.image.tagstring""Cortex image tag (defaults to chart appVersion if not set)
cortex.index.hostnameslist[]List of ElasticSearch hostnames (auto-configured if ElasticSearch subchart is enabled and this is empty)
cortex.index.k8sSecretKeystring"elasticsearch-password"Key in the secret containing ElasticSearch password
cortex.index.k8sSecretNamestring""Name of existing Kubernetes secret containing ElasticSearch password
cortex.index.passwordstring""ElasticSearch password for index connection (should match ElasticSearch subchart credentials if enabled)
cortex.index.uristring""Full ElasticSearch/OpenSearch URI (e.g. http://host:9200). When set, takes precedence over hostnames.
cortex.index.usernamestring"elastic"ElasticSearch username for index connection
cortex.ingress.annotationsobject{}Ingress annotations
cortex.ingress.classNamestring""Ingress class name
cortex.ingress.enabledboolfalseEnable ingress resource creation
cortex.ingress.hostslist[{"host":"cortex.example","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Ingress hosts configuration
cortex.ingress.tlslist[]Ingress TLS configuration
cortex.initContainers.checkElasticsearch.enabledbooltrueAdd an init container waiting for ElasticSearch to answer when requested /_cluster/health route on port 9200
cortex.initContainers.checkElasticsearch.useHttpsboolfalseUse HTTPS for ElasticSearch readiness check
cortex.initContainers.image.pullPolicystring"IfNotPresent"Init container image pull policy
cortex.initContainers.image.registrystring"docker.io"Docker registry for init container image
cortex.initContainers.image.repositorystring"curlimages/curl"Init container image repository
cortex.initContainers.image.tagstring"8.17.0"Init container image tag
cortex.jobDirectorystring"/tmp/cortex-jobs"Directory in Cortex container used to communicate with running jobs (write inputs and read outputs)
cortex.jvmOptsstring"-Xms2g -Xmx2g -Xmn300m"JVM options for Cortex application
cortex.k8sJobs.imagePullSecretslist[]Names of existing image pull Secrets (in the Cortex namespace) attached to every neuron Job pod, to pull analyzer/responder images from private registries. Requires Cortex 4.2.0+. Example: ["regcred"]
cortex.k8sJobs.labelsobject{}Map of Kubernetes labels applied to every neuron Job/Pod (in addition to Cortex's built-in cortex-job-id, cortex-neuron-job, cortex-worker-id). Useful for ArgoCD ownership, cost allocation, and policy selectors. Example: {"app.kubernetes.io/instance": "cortex", "app.kubernetes.io/part-of": "cortex"}
cortex.k8sJobs.securityContextobject{}Pod-level securityContext applied to every neuron Job pod. Each sub-field is optional. Make sure your analyzer/responder image accepts the user/group you set.
cortex.k8sSecretKeystring"http-secret"Key in the secret containing Cortex HTTP secret
cortex.k8sSecretNamestring""Name of existing Kubernetes secret containing Cortex HTTP secret
cortex.labelsobject{}Additional labels to attach to Cortex resources
cortex.livenessProbe.enabledbooltrueEnable liveness probe
cortex.livenessProbe.failureThresholdint3Number of failures before restarting container
cortex.livenessProbe.initialDelaySecondsint0Initial delay before liveness probe begins
cortex.livenessProbe.periodSecondsint10Frequency of liveness probe checks
cortex.livenessProbe.timeoutSecondsint1Timeout for each liveness probe attempt
cortex.logbackXmlstring""Custom logback.xml logging configuration file content for Cortex
cortex.nodeSelectorobject{}Node selector for pod assignment
cortex.persistentVolumeClaim.createbooltrueCreate a PVC or use an existing one (ReadWriteMany accessMode is MANDATORY for Cortex to share data with job pods)
cortex.persistentVolumeClaim.namestring""Name of the PVC to create/use (auto-generated if empty and create is true)
cortex.persistentVolumeClaim.sizestring"10Gi"Size of the persistent volume
cortex.persistentVolumeClaim.storageClassstring""Storage class for persistent volume (use "-" to disable dynamic provisioning, "" for default provisioner)
cortex.podAnnotationsobject{}Additional annotations to attach to Cortex pods
cortex.podLabelsobject{}Additional labels to attach to Cortex pods
cortex.podSecurityContextobject{}Pod-wide security context
cortex.readinessProbe.enabledbooltrueEnable readiness probe
cortex.readinessProbe.failureThresholdint3Number of failures before marking pod as not ready
cortex.readinessProbe.initialDelaySecondsint0Initial delay before readiness probe begins
cortex.readinessProbe.periodSecondsint10Frequency of readiness probe checks
cortex.readinessProbe.successThresholdint1Number of successes before marking pod as ready
cortex.readinessProbe.timeoutSecondsint1Timeout for each readiness probe attempt
cortex.replicasint1Number of Cortex replicas
cortex.resourcesobject{"limits":{"cpu":"3000m","ephemeral-storage":"4Gi","memory":"3584Mi"},"requests":{"cpu":"1000m","ephemeral-storage":"4Gi","memory":"2048Mi"}}Resource requests and limits for Cortex pods
cortex.securityContextobject{}Container-level security context
cortex.service.portint9001Cortex application port
cortex.service.typestring"ClusterIP"Kubernetes service type
cortex.serviceAccount.annotationsobject{}Annotations for the service account
cortex.serviceAccount.automountServiceAccountTokenbooltrueAutomatically mount Kubernetes API credentials
cortex.serviceAccount.createbooltrueCreate a service account for Cortex
cortex.serviceAccount.namestring""Name of the service account (generated if empty)
cortex.startupProbe.enabledbooltrueEnable startup probe (set failureThreshold high to prevent CrashLoops during schema migrations)
cortex.startupProbe.failureThresholdint36Number of failures before marking pod as failed
cortex.startupProbe.initialDelaySecondsint0Initial delay before startup probe begins
cortex.startupProbe.periodSecondsint5Frequency of startup probe checks
cortex.startupProbe.timeoutSecondsint1Timeout for each startup probe attempt
cortex.strategy.rollingUpdate.maxSurgeint1Maximum number of pods that can be created over the desired number of pods
cortex.strategy.rollingUpdate.maxUnavailableint0Maximum number of pods that can be unavailable during the update
cortex.strategy.typestring"RollingUpdate"Deployment strategy type
cortex.tolerationslist[]Tolerations for pod assignment
cortex.volumeMountslist[]Additional volume mounts for Cortex container
cortex.volumeslist[]Additional volumes for Cortex deployment
elasticsearch.coordinating.replicaCountint0Number of coordinating-dedicated node replicas (disabled by default)
elasticsearch.data.replicaCountint0Number of data-dedicated node replicas (disabled by default)
elasticsearch.enabledbooltrueEnable ElasticSearch dependency subchart deployment
elasticsearch.global.security.allowInsecureImagesbooltrueAllow the use of insecure images from bitnamilegacy repository
elasticsearch.image.registrystring"docker.io"ElasticSearch image registry (Cortex 4.x requires ElasticSearch 8.x - see https://docs.strangebee.com/cortex/installation-and-configuration/#software-requirements)
elasticsearch.image.repositorystring"bitnamilegacy/elasticsearch"ElasticSearch image repository
elasticsearch.image.tagstring"8.18.0-debian-12-r2"ElasticSearch image tag
elasticsearch.ingest.replicaCountint0Number of ingest-dedicated node replicas (disabled by default)
elasticsearch.master.extraEnvVarslist[{"name":"JVM_OPTS","value":"-Xms2g -Xmx2g -Xmn200m"}]Extra environment variables for ElasticSearch master nodes
elasticsearch.master.heapSizestring"2g"Heap size for ElasticSearch master nodes
elasticsearch.master.masterOnlyboolfalseDeploy master-only nodes or multipurpose nodes (master, data, coordinating, ingest)
elasticsearch.master.networkPolicy.enabledboolfalseEnable network policy for ElasticSearch master nodes
elasticsearch.master.pdb.createbooltrueCreate PodDisruptionBudget for ElasticSearch master nodes
elasticsearch.master.pdb.maxUnavailablestring"1"Maximum unavailable master nodes
elasticsearch.master.persistence.enabledbooltrueEnable persistent volume for ElasticSearch master nodes
elasticsearch.master.persistence.sizestring"10Gi"Size of ElasticSearch master node persistent volume
elasticsearch.master.persistence.storageClassstring""Storage class for ElasticSearch master node persistent volume
elasticsearch.master.replicaCountint1Number of master-eligible ElasticSearch replicas
elasticsearch.master.resourcesobject{"limits":{"cpu":"2000m","ephemeral-storage":"4Gi","memory":"3584Mi"},"requests":{"cpu":"1000m","ephemeral-storage":"4Gi","memory":"2048Mi"}}Resource requests and limits for ElasticSearch master nodes
elasticsearch.metrics.image.registrystring"docker.io"ElasticSearch metrics exporter image registry
elasticsearch.metrics.image.repositorystring"bitnamilegacy/elasticsearch-exporter"ElasticSearch metrics exporter image repository
elasticsearch.metrics.image.tagstring"1.9.0-debian-12-r16"ElasticSearch metrics exporter image tag
elasticsearch.security.elasticPasswordstring""ElasticSearch elastic user password
elasticsearch.security.enabledboolfalseEnable security features (requires TLS configuration)
elasticsearch.security.existingSecretstring""Name of existing secret with ElasticSearch password (expects .data.elasticsearch-password key)
elasticsearch.security.tlsobject{}

Deploy cortex with OpenTenant

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