-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from a3888s/dev
Додано розгортання через Helm для моніторингу кластеру Kubernetes.
- Loading branch information
Showing
9 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
DOCKER_TAG=v1.0.0 | ||
DOCKER_TAG=v1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
flask==2.1.2 | ||
requests==2.28.1 | ||
requests==2.28.1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
resource "helm_release" "prometheus_stack" { | ||
name = "kube-prometheus-stack" # Назва релізу Helm | ||
repository = "https://prometheus-community.github.io/helm-charts" # Репозиторій Helm для Prometheus | ||
chart = "kube-prometheus-stack" # Назва чарту | ||
version = "45.15.0" # Версія чарту | ||
namespace = "monitoring" # Kubernetes namespace для розгортання | ||
create_namespace = true # Створення namespace, якщо його не існує | ||
|
||
timeout = 900 # Тайм-ауту для уникнення помилок перевищення часу | ||
|
||
values = [ | ||
<<EOF | ||
# Налаштування Grafana | ||
grafana: | ||
enabled: true | ||
adminPassword: "admin" # Пароль для входу в Grafana | ||
ingress: | ||
enabled: true # Увімкнення Ingress для Grafana | ||
annotations: | ||
kubernetes.io/ingress.class: nginx # Клас Ingress nginx | ||
hosts: | ||
- "grafana.a3888s.test-danit.com" # Хост для доступу до Grafana | ||
tls: [] # Якщо потрібен TLS, додайте конфігурацію | ||
# Налаштування Prometheus | ||
prometheus: | ||
ingress: | ||
enabled: true # Увімкнення Ingress для Prometheus | ||
annotations: | ||
kubernetes.io/ingress.class: nginx # Клас Ingress nginx | ||
hosts: | ||
- "prometheus.a3888s.test-danit.com" # Хост для доступу до Prometheus | ||
tls: [] # Якщо потрібен TLS, додайте конфігурацію | ||
# Налаштування Alertmanager | ||
alertmanager: | ||
ingress: | ||
enabled: true # Увімкнення Ingress для Alertmanager | ||
annotations: | ||
kubernetes.io/ingress.class: nginx # Клас Ingress nginx | ||
hosts: | ||
- "alertmanager.a3888s.test-danit.com" # Хост для доступу до Alertmanager | ||
tls: [] # Якщо потрібен TLS, додайте конфігурацію | ||
# Налаштування Node Exporter | ||
nodeExporter: | ||
enabled: true # Увімкнення Node Exporter для збору метрик вузлів | ||
EOF | ||
] | ||
} |