k8s配置安装ingress服务
在kuboard页面,网络安装
安装完配置名称保存
yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: test
name: pipeline
spec:
ingressClassName: ingress
rules:
- host: test.pipeline.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: pipeline
port:
number: 8888
端口容器端口-服务端口-ingress端口配置ingress可以根据域名访问服务