chore: Add authentik ServiceMonitor and dashboard, fix proxmox dashboard, monitor hpwork
This commit is contained in:
parent
4216062eaa
commit
3de5205eec
File diff suppressed because it is too large
Load Diff
|
@ -46,6 +46,16 @@ spec:
|
||||||
host: "redis-master.database"
|
host: "redis-master.database"
|
||||||
# password: "${SECRET_DATABASE_REDIS_PASS}"
|
# password: "${SECRET_DATABASE_REDIS_PASS}"
|
||||||
|
|
||||||
|
prometheus:
|
||||||
|
serviceMonitor:
|
||||||
|
create: true
|
||||||
|
labels:
|
||||||
|
release: kube-prometheus-stack
|
||||||
|
rules:
|
||||||
|
create: true
|
||||||
|
labels:
|
||||||
|
release: kube-prometheus-stack
|
||||||
|
|
||||||
env:
|
env:
|
||||||
AUTHENTIK_HOST: &host "auth.${SECRET_NEW_DOMAIN}"
|
AUTHENTIK_HOST: &host "auth.${SECRET_NEW_DOMAIN}"
|
||||||
AUTHENTIK_HOST_BROWSER: *host
|
AUTHENTIK_HOST_BROWSER: *host
|
||||||
|
|
|
@ -36,7 +36,7 @@ data:
|
||||||
"type": "grafana",
|
"type": "grafana",
|
||||||
"id": "grafana",
|
"id": "grafana",
|
||||||
"name": "Grafana",
|
"name": "Grafana",
|
||||||
"version": "9.4.7"
|
"version": "9.5.3"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "datasource",
|
"type": "datasource",
|
||||||
|
@ -66,7 +66,7 @@ data:
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"list": [
|
"list": [
|
||||||
{
|
{
|
||||||
"$$hashKey": "object:215",
|
"$hashKey": "object:215",
|
||||||
"builtIn": 1,
|
"builtIn": 1,
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "datasource",
|
"type": "datasource",
|
||||||
|
@ -385,6 +385,7 @@ data:
|
||||||
},
|
},
|
||||||
"id": 19,
|
"id": 19,
|
||||||
"options": {
|
"options": {
|
||||||
|
"cellHeight": "sm",
|
||||||
"footer": {
|
"footer": {
|
||||||
"countRows": false,
|
"countRows": false,
|
||||||
"fields": "",
|
"fields": "",
|
||||||
|
@ -402,7 +403,7 @@ data:
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.4.7",
|
"pluginVersion": "9.5.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
@ -746,17 +747,19 @@ data:
|
||||||
"showThresholdMarkers": true,
|
"showThresholdMarkers": true,
|
||||||
"text": {}
|
"text": {}
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.4.7",
|
"pluginVersion": "9.5.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "${DS_VICTORIA}"
|
"uid": "${DS_VICTORIA}"
|
||||||
},
|
},
|
||||||
|
"editorMode": "code",
|
||||||
"expr": "pve_cpu_usage_ratio{instance=\"$instance\"} / pve_cpu_usage_limit and on(id) pve_node_info",
|
"expr": "pve_cpu_usage_ratio{instance=\"$instance\"} / pve_cpu_usage_limit and on(id) pve_node_info",
|
||||||
"format": "time_series",
|
"format": "table",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "",
|
"legendFormat": "",
|
||||||
|
"range": true,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -825,7 +828,7 @@ data:
|
||||||
},
|
},
|
||||||
"textMode": "value_and_name"
|
"textMode": "value_and_name"
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.4.7",
|
"pluginVersion": "9.5.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
@ -1039,17 +1042,19 @@ data:
|
||||||
"showThresholdMarkers": true,
|
"showThresholdMarkers": true,
|
||||||
"text": {}
|
"text": {}
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.4.7",
|
"pluginVersion": "9.5.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
"type": "prometheus",
|
"type": "prometheus",
|
||||||
"uid": "${DS_VICTORIA}"
|
"uid": "${DS_VICTORIA}"
|
||||||
},
|
},
|
||||||
|
"editorMode": "code",
|
||||||
"expr": "pve_memory_usage_bytes{instance=\"$instance\"} / pve_memory_size_bytes and on(id) pve_node_info",
|
"expr": "pve_memory_usage_bytes{instance=\"$instance\"} / pve_memory_size_bytes and on(id) pve_node_info",
|
||||||
"format": "time_series",
|
"format": "table",
|
||||||
"intervalFactor": 1,
|
"intervalFactor": 1,
|
||||||
"legendFormat": "",
|
"legendFormat": "",
|
||||||
|
"range": true,
|
||||||
"refId": "A"
|
"refId": "A"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -1146,7 +1151,7 @@ data:
|
||||||
},
|
},
|
||||||
"textMode": "value_and_name"
|
"textMode": "value_and_name"
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.4.7",
|
"pluginVersion": "9.5.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
@ -1483,7 +1488,7 @@ data:
|
||||||
"showThresholdMarkers": true,
|
"showThresholdMarkers": true,
|
||||||
"text": {}
|
"text": {}
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.4.7",
|
"pluginVersion": "9.5.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
@ -1557,9 +1562,10 @@ data:
|
||||||
"showUnfilled": false,
|
"showUnfilled": false,
|
||||||
"text": {
|
"text": {
|
||||||
"titleSize": 20
|
"titleSize": 20
|
||||||
}
|
},
|
||||||
|
"valueMode": "color"
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.4.7",
|
"pluginVersion": "9.5.3",
|
||||||
"targets": [
|
"targets": [
|
||||||
{
|
{
|
||||||
"datasource": {
|
"datasource": {
|
||||||
|
@ -2010,6 +2016,6 @@ data:
|
||||||
"timezone": "",
|
"timezone": "",
|
||||||
"title": "Proxmox VE",
|
"title": "Proxmox VE",
|
||||||
"uid": "Dp7Cd57Zza",
|
"uid": "Dp7Cd57Zza",
|
||||||
"version": 2,
|
"version": 1,
|
||||||
"weekStart": ""
|
"weekStart": ""
|
||||||
}
|
}
|
|
@ -4,56 +4,54 @@ metadata:
|
||||||
name: proxmoxve-configmap
|
name: proxmoxve-configmap
|
||||||
namespace: monitoring
|
namespace: monitoring
|
||||||
data:
|
data:
|
||||||
pve.yml: ENC[AES256_GCM,data:tDanahhT5SLgUEtX/7T3kX891J6IscZuBDVeRsvdLn8zsCdPc97p5OwaFfShEGYftl8TJyd38k5GR+A97oKXYW8vxGHsjRQ86EykIVV++Is=,iv:/GHJg25DX4tIJXNXriar+x4pCaKS/0i0itTdleYBTCk=,tag:n+k91YXWSIiaKr0DPGW24Q==,type:str]
|
pve.yml: ENC[AES256_GCM,data:FHTW/zzQYBvL37om2hLTycAjGPHIwQTezh8kjDVm3z7F9BphetH9huchX0l5pbS3ebwHW7goeigem/6suvMjz+RQmCr/pSTftDCjCyn7ajw=,iv:9qXW9Fgc5yig21WX7azinaZiTKKYMqjJ/S1GBIeKY7E=,tag:hEd3C8ozcX1kfRM+jxCCoA==,type:str]
|
||||||
sops:
|
sops:
|
||||||
kms: []
|
kms: []
|
||||||
gcp_kms: []
|
gcp_kms: []
|
||||||
azure_kv: []
|
azure_kv: []
|
||||||
hc_vault: []
|
hc_vault: []
|
||||||
age: []
|
age: []
|
||||||
lastmodified: "2023-05-11T15:59:29Z"
|
lastmodified: "2023-08-06T00:43:19Z"
|
||||||
mac: ENC[AES256_GCM,data:8sVPIIQOdp30rvkuHErg1ionxjQnOWVCcHAK+e7u4T0tYfB95oYV+Pe2AVFyEuPrAPnAeAVGrIPGjJWvkmoAiP0e5uYXi3GKRdEtoB+10ai2nzOtlQM3cRpdd+KqkP0O33YxRix5y8ZxOn9nen4gtdkEmy/8Et9a1mxc8BWpv78=,iv:Ja3u4ASHnDtsvy6YKYJgykQfaR7FwWr1T2EmRBnBpyw=,tag:sn4gm4I8eBxSe+hGGJ9enw==,type:str]
|
mac: ENC[AES256_GCM,data:zMBKVc4Xp4IMfZilziPaJncnBzpNyqS/SfHa+QqJiITPYiIwH82AjULJBYz213s+GQJ370tgez2FVZrDcKcsoDDplj/jKPaDX5kVPBmJi5Q0N2OnlKrDW0y/E5eXIFbUxLss8ecDvBcWl7FF5cXTLV6ktLwxQBm81jB3DRNaZvQ=,iv:SiXOBvzTFxkGB1WPabJe7jzULPfKnLOQXUgfzjTDGP4=,tag:O5jKhU7xWySwjho0U+vseA==,type:str]
|
||||||
pgp:
|
pgp:
|
||||||
- created_at: "2023-06-19T18:35:56Z"
|
- created_at: "2023-08-06T00:43:19Z"
|
||||||
enc: |
|
enc: |
|
||||||
-----BEGIN PGP MESSAGE-----
|
-----BEGIN PGP MESSAGE-----
|
||||||
|
|
||||||
hQIMAzKleRwoSoixAQ//dYOk/xUMs4kRObeW5Cmw8X1h/yF1ZiCRsFXKgqN7452n
|
hQIMAzKleRwoSoixAQ//cca+ABl3tzwI9pn43SjfRbOPyjRN+qbJkv07+NpiHibY
|
||||||
LbFmJJvP5jDXgg5qNPmNT0LL2a4cP9l7fJVIVqfYM87LctKEl6yc7h1oS9JVRUt8
|
78qFJ9arkc6VZt/tX3YkzSIcHAjHME13XJ8kFjRHsLQoFt2mT0qUSlRroGuAOF65
|
||||||
trc2aqsG+6OCeXgomwH9lB8HRxDeUEXWDWK3hS1noKEvKTE8hXtMrJJA7xfosc3L
|
YN9iNfbCAe/ahWUCKVk8XRVD/sNng5Z8DrvAOy040BsjGmL0PJhRGBkBdtJeM+lT
|
||||||
caNLfVMvOiVSnxwFMniDKqZW+TupQDVTCCb5RxChx6o76TycdEfUnk8CkPTp7+1m
|
U9MRouPzMX8CAxCQolrryi6j+qXLlMZbpktc/zpJ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YuacFkG3q7qHLIM0iJ86BUev21skYl45z+KDPhof2gmuF2
|
||||||
ZzZ97f9kvR/VQWnseF0dYmoa4qHwDt+wT9XM8fJxI4wsGboSws6Ig1Sn/ZbF3fyd
|
O8uC/TT36XVu3nPGLciTbPL3nB29adQi03nCHqWG2fs07AHSYP8ixArrHYRsSo0=
|
||||||
wT8NtFiHQ6da
|
=2ius
|
||||||
=+VIK
|
|
||||||
-----END PGP MESSAGE-----
|
-----END PGP MESSAGE-----
|
||||||
fp: 2CC2B3631D5C3393901335DB68F95C5D753EE1E5
|
fp: 2CC2B3631D5C3393901335DB68F95C5D753EE1E5
|
||||||
- created_at: "2023-06-19T18:35:56Z"
|
- created_at: "2023-08-06T00:43:19Z"
|
||||||
enc: |
|
enc: |
|
||||||
-----BEGIN PGP MESSAGE-----
|
-----BEGIN PGP MESSAGE-----
|
||||||
|
|
||||||
hQIMAy5t8IMoPu4VARAAhgGzGph4IUKSVL3edGiTlcDGr642cKnnk2NNazBVdBe0
|
hQIMAy5t8IMoPu4VARAAgUoO8TG30YAKZmv9ZHecOAj2E7uNVoTUnlxDmjLrcrpu
|
||||||
tjPYnwRY/P6dfTHII8KceP4W5T4cVe1DIEI2GAyyotUhQMYIDE6SGmcg03Lgd42h
|
SvuYbxyABHKpPmzUv6uMStOgeFTn46DSL7u0mM5tAzzqzZZEmbYJhXp7GdpibQYb
|
||||||
0tJZnmppKZnceIrMXyYHtR7KDM6N0Xz6mdlm5vAULEH27/Njm1OiOsJaouEiClix
|
tJyhiYMAmrfSZ7v3hgNnJL5LeyxF9LihJlvbcGqhdzTLz7S8qq/CDKHbiU9f5xyD
|
||||||
cZadDyCWaXKDbdTFVUOXZDPqB61ZVE+qtGzwgUIz09iViMYStQuDUhZVwQqqTUvV
|
zbXw/DT+7b5VZaSmCJ77lWOvzJEGA5wxBEARjmNiuwKVbYtZCywLJJmLYtmvjejP
|
||||||
rMxmL5Mys6BD7JnsRtpqCJgz/dmVGToQhgYKKPK0ATVRksT5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||
55siLJFYGHXhn9ujGxeVIwGb9bC2IYtL6nMO44dTUfKiRDlC+8YEZIeTjjuz3VRD
|
6DLCO3wfsPaWAPm+pOIp4BFpbzlP8UJMwMRm+W6fHcf0VfnltocsqYfTF/SY7nU=
|
||||||
4AfQC36lIR2i
|
=KHkb
|
||||||
=nxmK
|
|
||||||
-----END PGP MESSAGE-----
|
-----END PGP MESSAGE-----
|
||||||
fp: 687802D4DFD8AA82EA55666CF7DADAC782D7663D
|
fp: 687802D4DFD8AA82EA55666CF7DADAC782D7663D
|
||||||
encrypted_regex: ^(data|stringData)$
|
encrypted_regex: ^(data|stringData)$
|
||||||
|
|
|
@ -18,4 +18,13 @@ spec:
|
||||||
target:
|
target:
|
||||||
- "192.168.87.29"
|
- "192.168.87.29"
|
||||||
module:
|
module:
|
||||||
|
- default
|
||||||
|
- port: http
|
||||||
|
interval: 2m
|
||||||
|
scrapeTimeout: 1m
|
||||||
|
path: /pve
|
||||||
|
params:
|
||||||
|
target:
|
||||||
|
- "192.168.87.20"
|
||||||
|
module:
|
||||||
- default
|
- default
|
|
@ -2,12 +2,16 @@
|
||||||
This document goes over the process of installing the GitOps files into a cluster
|
This document goes over the process of installing the GitOps files into a cluster
|
||||||
|
|
||||||
|
|
||||||
Install [calico](https://docs.tigera.io/calico/latest/getting-started/kubernetes/k3s/quickstart#install-calico)
|
Install [cilium](https://docs.cilium.io/en/stable/gettingstarted/k8s-install-default/#install-the-cilium-cli)
|
||||||
|
|
||||||
Now install the FluxCD stuff:\
|
Now install the FluxCD stuff:\
|
||||||
https://github.com/larivierec/home-cluster#installation
|
https://github.com/larivierec/home-cluster#installation
|
||||||
|
|
||||||
## Uninstalling and removing all k3s data in NixOS
|
1. Bootstrap FluxCD, this will likely fail
|
||||||
|
2. After it fails, create the sops secret in the `flux-system` namespace
|
||||||
|
3. Now trigger a reconcilation, or resume the fluxcd bootstrap
|
||||||
|
|
||||||
|
# Uninstalling and removing all k3s data in NixOS
|
||||||
```shell
|
```shell
|
||||||
sudo systemctl stop k3s
|
sudo systemctl stop k3s
|
||||||
sudo rm -rf /etc/rancher/k3s
|
sudo rm -rf /etc/rancher/k3s
|
||||||
|
@ -19,7 +23,6 @@ sudo chown $USER ~/.kube/config
|
||||||
sudo chmod 600 ~/.kube/config
|
sudo chmod 600 ~/.kube/config
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Finishing Service Setup
|
## Finishing Service Setup
|
||||||
|
|
||||||
### SSO (Authentik)
|
### SSO (Authentik)
|
||||||
|
|
|
@ -17,8 +17,8 @@ TODO:
|
||||||
- [ ] uptime-kuma
|
- [ ] uptime-kuma
|
||||||
- [x] gotify
|
- [x] gotify
|
||||||
- [ ] Services to monitor
|
- [ ] Services to monitor
|
||||||
- [ ] Authentik
|
- [x] Authentik
|
||||||
- [ ] r720xd proxmox
|
- [x] r720xd proxmox
|
||||||
- [x] *arr
|
- [x] *arr
|
||||||
- [ ] nextcloud
|
- [ ] nextcloud
|
||||||
- [ ] onlyoffice
|
- [ ] onlyoffice
|
||||||
|
|
Loading…
Reference in New Issue