ack k8s ingress 添加路由代理
aks下使用yaml创建代理服务
·
一、使用yaml创建服务资源
apiVersion: v1
kind: Service
metadata:
labels:
app: sap
name: sap
namespace: ythzhmh
spec:
ports:
- name: http
port: 80
type: ClusterIP
---
apiVersion: v1
kind: Endpoints
metadata:
name: sap
namespace: ythzhmh
subsets:
- addresses:
- ip: 192.168.78.14
ports:
- name: http
port: 80
二、使用yaml创建路由资源
- backend:
serviceName: sap
servicePort: http
path: /sap/
更多推荐
已为社区贡献2条内容
所有评论(0)