Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
10a70cd5
Verified
Commit
10a70cd5
authored
1 year ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
feat(dns): Add DNS metric collection
parent
c8403db1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
apps/k8s01/dns/dns.yaml
+31
-2
31 additions, 2 deletions
apps/k8s01/dns/dns.yaml
apps/k8s01/dns/kustomization.yaml
+1
-0
1 addition, 0 deletions
apps/k8s01/dns/kustomization.yaml
apps/k8s01/dns/servicemonitor.yaml
+14
-0
14 additions, 0 deletions
apps/k8s01/dns/servicemonitor.yaml
with
46 additions
and
2 deletions
apps/k8s01/dns/dns.yaml
+
31
−
2
View file @
10a70cd5
...
...
@@ -3,14 +3,15 @@ apiVersion: v1
kind
:
ConfigMap
metadata
:
name
:
blocky-config
namespace
:
dns
labels
:
app
:
resolver
data
:
config.yaml
:
|
ports:
dns: 53
tls: 853
https: 443
http:
400
0
http:
8
0
upstreams:
groups:
default:
...
...
@@ -65,10 +66,16 @@ spec:
ports
:
-
containerPort
:
53
protocol
:
TCP
name
:
dns53tcp
-
containerPort
:
53
protocol
:
UDP
name
:
dns53udp
-
containerPort
:
853
protocol
:
TCP
name
:
dot
-
containerPort
:
80
protocol
:
TCP
name
:
http
resources
:
requests
:
cpu
:
100m
...
...
@@ -110,6 +117,8 @@ apiVersion: v1
kind
:
Service
metadata
:
name
:
dns53-tcp
labels
:
app
:
resolver
annotations
:
metallb.universe.tf/allow-shared-ip
:
"
dns"
spec
:
...
...
@@ -126,6 +135,8 @@ apiVersion: v1
kind
:
Service
metadata
:
name
:
dns53-udp
labels
:
app
:
resolver
annotations
:
metallb.universe.tf/allow-shared-ip
:
"
dns"
spec
:
...
...
@@ -142,6 +153,8 @@ apiVersion: v1
kind
:
Service
metadata
:
name
:
dns-over-tls
labels
:
app
:
resolver
annotations
:
metallb.universe.tf/allow-shared-ip
:
"
dns"
spec
:
...
...
@@ -154,6 +167,22 @@ spec:
port
:
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
kind
:
PodDisruptionBudget
metadata
:
...
...
This diff is collapsed.
Click to expand it.
apps/k8s01/dns/kustomization.yaml
+
1
−
0
View file @
10a70cd5
...
...
@@ -6,5 +6,6 @@ resources:
-
certificate.yaml
-
dns.yaml
-
networkpolicy.yaml
-
servicemonitor.yaml
-
../../../shared/networkpolicies/allow-from-same-namespace.yaml
-
../../../shared/resourcequotas/default.yaml
This diff is collapsed.
Click to expand it.
apps/k8s01/dns/servicemonitor.yaml
0 → 100644
+
14
−
0
View file @
10a70cd5
---
apiVersion
:
monitoring.coreos.com/v1
kind
:
ServiceMonitor
metadata
:
name
:
resolver
labels
:
app
:
resolver
spec
:
selector
:
matchLabels
:
app
:
resolver
endpoints
:
-
port
:
http
path
:
/metrics
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment