kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch15/pi/update/ingress-with-cache.yaml

20 lines
441 B
YAML

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: pi
labels:
kiamol: ch15
annotations:
nginx.ingress.kubernetes.io/proxy-buffering: "on"
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_cache static-cache;
proxy_cache_valid 10m;
spec:
rules:
- host: pi.kiamol.local
http:
paths:
- path: /
backend:
serviceName: pi-web
servicePort: 80