This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -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

View File

@@ -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