Docs/CloudNative/Kubernetes/Base/Ingress.md
2022-10-18 16:59:37 +08:00

21 lines
No EOL
408 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

ingress用于集群内部服务暴露到外部环境访问它是一组请求路由规则的集合。
```
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: demo-ingress
namespace: demo-ns
labels:
name: demo-ingress
version: v1
spec:
rules:
- host: test.demo.com
http:
paths:
- path: /
backend:
serviceName: demo-svc1
servicePort: 80
```