zookeeper/variables.yml

48 lines
1016 B
YAML

---
# Name of this instance of the job
instance: zookeeper
# ZooKeeper settings
zookeeper:
# Version of ZooKeeper
version: 3.9.2
# Docker image to use
image: '[[ .docker.repo ]]zookeeper:[[ .zookeeper.version ]]-1'
# Number of instances to run (should be 3 or 5 for high availability)
count: 3
# Env vars to set in the task
env:
JVMFLAGS: "-Djava.net.preferIPv4Stack=true"
# Resource allocation
resources:
cpu: 100
memory: 512
# Vault settings
vault:
# ZooKeeper will use a PKI from vault to issue certificates
pki:
ou: ZooKeeper
# List of vault policies to attach to the task
policies:
- '[[ .instance ]][[ .consul.suffix ]]'
# Volumes for data persistence
volumes:
data:
source: '[[ .instance ]]-data'
type: csi
per_alloc: true
prometheus:
enabled: '[[ .prometheus.available ]]'
# URL (from inside the container POV) where prometheus metrics are available
metrics_url: http://127.0.0.1:7000/metrics