feat: move adguard to k8s
This commit is contained in:
parent
12b7ff44f0
commit
7beecb2609
3 changed files with 45 additions and 21 deletions
43
k8s/argo-apps/adguard.yaml
Normal file
43
k8s/argo-apps/adguard.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: adguard
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
name: ''
|
||||||
|
namespace: apps-fuku
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: fuku
|
||||||
|
syncPolicy:
|
||||||
|
automated: {}
|
||||||
|
sources:
|
||||||
|
- chart: adguard-home
|
||||||
|
repoURL: https://repo.helmforge.dev
|
||||||
|
targetRevision: 1.4.*
|
||||||
|
helm:
|
||||||
|
valuesObject:
|
||||||
|
ingress:
|
||||||
|
enabled: true
|
||||||
|
ingressClassName: traefik
|
||||||
|
hosts:
|
||||||
|
- host: dns.fuku
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
tls: []
|
||||||
|
persistence:
|
||||||
|
conf:
|
||||||
|
size: 512Mi
|
||||||
|
storageClass: "truenas-nfs-csi"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
work:
|
||||||
|
size: 5Gi
|
||||||
|
storageClass: "truenas-nfs-csi"
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
service:
|
||||||
|
dns:
|
||||||
|
type: LoadBalancer
|
||||||
|
|
@ -34,3 +34,4 @@ spec:
|
||||||
- https://rcourtman.github.io/Pulse
|
- https://rcourtman.github.io/Pulse
|
||||||
- ghcr.io/antoniolago/charts
|
- ghcr.io/antoniolago/charts
|
||||||
- https://helm.elastic.co
|
- https://helm.elastic.co
|
||||||
|
- https://repo.helmforge.dev
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ terraform {
|
||||||
}
|
}
|
||||||
|
|
||||||
provider "adguard" {
|
provider "adguard" {
|
||||||
host = "192.168.1.7"
|
host = "dns.fuku"
|
||||||
username = "admin"
|
username = "admin"
|
||||||
scheme = "http"
|
scheme = "http"
|
||||||
timeout = 5
|
timeout = 5
|
||||||
|
|
@ -55,21 +55,6 @@ resource "adguard_rewrite" "dd01" {
|
||||||
answer = "192.168.1.11"
|
answer = "192.168.1.11"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "adguard_rewrite" "elastic_1" {
|
|
||||||
domain = "elastic.fuku"
|
|
||||||
answer = "192.168.1.31"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "adguard_rewrite" "elastic_2" {
|
|
||||||
domain = "elastic.fuku"
|
|
||||||
answer = "192.168.1.32"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "adguard_rewrite" "elastic_3" {
|
|
||||||
domain = "elastic.fuku"
|
|
||||||
answer = "192.168.1.33"
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "adguard_rewrite" "agent1" {
|
resource "adguard_rewrite" "agent1" {
|
||||||
domain = "agent1.fuku"
|
domain = "agent1.fuku"
|
||||||
answer = "192.168.1.34"
|
answer = "192.168.1.34"
|
||||||
|
|
@ -89,8 +74,3 @@ resource "adguard_rewrite" "k3m3" {
|
||||||
domain = "k3m3.fuku"
|
domain = "k3m3.fuku"
|
||||||
answer = "192.168.1.43"
|
answer = "192.168.1.43"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "adguard_rewrite" "pulse" {
|
|
||||||
answer = "pulse.fukurokuju.dev"
|
|
||||||
domain = "192.168.1.12"
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue