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"
|
||||
# password: "${SECRET_DATABASE_REDIS_PASS}"
|
||||
|
||||
prometheus:
|
||||
serviceMonitor:
|
||||
create: true
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
rules:
|
||||
create: true
|
||||
labels:
|
||||
release: kube-prometheus-stack
|
||||
|
||||
env:
|
||||
AUTHENTIK_HOST: &host "auth.${SECRET_NEW_DOMAIN}"
|
||||
AUTHENTIK_HOST_BROWSER: *host
|
||||
|
|
|
@ -36,7 +36,7 @@ data:
|
|||
"type": "grafana",
|
||||
"id": "grafana",
|
||||
"name": "Grafana",
|
||||
"version": "9.4.7"
|
||||
"version": "9.5.3"
|
||||
},
|
||||
{
|
||||
"type": "datasource",
|
||||
|
@ -66,7 +66,7 @@ data:
|
|||
"annotations": {
|
||||
"list": [
|
||||
{
|
||||
"$$hashKey": "object:215",
|
||||
"$hashKey": "object:215",
|
||||
"builtIn": 1,
|
||||
"datasource": {
|
||||
"type": "datasource",
|
||||
|
@ -385,6 +385,7 @@ data:
|
|||
},
|
||||
"id": 19,
|
||||
"options": {
|
||||
"cellHeight": "sm",
|
||||
"footer": {
|
||||
"countRows": false,
|
||||
"fields": "",
|
||||
|
@ -402,7 +403,7 @@ data:
|
|||
}
|
||||
]
|
||||
},
|
||||
"pluginVersion": "9.4.7",
|
||||
"pluginVersion": "9.5.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
|
@ -746,17 +747,19 @@ data:
|
|||
"showThresholdMarkers": true,
|
||||
"text": {}
|
||||
},
|
||||
"pluginVersion": "9.4.7",
|
||||
"pluginVersion": "9.5.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_VICTORIA}"
|
||||
},
|
||||
"editorMode": "code",
|
||||
"expr": "pve_cpu_usage_ratio{instance=\"$instance\"} / pve_cpu_usage_limit and on(id) pve_node_info",
|
||||
"format": "time_series",
|
||||
"format": "table",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "",
|
||||
"range": true,
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
|
@ -825,7 +828,7 @@ data:
|
|||
},
|
||||
"textMode": "value_and_name"
|
||||
},
|
||||
"pluginVersion": "9.4.7",
|
||||
"pluginVersion": "9.5.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
|
@ -1039,17 +1042,19 @@ data:
|
|||
"showThresholdMarkers": true,
|
||||
"text": {}
|
||||
},
|
||||
"pluginVersion": "9.4.7",
|
||||
"pluginVersion": "9.5.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "${DS_VICTORIA}"
|
||||
},
|
||||
"editorMode": "code",
|
||||
"expr": "pve_memory_usage_bytes{instance=\"$instance\"} / pve_memory_size_bytes and on(id) pve_node_info",
|
||||
"format": "time_series",
|
||||
"format": "table",
|
||||
"intervalFactor": 1,
|
||||
"legendFormat": "",
|
||||
"range": true,
|
||||
"refId": "A"
|
||||
}
|
||||
],
|
||||
|
@ -1146,7 +1151,7 @@ data:
|
|||
},
|
||||
"textMode": "value_and_name"
|
||||
},
|
||||
"pluginVersion": "9.4.7",
|
||||
"pluginVersion": "9.5.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
|
@ -1483,7 +1488,7 @@ data:
|
|||
"showThresholdMarkers": true,
|
||||
"text": {}
|
||||
},
|
||||
"pluginVersion": "9.4.7",
|
||||
"pluginVersion": "9.5.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
|
@ -1557,9 +1562,10 @@ data:
|
|||
"showUnfilled": false,
|
||||
"text": {
|
||||
"titleSize": 20
|
||||
}
|
||||
},
|
||||
"valueMode": "color"
|
||||
},
|
||||
"pluginVersion": "9.4.7",
|
||||
"pluginVersion": "9.5.3",
|
||||
"targets": [
|
||||
{
|
||||
"datasource": {
|
||||
|
@ -2010,6 +2016,6 @@ data:
|
|||
"timezone": "",
|
||||
"title": "Proxmox VE",
|
||||
"uid": "Dp7Cd57Zza",
|
||||
"version": 2,
|
||||
"version": 1,
|
||||
"weekStart": ""
|
||||
}
|
|
@ -4,56 +4,54 @@ metadata:
|
|||
name: proxmoxve-configmap
|
||||
namespace: monitoring
|
||||
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:
|
||||
kms: []
|
||||
gcp_kms: []
|
||||
azure_kv: []
|
||||
hc_vault: []
|
||||
age: []
|
||||
lastmodified: "2023-05-11T15:59:29Z"
|
||||
mac: ENC[AES256_GCM,data:8sVPIIQOdp30rvkuHErg1ionxjQnOWVCcHAK+e7u4T0tYfB95oYV+Pe2AVFyEuPrAPnAeAVGrIPGjJWvkmoAiP0e5uYXi3GKRdEtoB+10ai2nzOtlQM3cRpdd+KqkP0O33YxRix5y8ZxOn9nen4gtdkEmy/8Et9a1mxc8BWpv78=,iv:Ja3u4ASHnDtsvy6YKYJgykQfaR7FwWr1T2EmRBnBpyw=,tag:sn4gm4I8eBxSe+hGGJ9enw==,type:str]
|
||||
lastmodified: "2023-08-06T00:43:19Z"
|
||||
mac: ENC[AES256_GCM,data:zMBKVc4Xp4IMfZilziPaJncnBzpNyqS/SfHa+QqJiITPYiIwH82AjULJBYz213s+GQJ370tgez2FVZrDcKcsoDDplj/jKPaDX5kVPBmJi5Q0N2OnlKrDW0y/E5eXIFbUxLss8ecDvBcWl7FF5cXTLV6ktLwxQBm81jB3DRNaZvQ=,iv:SiXOBvzTFxkGB1WPabJe7jzULPfKnLOQXUgfzjTDGP4=,tag:O5jKhU7xWySwjho0U+vseA==,type:str]
|
||||
pgp:
|
||||
- created_at: "2023-06-19T18:35:56Z"
|
||||
- created_at: "2023-08-06T00:43:19Z"
|
||||
enc: |
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
hQIMAzKleRwoSoixAQ//dYOk/xUMs4kRObeW5Cmw8X1h/yF1ZiCRsFXKgqN7452n
|
||||
LbFmJJvP5jDXgg5qNPmNT0LL2a4cP9l7fJVIVqfYM87LctKEl6yc7h1oS9JVRUt8
|
||||
trc2aqsG+6OCeXgomwH9lB8HRxDeUEXWDWK3hS1noKEvKTE8hXtMrJJA7xfosc3L
|
||||
caNLfVMvOiVSnxwFMniDKqZW+TupQDVTCCb5RxChx6o76TycdEfUnk8CkPTp7+1m
|
||||
UDaG1NYUVWot444QA0pcaNAny5GJX0e5NFCN5/MoaCjUMgIvIyjaJbDzUw1405b1
|
||||
NTpmjbRSPexmtrxPsJdXsfCEdkFmp+7YD2ifa/yCctXNmyx7wCJ8KUhMkldc6EXU
|
||||
qN0a+ppRPUA6e/r1MgdHjJq5U3TxN9Vw4UNwcfhUGf/VR2d7VWbheLVoYOW9nwyR
|
||||
6ru5NvGw0aUv0lVOpqnrAglY20p8RONqINNY9LMuIruaUoLD420IQaUf9cccTlhg
|
||||
wArXFPVmwoOsRpJI6JCYqWNNJaugFjx8/4TRbFf7c8QqcPNRYwq5tJQQpTMqr0Lw
|
||||
SzyP4ATpCKwndsLmjJA4tiGPACHbU2dHOaymqNZEoB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ev21skYl45z+KDPhof2gmuF2
|
||||
O8uC/TT36XVu3nPGLciTbPL3nB29adQi03nCHqWG2fs07AHSYP8ixArrHYRsSo0=
|
||||
=2ius
|
||||
-----END PGP MESSAGE-----
|
||||
fp: 2CC2B3631D5C3393901335DB68F95C5D753EE1E5
|
||||
- created_at: "2023-06-19T18:35:56Z"
|
||||
- created_at: "2023-08-06T00:43:19Z"
|
||||
enc: |
|
||||
-----BEGIN PGP MESSAGE-----
|
||||
|
||||
hQIMAy5t8IMoPu4VARAAhgGzGph4IUKSVL3edGiTlcDGr642cKnnk2NNazBVdBe0
|
||||
tjPYnwRY/P6dfTHII8KceP4W5T4cVe1DIEI2GAyyotUhQMYIDE6SGmcg03Lgd42h
|
||||
0tJZnmppKZnceIrMXyYHtR7KDM6N0Xz6mdlm5vAULEH27/Njm1OiOsJaouEiClix
|
||||
cZadDyCWaXKDbdTFVUOXZDPqB61ZVE+qtGzwgUIz09iViMYStQuDUhZVwQqqTUvV
|
||||
rMxmL5Mys6BD7JnsRtpqCJgz/dmVGToQhgYKKPK0ATVRksT5oPgzgwt7Y9OpfY5B
|
||||
APMdwEtWYWTpMivFcFADKXjzGd7uk+r6ObRMkCq4iU6ShoZ5YxxpY8BuCp5e8RdC
|
||||
woMJPUg+X4vy4m7ZSPcFOFkFgoGDYDKm32f474zi0aSughqpwSTBK7BSYvHhIK35
|
||||
nxIY/7F9Crw7b+6w3+lv33MjfD6ut2+7VkKfehv9Ms5ZBzUB1vFp1Jw5JMjbwmUl
|
||||
LJpqxHx+f05h08xpSidOdtx9ntDUxhaXn3v7xx7dlzlmhFx0dZQV4cAQTqzf42FZ
|
||||
hax/+GvCXcmi9w0Afw8oyi38hR2G0r8NKQm8OzMkHIERXdWNCr52p4EoaVzqAWi+
|
||||
YqcVJgLy499+ebbfdf3qFMk9LCD0ewigibTuvtq9GNVhkUeTBI4FuXJM+9Dtg3jU
|
||||
aAEJAhAvP/jo7B/0kuhnT/FS/s3/0Mte+QbyI7nZ97z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MESSAGE-----
|
||||
fp: 687802D4DFD8AA82EA55666CF7DADAC782D7663D
|
||||
encrypted_regex: ^(data|stringData)$
|
||||
|
|
|
@ -19,3 +19,12 @@ spec:
|
|||
- "192.168.87.29"
|
||||
module:
|
||||
- default
|
||||
- port: http
|
||||
interval: 2m
|
||||
scrapeTimeout: 1m
|
||||
path: /pve
|
||||
params:
|
||||
target:
|
||||
- "192.168.87.20"
|
||||
module:
|
||||
- default
|
|
@ -2,12 +2,16 @@
|
|||
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:\
|
||||
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
|
||||
sudo systemctl stop k3s
|
||||
sudo rm -rf /etc/rancher/k3s
|
||||
|
@ -19,7 +23,6 @@ sudo chown $USER ~/.kube/config
|
|||
sudo chmod 600 ~/.kube/config
|
||||
```
|
||||
|
||||
|
||||
## Finishing Service Setup
|
||||
|
||||
### SSO (Authentik)
|
||||
|
|
|
@ -17,8 +17,8 @@ TODO:
|
|||
- [ ] uptime-kuma
|
||||
- [x] gotify
|
||||
- [ ] Services to monitor
|
||||
- [ ] Authentik
|
||||
- [ ] r720xd proxmox
|
||||
- [x] Authentik
|
||||
- [x] r720xd proxmox
|
||||
- [x] *arr
|
||||
- [ ] nextcloud
|
||||
- [ ] onlyoffice
|
||||
|
|
Loading…
Reference in New Issue