Skip to content
Snippets Groups Projects
Verified Commit 10a70cd5 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(dns): Add DNS metric collection

parent c8403db1
No related branches found
No related tags found
No related merge requests found
...@@ -3,14 +3,15 @@ apiVersion: v1 ...@@ -3,14 +3,15 @@ apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: blocky-config name: blocky-config
namespace: dns labels:
app: resolver
data: data:
config.yaml: | config.yaml: |
ports: ports:
dns: 53 dns: 53
tls: 853 tls: 853
https: 443 https: 443
http: 4000 http: 80
upstreams: upstreams:
groups: groups:
default: default:
...@@ -65,10 +66,16 @@ spec: ...@@ -65,10 +66,16 @@ spec:
ports: ports:
- containerPort: 53 - containerPort: 53
protocol: TCP protocol: TCP
name: dns53tcp
- containerPort: 53 - containerPort: 53
protocol: UDP protocol: UDP
name: dns53udp
- containerPort: 853 - containerPort: 853
protocol: TCP protocol: TCP
name: dot
- containerPort: 80
protocol: TCP
name: http
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
...@@ -110,6 +117,8 @@ apiVersion: v1 ...@@ -110,6 +117,8 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: dns53-tcp name: dns53-tcp
labels:
app: resolver
annotations: annotations:
metallb.universe.tf/allow-shared-ip: "dns" metallb.universe.tf/allow-shared-ip: "dns"
spec: spec:
...@@ -126,6 +135,8 @@ apiVersion: v1 ...@@ -126,6 +135,8 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: dns53-udp name: dns53-udp
labels:
app: resolver
annotations: annotations:
metallb.universe.tf/allow-shared-ip: "dns" metallb.universe.tf/allow-shared-ip: "dns"
spec: spec:
...@@ -142,6 +153,8 @@ apiVersion: v1 ...@@ -142,6 +153,8 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: dns-over-tls name: dns-over-tls
labels:
app: resolver
annotations: annotations:
metallb.universe.tf/allow-shared-ip: "dns" metallb.universe.tf/allow-shared-ip: "dns"
spec: spec:
...@@ -154,6 +167,22 @@ spec: ...@@ -154,6 +167,22 @@ spec:
port: 853 port: 853
targetPort: 853 targetPort: 853
--- ---
apiVersion: v1
kind: Service
metadata:
name: dns-over-http
labels:
app: resolver
spec:
type: ClusterIP
selector:
app: resolver
ports:
- name: dns-over-http
protocol: TCP
port: 80
targetPort: 80
---
apiVersion: policy/v1 apiVersion: policy/v1
kind: PodDisruptionBudget kind: PodDisruptionBudget
metadata: metadata:
......
...@@ -6,5 +6,6 @@ resources: ...@@ -6,5 +6,6 @@ resources:
- certificate.yaml - certificate.yaml
- dns.yaml - dns.yaml
- networkpolicy.yaml - networkpolicy.yaml
- servicemonitor.yaml
- ../../../shared/networkpolicies/allow-from-same-namespace.yaml - ../../../shared/networkpolicies/allow-from-same-namespace.yaml
- ../../../shared/resourcequotas/default.yaml - ../../../shared/resourcequotas/default.yaml
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: resolver
labels:
app: resolver
spec:
selector:
matchLabels:
app: resolver
endpoints:
- port: http
path: /metrics
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment