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:
Jared Bischof
2016-12-29 16:34:27 -06:00
committed by GitHub
parent e2b16a577c
commit a5ebaa54ff
+1
View File
@@ -100,6 +100,7 @@ metadata:
spec:
selector:
name: busybox
clusterIP: None
ports:
- name: foo # Actually, no port is needed.
port: 1234