Helm/Zabbix: Difference between revisions
Jump to navigation
Jump to search
| Line 106: | Line 106: | ||
|- | |- | ||
|valign='top'| | |valign='top'| | ||
<syntaxhighlight lang=' | <syntaxhighlight lang='ini'> | ||
cat <<ENV | \ | cat <<ENV | \ | ||
kubectl -n zabbix-monitoring-system create secret generic postgres \ | kubectl -n zabbix-monitoring-system create secret generic postgres \ | ||
Revision as of 06:26, 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=postgres.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 external-secrets/external-secrets --version=1.2.1 -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
YML
|
|
| Verify | |
helm -n=zabbix-monitoring-system status zabbix
helm -n=zabbix-monitoring-system get manifest zabbix
|
|
References
|
References | ||
|---|---|---|