update listen port
This commit is contained in:
parent
7282f5bf37
commit
0dfc002fb8
@ -219,9 +219,9 @@ spec:
|
|||||||
type: NodePort # 修改为NodePort类型
|
type: NodePort # 修改为NodePort类型
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80 # 集群内部访问端口
|
port: 8080 # 集群内部访问端口
|
||||||
targetPort: 8080 # 容器端口
|
targetPort: 8080 # 容器端口
|
||||||
nodePort: 8001 # 主机端口,必须在30000-32767范围内
|
nodePort: 32080 # 主机端口,必须在30000-32767范围内
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
selector:
|
selector:
|
||||||
app: nginx
|
app: nginx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user