This commit is contained in:
2020-12-19 10:11:20 +11:00
parent 2b2d5d8887
commit 7327d3f2df
7 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -9,4 +9,4 @@ stats:
enabled: true
nodeSelector:
ip: 192.168.1.2
gateway: "true"
+2
View File
@@ -31,3 +31,5 @@ ingress:
erviceAccount:
enable: false
replicaCount: 3
+3 -3
View File
@@ -16,7 +16,7 @@ spec:
name: pihole
spec:
nodeSelector:
ip: 192.168.1.2
gateway: "true"
containers:
- name: pihole
image: pihole/pihole:latest
@@ -80,8 +80,8 @@ metadata:
name: pihole-dns
spec:
type: NodePort
externalIPs:
- 192.168.1.2
# externalIPs:
# - 192.168.1.2
selector:
app: pihole
externalTrafficPolicy: Local
+2 -2
View File
@@ -11,8 +11,8 @@ persistence:
volumePermissions:
enabled: true
securityContext:
fsGroup: 0
runAsUser: 0
fsGroup: 1000
runAsUser: 1000
service:
type: NodePort
nodePort: 32222
+15
View File
@@ -82,3 +82,18 @@ spec:
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: prometheus-nfs
spec:
capacity:
storage: 100Gi
accessModes:
- ReadWriteMany
nfs:
server: 192.168.1.4
path: "/prometheus-data"
+2 -2
View File
@@ -21,7 +21,7 @@ prometheus:
prometheusSpec:
nodeSelector:
ip: 192.168.1.2
retentionSize: 50GiB
retentionSize: 100GiB
retention: 1y
image:
tag: v2.19.2
@@ -33,7 +33,7 @@ prometheus:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 50Gi
storage: 100Gi
resources:
requests:
cpu: 800m
+17
View File
@@ -0,0 +1,17 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: badger
labels:
app: badger
release: prometheus # this can make the service monitor be discovered by prometheus
spec:
namespaceSelector:
matchNames:
- apps
selector:
matchLabels:
app: badger
endpoints:
- port: metrics-port
interval: 30s