This commit is contained in:
parent
07b406c779
commit
00927cc0ba
@ -4,12 +4,14 @@ metadata:
|
||||
name: hw-service
|
||||
namespace: vdk2ch
|
||||
spec:
|
||||
type: NodePort
|
||||
#type: NodePort
|
||||
selector:
|
||||
app: helloworld
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
- port: 6666
|
||||
targetPort: 80
|
||||
nodePort: 30001
|
||||
#name: http
|
||||
#protocol: TCP
|
||||
|
||||
|
||||
#nodePort: 30001
|
@ -11,10 +11,14 @@ spec:
|
||||
- host: asdf.vdk2ch.ru
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: hw-service
|
||||
port:
|
||||
number: 80
|
||||
- path: /
|
||||
backend:
|
||||
serviceName: hw-service
|
||||
servicePort: 6666
|
||||
# - path: /
|
||||
# pathType: Prefix
|
||||
# backend:
|
||||
# service:
|
||||
# name: hw-service
|
||||
# port:
|
||||
# number: 80
|
Loading…
Reference in New Issue
Block a user