1
0
Fork 0
mirror of https://gitlab.com/shouptech/flux.git synced 2026-02-04 01:19:43 +00:00

Use hyphen instead of underscore for port name

This commit is contained in:
Emma 2020-02-02 09:19:21 -07:00
parent b01691077a
commit 4c76452571
No known key found for this signature in database
GPG key ID: 68434BFE85360755

View file

@ -18,10 +18,10 @@ spec:
name: nip-io name: nip-io
ports: ports:
- containerPort: 53 - containerPort: 53
name: dns_tcp name: dns-tcp
protocol: TCP protocol: TCP
- containerPort: 53 - containerPort: 53
name: dns_udp name: dns-udp
protocol: UDP protocol: UDP
--- ---
kind: Service kind: Service
@ -33,13 +33,13 @@ spec:
selector: selector:
app: nip-io app: nip-io
ports: ports:
- name: dns_tcp - name: dns-tcp
protocol: TCP protocol: TCP
port: 53 port: 53
nodePort: 31053 nodePort: 31053
targetPort: dns_tcp targetPort: dns-tcp
- name: dns_udp - name: dns-udp
protocol: UDP protocol: UDP
port: 53 port: 53
nodePort: 31053 nodePort: 31053
targetPort: dns_udp targetPort: dns-udp