apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress-myapp
namespace: default
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/whitelist-source-range: '192.168.8.0/24' # 访问白名单
spec:
rules:
- host: devopstack.cn
http:
paths:
- path:
backend:
serviceName: myapp
servicePort: 80
- 我的微信
- 这是我的微信扫一扫
- 我的微信公众号
- 我的微信公众号扫一扫