mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #88412 from stafot/add_nodelocalcache_service
Add node-local-dns headless service
This commit is contained in:
commit
72a7f94bdd
@ -186,3 +186,24 @@ spec:
|
||||
items:
|
||||
- key: Corefile
|
||||
path: Corefile.base
|
||||
---
|
||||
# A headless service is a service with a service IP but instead of load-balancing it will return the IPs of our associated Pods.
|
||||
# We use this to expose metrics to Prometheus.
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
prometheus.io/port: "9253"
|
||||
prometheus.io/scrape: "true"
|
||||
labels:
|
||||
k8s-app: node-local-dns
|
||||
name: node-local-dns
|
||||
namespace: kube-system
|
||||
spec:
|
||||
clusterIP: None
|
||||
ports:
|
||||
- name: metrics
|
||||
port: 9253
|
||||
targetPort: 9253
|
||||
selector:
|
||||
k8s-app: node-local-dns
|
Loading…
Reference in New Issue
Block a user