update listen port
Some checks failed
Build NGINX on Ubuntu / build-and-push (push) Failing after 31s
Build NGINX on Ubuntu / deploy-to-kubernetes (push) Has been skipped

This commit is contained in:
huangzhiqiang 2025-06-09 17:37:38 +08:00
parent 7282f5bf37
commit 0dfc002fb8

View File

@ -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