Helm/Zabbix: Difference between revisions
Jump to navigation
Jump to search
| Line 110: | Line 110: | ||
kubectl -n zabbix-monitoring-system create secret generic postgres \ | kubectl -n zabbix-monitoring-system create secret generic postgres \ | ||
--from-env-file=/dev/stdin --dry-run=client -o=yaml | kubectl apply -f - | --from-env-file=/dev/stdin --dry-run=client -o=yaml | kubectl apply -f - | ||
host= | host=zabbix-postgresql.zabbix-monitoring-system | ||
password=AbO330a$0FRv4XxY | password=AbO330a$0FRv4XxY | ||
dbname=shahed_zabbix_ops | dbname=shahed_zabbix_ops | ||
| Line 151: | Line 151: | ||
image: | image: | ||
repository: zabbix/zabbix-server-pgsql | repository: zabbix/zabbix-server-pgsql | ||
ingress: | |||
enabled: true | |||
annotations: | |||
kubernetes.io/ingress.class: nginx | |||
hosts: | |||
- host: zabbix.shahed.biz.ops | |||
paths: | |||
- path: / | |||
pathType: ImplementationSpecific | |||
YML | YML | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 06:48, 26 January 2026
helm repo add zabbix-community https://zabbix-community.github.io/helm-zabbix
helm repo update && helm repo list
kubectl config get-contexts
|
|||
| |||
Helm » Context
|
Helm » Context | |
|---|---|
export KUBECONFIG="${HOME}/.kube/aws-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/gcp-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/lke-kubeconfig.yaml"
export KUBECONFIG="${HOME}/.kube/config"
|
|
Helm » Install
|
Helm » Install | |
|---|---|
helm show values zabbix-community/zabbix --version=7.0.11|less
helm show values zabbix-community/zabbix --version=7.0.12|less
| |
export KUBECONFIG="${HOME}/.kube/shahed-ab-kubeconfig.yaml"
kubectl create ns zabbix-monitoring-system || true
|
kubectl get ns|grep zabbix-monitoring-system
kubectl delete ns zabbix-monitoring-system || true
|
| Secret | Notes |
cat <<ENV | \
kubectl -n zabbix-monitoring-system create secret generic postgres \
--from-env-file=/dev/stdin --dry-run=client -o=yaml | kubectl apply -f -
host=zabbix-postgresql.zabbix-monitoring-system
password=AbO330a$0FRv4XxY
dbname=shahed_zabbix_ops
user=shahed_zabbix_ops
port=5432
ENV
|
kubectl -n zabbix-monitoring-system get Secret postgres -o=yaml
kubectl -n zabbix-monitoring-system delete Secret postgres
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 16)"
|
| Install | Notes |
cat <<'YML' | \
helm -n=zabbix-monitoring-system upgrade \
-i zabbix zabbix-community/zabbix --version=7.0.12 -f -
---
nameOverride: zabbix
fullnameOverride: zabbix
zabbixImageTag: ubuntu-7.0.16
postgresAccess:
existingSecretName: postgres
zabbixServer:
enabled: true
zabbixServerHA:
enabled: false
dbCreateUpgradeJob:
image:
repository: ghcr.io/zabbix-community/zabbix-server-create-upgrade-db
replicaCount: 1
image:
repository: zabbix/zabbix-server-pgsql
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
hosts:
- host: zabbix.shahed.biz.ops
paths:
- path: /
pathType: ImplementationSpecific
YML
|
|
| Verify | |
helm -n=zabbix-monitoring-system status zabbix
helm -n=zabbix-monitoring-system get manifest zabbix
|
|
References
|
References | ||
|---|---|---|