client and server must export both TCP and UDP DNS ports

This commit is contained in:
Mitchell Hashimoto 2018-09-11 19:09:45 -07:00
parent 64670ed470
commit 9ef4efc5c4
No known key found for this signature in database
GPG key ID: 744E147AA52F5B0A
4 changed files with 19 additions and 6 deletions

View file

@ -119,7 +119,11 @@ spec:
- containerPort: 8300 - containerPort: 8300
name: server name: server
- containerPort: 8600 - containerPort: 8600
name: dns name: dns-tcp
protocol: "TCP"
- containerPort: 8600
name: dns-udp
protocol: "UDP"
readinessProbe: readinessProbe:
# NOTE(mitchellh): when our HTTP status endpoints support the # NOTE(mitchellh): when our HTTP status endpoints support the
# proper status codes, we should switch to that. This is temporary. # proper status codes, we should switch to that. This is temporary.

View file

@ -14,11 +14,11 @@ spec:
- name: dns-tcp - name: dns-tcp
port: 53 port: 53
protocol: "TCP" protocol: "TCP"
targetPort: dns targetPort: dns-tcp
- name: dns-udp - name: dns-udp
port: 53 port: 53
protocol: "UDP" protocol: "UDP"
targetPort: dns targetPort: dns-udp
selector: selector:
app: {{ template "consul.name" . }} app: {{ template "consul.name" . }}
release: "{{ .Release.Name }}" release: "{{ .Release.Name }}"

View file

@ -46,9 +46,14 @@ spec:
- name: server - name: server
port: 8300 port: 8300
targetPort: 8300 targetPort: 8300
- name: dns - name: dns-tcp
protocol: "TCP"
port: 8600 port: 8600
targetPort: 8600 targetPort: dns-tcp
- name: dns-udp
protocol: "UDP"
port: 8600
targetPort: dns-udp
selector: selector:
app: {{ template "consul.name" . }} app: {{ template "consul.name" . }}
release: "{{ .Release.Name }}" release: "{{ .Release.Name }}"

View file

@ -131,7 +131,11 @@ spec:
- containerPort: 8300 - containerPort: 8300
name: server name: server
- containerPort: 8600 - containerPort: 8600
name: dns name: dns-tcp
protocol: "TCP"
- containerPort: 8600
name: dns-udp
protocol: "UDP"
readinessProbe: readinessProbe:
# NOTE(mitchellh): when our HTTP status endpoints support the # NOTE(mitchellh): when our HTTP status endpoints support the
# proper status codes, we should switch to that. This is temporary. # proper status codes, we should switch to that. This is temporary.