Ingress 详解
版本
V1.16
内容详解
apiVersion: v1beta1
kind: string
metadata:
spec: (IngressSpec)
backend: (IngressBackend)
serviceName: 指定要访问的服务的名字
servicePort: 指定要访问的服务的端口号
rules: (IngressRule array)
- host: string
http: (HTTPIngressRuleValue)
paths: (HTTPIngressPath array)
- backend: (IngressBackend)
serviceName: 指定要访问的服务的名字
servicePort: 指定要访问的服务的端口号
path: 必须以/开头,如果不指定此值,流量全部指向backend
tls: (IngressTLS array)
- hosts:(string array)
- string
secretName:
status: (Read Only 不做描述)
Ingress 样例
kind: Ingress
apiVersion: extensions/v1beta1
metadata:
name: jboss-ingress
namespace: yunpingtai
spec:
rules:
- host: jboss-3.siguadantang.com
http:
paths:
- backend:
serviceName: jboss-3
servicePort: 8083
path: /