Helm/Zabbix: Difference between revisions
Jump to navigation
Jump to search
| Line 101: | Line 101: | ||
kubectl delete ns zabbix-monitoring-system || true | kubectl delete ns zabbix-monitoring-system || true | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|- | |||
!scope='col'| Secret | |||
!scope='col'| Notes | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
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 | |||
</syntaxhighlight> | |||
|valign='top'| | |||
|- | |- | ||
!scope='col'| Install | !scope='col'| Install | ||
Revision as of 06:21, 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
|
|
| 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 | ||
|---|---|---|