-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deploy): enhance values and add monitoring (#445)
* feat(deploy): enhance values and add monitoring * feat(deploy): add app_env_type to match newest image * feat(deploy): add db-monitoring, enhance portals install
- Loading branch information
1 parent
5e25add
commit 4da4704
Showing
8 changed files
with
202 additions
and
4 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
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,23 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: cilium-agent | ||
namespace: cilium-system | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: cilium-agent | ||
podMetricsEndpoints: | ||
- port: prometheus | ||
--- | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: cilium-operator | ||
namespace: cilium-system | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: cilium-operator | ||
podMetricsEndpoints: | ||
- port: prometheus |
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,10 +1,18 @@ | ||
controller: | ||
config: | ||
use-proxy-protocol: true | ||
#proxy-real-ip-cidr: "173.245.48.0/20,103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,141.101.64.0/18,108.162.192.0/18,190.93.240.0/20,188.114.96.0/20,197.234.240.0/22,198.41.128.0/17,162.158.0.0/15,104.16.0.0/13,104.24.0.0/14,172.64.0.0/13,131.0.72.0/22,2400:cb00::/32,2606:4700::/32,2803:f800::/32,2405:b500::/32,2405:8100::/32,2a06:98c0::/29,2c0f:f248::/32" | ||
#proxy-real-ip-cidr: "10.0.0.8/32" | ||
#use-forwarded-headers: true | ||
#forwarded-for-header: "CF-Connecting-IP" | ||
replicaCount: 2 | ||
service: | ||
annotations: | ||
load-balancer.hetzner.cloud/location: fsn1 | ||
load-balancer.hetzner.cloud/use-private-ip: true | ||
load-balancer.hetzner.cloud/name: <YOUR_LB_NAME> | ||
load-balancer.hetzner.cloud/uses-proxyprotocol: true | ||
metrics: | ||
enabled: true | ||
serviceMonitor: | ||
enabled: true |
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,11 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: PodMonitor | ||
metadata: | ||
name: cnpg-controller-manager | ||
namespace: postgresql-system | ||
spec: | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: cloudnative-pg | ||
podMetricsEndpoints: | ||
- port: metrics |
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,100 @@ | ||
# see https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/values.yaml | ||
alertmanager: | ||
config: | ||
route: | ||
routes: | ||
- receiver: "null" | ||
matchers: | ||
- alertname =~ "InfoInhibitor|Watchdog" | ||
- receiver: telegram | ||
matchers: | ||
- severity =~ "critical|warning|info" | ||
receivers: | ||
- name: "null" | ||
- name: telegram | ||
telegram_configs: | ||
- bot_token: <YOUR_BOT_TOKEN> | ||
api_url: https://api.telegram.org | ||
chat_id: <YOUR_CHAT_ID> | ||
ingress: | ||
enabled: false | ||
ingressClassName: nginx | ||
hosts: | ||
- <YOUR_URL> | ||
annotations: | ||
cert-manager.io/cluster-issuer: "letsencrypt-staging" | ||
tls: | ||
- secretName: alertmanager-ingress-tls | ||
hosts: | ||
- <YOUR_URL> | ||
grafana: | ||
adminPassword: <YOUR_PASSWORD> | ||
ingress: | ||
enabled: true | ||
ingressClassName: nginx | ||
annotations: | ||
cert-manager.io/cluster-issuer: "letsencrypt-staging" | ||
hosts: | ||
- <YOUR_URL> | ||
tls: | ||
- secretName: grafana-ingress-tls | ||
hosts: | ||
- <YOUR_URL> | ||
kube-state-metrics: | ||
prometheus: | ||
monitor: | ||
enabled: true | ||
relabelings: | ||
- action: replace | ||
regex: (.*) | ||
replacement: $1 | ||
sourceLabels: | ||
- __meta_kubernetes_pod_node_name | ||
targetLabel: kubernetes_node | ||
nodeExporter: | ||
serviceMonitor: | ||
relabelings: | ||
- action: replace | ||
regex: (.*) | ||
replacement: $1 | ||
sourceLabels: | ||
- __meta_kubernetes_pod_node_name | ||
targetLabel: kubernetes_node | ||
prometheus-node-exporter: | ||
prometheus: | ||
monitor: | ||
enabled: true | ||
relabelings: | ||
- action: replace | ||
regex: (.*) | ||
replacement: $1 | ||
sourceLabels: | ||
- __meta_kubernetes_pod_node_name | ||
targetLabel: kubernetes_node | ||
kubeProxy: | ||
enabled: false # kube proxy not used because of proxy replacement by cilium | ||
prometheus: | ||
ingress: | ||
enabled: false | ||
ingressClassName: nginx | ||
annotations: | ||
cert-manager.io/cluster-issuer: "letsencrypt-staging" | ||
hosts: | ||
- <YOUR_URL> | ||
tls: | ||
- secretName: prometheus-ingress-tls | ||
hosts: | ||
- <YOUR_URL> | ||
prometheusSpec: | ||
retention: 14d | ||
storageSpec: | ||
volumeClaimTemplate: | ||
spec: | ||
accessModes: ["ReadWriteOnce"] | ||
resources: | ||
requests: | ||
storage: 50Gi | ||
ruleSelectorNilUsesHelmValues: false | ||
serviceMonitorSelectorNilUsesHelmValues: false | ||
podMonitorSelectorNilUsesHelmValues: false | ||
probeSelectorNilUsesHelmValues: false |
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