Created
August 3, 2024 16:16
-
-
Save makafanpeter/d2f92ca169a2eb19ffed5eb2c52fff9b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: weather-app-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
nginx.ingress.kubernetes.io/affinity: "cookie" | |
nginx.ingress.kubernetes.io/session-cookie-name: "weather-app" | |
spec: | |
ingressClassName: nginx | |
rules: | |
- host: weather-app.local | |
http: | |
paths: | |
- path: / | |
pathType: Prefix | |
backend: | |
service: | |
name: weather-app-lb | |
port: | |
number: 8001 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment