You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
553 B

apiVersion: v1
kind: Service
metadata:
labels:
app: ms-protocol
name: ms-protocol
namespace: yibin-charge
spec:
ports:
- name: http
port: 7024
protocol: TCP
targetPort: 7024
nodePort: 30724
- name: port1
port: 7050
protocol: TCP
targetPort: 7050
nodePort: 30750
- name: port2
port: 7051
protocol: TCP
targetPort: 7051
nodePort: 30751
selector:
app: ms-protocol
tier: backend
sessionAffinity: None
type: NodePort