Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Zookeeper Helm Chart #477

Merged
merged 13 commits into from
Jul 20, 2024
34 changes: 34 additions & 0 deletions ansible/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,19 @@ enable_kuberhealthy: "no"
kuberhealthy_namespace: "{{ kubez_namespace }}"
kuberhealthy_version: "104"

######################
# zookeeper Options
######################
# https://artifacthub.io/packages/helm/bitnami/zookeeper
enable_zookeeper: "no"
zookeeper_namespace: "{{ kubez_namespace }}"
zookeeper_replicas: 1
zookeeper_requests_cpu: 2
zookeeper_requests_memory: 4Gi
zookeeper_storage_size: 8Gi
zookeeper_storage_class: managed-nfs-storage
zookeeper_version: "11.4.9"

####################
# Chaos Mesh Options
####################
Expand Down Expand Up @@ -572,6 +585,8 @@ enable_charts:
enabled: "{{ enable_kuberhealthy | bool }}"
- name: loggie
enabled: "{{ enable_loggie | bool }}"
- name: zookeeper
enabled: "{{ enable_zookeeper | bool }}"

charts:
prometheus:
Expand Down Expand Up @@ -905,3 +920,22 @@ charts:
version: "{{ kuberhealthy_version }}"
chart_extra_vars: {}
chart_extra_flags: {}

zookeeper:
name: zookeeper
namespace: "{{ zookeeper_namespace }}"
repository:
name: zookeeper
url: https://charts.bitnami.com/bitnami
pixiuio marked this conversation as resolved.
Show resolved Hide resolved
chart:
path: "zookeeper/zookeeper"
version: "{{ zookeeper_version }}"
chart_extra_vars:
replicaCount: "{{ zookeeper_replicas }}"
persistence.enabled: "true"
persistence.size: "{{ zookeeper_storage_size }}"
persistence.storageClass: "{{ zookeeper_storage_class }}"
resources.requests.memory: "{{ zookeeper_requests_memory }}"
resources.requests.cpu: "{{ zookeeper_requests_cpu }}"
chart_extra_flags:
- create-namespace
17 changes: 17 additions & 0 deletions etc/kubez/globals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -450,3 +450,20 @@ s3:
#enable_kuberhealthy: "no"
#kuberhealthy_namespace: pixiu-system
#kuberhealthy_version: "100"

######################
# zookeeper Options
######################
# https://artifacthub.io/packages/helm/bitnami/zookeeper
#enable_zookeeper: "no"
#zookeeper_namespace: pixiu-system
# 集群数量需要是单数
#zookeeper_replica: 1
# 请求资源
#zookeeper_requests_cpu: 2
#zookeeper_requests_memory: 4Gi
# 持久化存储配置
#zookeeper_storage_size: 8Gi
#zookeeper_storage_class: managed-nfs-storage
# 版本配置
#zookeeper_version: 11.4.9
Loading