Headless service spec missing attribute
The headless service spec example requires the attribute clusterIP: None. Without this, the service that is created is not headless and the two example pods will not be able to nslookup one another.
This commit is contained in:
@@ -100,6 +100,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
name: busybox
|
name: busybox
|
||||||
|
clusterIP: None
|
||||||
ports:
|
ports:
|
||||||
- name: foo # Actually, no port is needed.
|
- name: foo # Actually, no port is needed.
|
||||||
port: 1234
|
port: 1234
|
||||||
|
|||||||
Reference in New Issue
Block a user