mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 18:53:43 -04:00
Add A lookup for headless services (#451)
This commit is contained in:
committed by
Miek Gieben
parent
8faa8354b4
commit
56d3b47d11
@@ -91,6 +91,26 @@ spec:
|
||||
name: c-port
|
||||
protocol: UDP
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: de-d1
|
||||
namespace: test-1
|
||||
spec:
|
||||
replicas: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: app-d
|
||||
spec:
|
||||
containers:
|
||||
- name: app-d-c
|
||||
image: gcr.io/google_containers/pause-amd64:3.0
|
||||
ports:
|
||||
- containerPort: 1234
|
||||
name: c-port
|
||||
protocol: UDP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
@@ -149,3 +169,17 @@ spec:
|
||||
- name: c-port
|
||||
port: 1234
|
||||
protocol: UDP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: headless-svc
|
||||
namespace: test-1
|
||||
spec:
|
||||
selector:
|
||||
app: app-d
|
||||
clusterIP: None
|
||||
ports:
|
||||
- name: c-port
|
||||
port: 1234
|
||||
protocol: UDP
|
||||
|
||||
Reference in New Issue
Block a user