43 lines
777 B
YAML
43 lines
777 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: consul
|
|
labels:
|
|
name: consul
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
- name: http
|
|
port: 8500
|
|
targetPort: 8500
|
|
- name: https
|
|
port: 8443
|
|
targetPort: 8443
|
|
- name: rpc
|
|
port: 8400
|
|
targetPort: 8400
|
|
- name: serflan-tcp
|
|
protocol: "TCP"
|
|
port: 8301
|
|
targetPort: 8301
|
|
- name: serflan-udp
|
|
protocol: "UDP"
|
|
port: 8301
|
|
targetPort: 8301
|
|
- name: serfwan-tcp
|
|
protocol: "TCP"
|
|
port: 8302
|
|
targetPort: 8302
|
|
- name: serfwan-udp
|
|
protocol: "UDP"
|
|
port: 8302
|
|
targetPort: 8302
|
|
- name: server
|
|
port: 8300
|
|
targetPort: 8300
|
|
- name: consuldns
|
|
port: 8600
|
|
targetPort: 8600
|
|
selector:
|
|
app: consul
|