OpenTenant / Marketplace / groundhog2k / graylog
About this chart
Graylog
Changelog
see RELEASENOTES.md
A Helm chart for Graylog on Kubernetes
TL;DR
helm repo add groundhog2k https://groundhog2k.github.io/helm-charts/
helm install my-release groundhog2k/graylog
Introduction
This chart uses the original Graylog image from Docker Hub to deploy a stateful Graylog instance in a Kubernetes cluster.
Prerequisites
Kubernetes 1.12+
Helm 3.x
PV provisioner support in the underlying infrastructure
Hint
OpenSearch/Elasticsearch can be installed by using the respective helm charts and setting the hostname in settings.elastic.hosts
MongoDB can be referenced by installed using the subchart with mongodb.enabled or by pointing to another MongoDB installation. (see Database settings)
Installing the Chart
To install the chart with the release name my-release:
helm install my-release groundhog2k/graylog
Uninstalling the Chart
To uninstall/delete the my-release deployment:
helm uninstall my-release
Requirements Repository Name Version
@groundhog2k mongodb 0.6.8
Common parameters Key Type Default Description
fullnameOverride string ""Fully override the deployment name
nameOverride string ""Partially override the deployment name
Deployment parameters Key Type Default Description
image.pullPolicy string "IfNotPresent"Image pull policy
image.registry string "docker.io"Image registry
image.repository string "graylog/graylog"Image name
image.tag string ""Image tag
initImage.pullPolicy string "IfNotPresent"Init container image pull policy
initImage.registry string "docker.io"Image registry
initImage.repository string "maxmindinc/geoipupdate"Default init container image
initImage.tag string "latest"Init container image tag
imagePullSecrets list []Image pull secrets
startupProbe object see values.yamlStartup probe configuration
livenessProbe object see values.yamlLiveness probe configuration
readinessProbe object see values.yamlReadiness probe configuration
customStartupProbe object {}Custom startup probe (overwrites default startup probe configuration)
customLivenessProbe object {}Custom liveness probe (overwrites default liveness probe configuration)
customReadinessProbe object {}Custom readiness probe (overwrites default readiness probe configuration)
resources object {}Resource limits and requests
priorityClassName string ""Deployment priority class name
nodeSelector object {}Deployment node selector
customLabels object {}Additional labels for Deployment or StatefulSet
customAnnotations object {}Additional annotations for Deployment or StatefulSet
podAnnotations object {}Additional pod annotations
podLabels object {}Additional pod labels
podSecurityContext object see values.yamlPod security context
securityContext object see values.yamlContainer security context
env list []Additional container environmment variables
args list []Additional container command arguments
serviceAccount.annotations object {}Additional service account annotations
serviceAccount.create bool falseEnable service account creation
serviceAccount.name string ""Name of the service account
affinity object {}Pod affinity
tolerations list []Pod tolerations
topologySpreadConstraints object {}Topology spread constraints for pods
podManagementPolicy string OrderedReadyPod management policy
updateStrategyType string RollingUpdateUpdate strategy
replicaCount int 1Number of replicas (Not supported - Don't change in this chart version)
revisionHistoryLimit int nilMaximum number of revisions maintained in revision history
podDisruptionBudget object {}Pod disruption budget
podDisruptionBudget.minAvailable int nilMinimum number of pods that must be available after eviction
podDisruptionBudget.maxUnavailable int nilMaximum number of pods that can be unavailable after eviction
Service parameters Key Type Default Description
service.type string "ClusterIP"Service type
service.http int 80Graylog http service port
service.nodePort int nilThe http node port (only relevant for type LoadBalancer or NodePort)
service.clusterIP string nilThe cluster ip address (only relevant for type LoadBalancer or NodePort)
service.loadBalancerIP string nilThe load balancer ip address (only relevant for type LoadBalancer)
service.loadBalancerSourceRanges list []The list of IP CIDR ranges that are allowed to access the load balancer (only relevent for type LoadBalancer)
service.annotations object {}Additional service annotations
service.labels object {}Additional service labels
Extra service parameters
Section to define all additional UDP/TCP inputs for Graylog
Key Type Default Description
extraServices[].name string nilUnique name of the input service
extraServices[].type string nilService type (ClusterIP / NodePort / LoadBalancer)
extraServices[].protocol string nilProtocol type (TCP / UDP)
extraServices[].containerPort int nilContainer port
extraServices[].port int nilService port
extraServices[].nodePort int nilThe http node port (only relevant for type LoadBalancer or NodePort)
extraServices[].clusterIP string nilThe cluster ip address (only relevant for type LoadBalancer or NodePort)
extraServices[].loadBalancerIP string nilThe load balancer ip address (only relevant for type LoadBalancer)
extraServices[].loadBalancerSourceRanges list []The list of IP CIDR ranges that are allowed to access the load balancer (only relevant for type LoadBalancer)
extraServices[].annotations object {}Additional service annotations
extraServices[].labels object {}Additional service labels
Ingress parameters Key Type Default Description
ingress.enabled bool falseEnable ingress for Graylog service
ingress.className string nilOptional ingress class name
ingress.annotations object {}Additional annotations for ingress
ingress.labels object {}Additional ingress labels
ingress.hosts[].host string nilHostname for the ingress endpoint
ingress.hosts[].paths[] list nilPath routing for the ingress endpoint host
ingress.tls list []Ingress TLS parameters
HTTPRoute parameters Key Type Default Description
httpRoute.enabled bool falseEnable HTTPRoute for the Graylog service
httpRoute.annotations object {}Additional HTTPRoute annotations
httpRoute.labels object {}Additional HTTPRoute labels
httpRoute.parentRefs list []Gateway parent references (required when httpRoute is enabled and listenerSet is disabled)
httpRoute.hostnames list []Hostnames for the HTTPRoute
httpRoute.rules list see values.yamlHTTPRoute rules for the Graylog service
ListenerSet parameters Key Type Default Description
listenerSet.enabled bool falseEnable ListenerSet for Gateway API
listenerSet.annotations object {}Additional ListenerSet annotations
listenerSet.labels object {}Additional ListenerSet labels
listenerSet.parentRef object {}Gateway parent reference (required)
listenerSet.listeners list []Listeners to attach to the parent Gateway
Network policies
Allows to define optional network policies for ingress and egress
The policyTypes will be automatically set
Key Type Default Description
networkPolicy.ingress object {}Ingress network policies
networkPolicy.egress object {}Egress network policies
Database settings Key Type Default Description
externalDatabase.host string nilExternal MongoDB database host
externalDatabase.name string "graylog"External database name
externalDatabase.user string nilExternal database user name
externalDatabase.password string nilExternal database user password
mongodb.enabled bool falseEnable MongoDB deployment (will disable external database settings)
mongodb.settings.rootUsername string "admin"The root username
mongodb.settings.rootPassword string ""The root user password
mongodb.userDatabase object {}Optional MongoDB user database
mongodb.userDatabase.name string nilName of the user database
mongodb.userDatabase.user string nilUser name with full access to user database
mongodb.userDatabase.password string nilPassword of created user
mongodb.storage object see values.yamlMongoDB storage settings
MaxMind GeoIP2 database Key Type Default Description
initGeoIPDatabase.enabled bool falseEnable GeoIP database download
initGeoIPDatabase.accountId string ""MaxMind UserId / AccountId
initGeoIPDatabase.licenseKey string ""MaxMind license key
initGeoIPDatabase.editionId string "GeoLite2-City"Default database edition id - see MaxMind page
initGeoIPDatabase.host string ""The MaxMind download host (not necessary to change that - default updates.maxmind.com)
initGeoIPDatabase.proxy string ""A valid proxy if internet access is running through a proxy
initGeoIPDatabase.proxyUserPassword string ""Proxy username and password in format "username:password"
Storage parameters Key Type Default Description
storage.accessModes[0] string "ReadWriteOnce"Storage access mode
storage.persistentVolumeClaimName string nilPVC name when existing storage volume should be used
storage.volumeName string "graylog-volume"Internal volume name
storage.requestedSize string nilSize for new PVC, when no existing PVC is used
storage.className string nilStorage class name
storage.annotations object {}Additional storage annotations
storage.labels object {}Additional storage labels
Graylog parameters Key Type Default Description
settings.http.externalUri string http://127.0.0.1:9000/External URI for Graylog
settings.http.publishUri string nilGraylog publish URI
settings.clusterName string singlenode-clusterCluster name
settings.javaOpts string nilAdditional JVM options for Graylog
settings.passwordSecret string somepasswordpepperSecret for password encryption and salting
settings.rootUser.username string "admin"Graylog root user name
settings.rootUser.sha2password string "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918"Graylog root user password SHA2 (default: "admin")
settings.rootUser.email string ""Graylog root user email address
settings.rootUser.timezone string "UTC"Graylog root user timezone
settings.journal.maxAge string "12h"Graylog max. journal age
settings.journal.maxSize string "5gb"Graylog max. journal size
settings.elastic.hosts string "http://127.0.0.1:9200"Comma separated list of Elasticsearch hosts (only used when elasticsearch.enabled is false)
settings.elastic.indexPrefix string "graylog"Elasticsearch index prefix
settings.smtp.enabled bool falseEnable/Disable SMTP
settings.smtp.host string "mail.example.com"SMTP host name
settings.smtp.port int 587SMTP port
settings.smtp.useAuth bool trueUse SMTP authentication
settings.smtp.useTls bool trueUse SMTP with STARTTLS
settings.smtp.useSsl bool falseEnable SMTP over SSL (SMTPS)
settings.smtp.username string "[email protected] "SMTP username
settings.smtp.password string "secret"SMTP password
settings.smtp.emailFrom string "[email protected] "Mail from address
settings.smtp.subjectPrefix string "[graylog]"Mail subject prefix
Further Graylog parameter can be set via environment variables (see Deployment parameter: env:)
Metrics support parameters Key Type Default Description
metrics.enabled bool falseEnable metrics support
metrics.service.type string "ClusterIP"Service type (not available when haMode is enabled)
metrics.service.servicePort int 9833Redis metrics exporter service port
metrics.service.containerPort int 9833Redis metrics exporter conta
Deploy graylog with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has graylog 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.
Pick a server Connect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.Place the chart graylog is pinned at v0.13.14 in opentenant.yaml. Drag more apps from the marketplace onto a rack.Apply Save 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 Copy