新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: apod-api
|
||||
labels:
|
||||
kiamol: ch15-lab
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx-lab
|
||||
nginx.ingress.kubernetes.io/limit-rpm: "2"
|
||||
spec:
|
||||
rules:
|
||||
- host: api.apod.local
|
||||
http:
|
||||
paths:
|
||||
- pathType: Exact
|
||||
path: /image
|
||||
backend:
|
||||
serviceName: apod-api
|
||||
servicePort: 80
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: apod-web
|
||||
labels:
|
||||
kiamol: ch15-lab
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx-lab
|
||||
nginx.ingress.kubernetes.io/limit-rpm: "10"
|
||||
spec:
|
||||
rules:
|
||||
- host: www.apod.local
|
||||
http:
|
||||
paths:
|
||||
- pathType: Exact
|
||||
path: /
|
||||
backend:
|
||||
serviceName: apod-web
|
||||
servicePort: 80
|
||||
Reference in New Issue
Block a user