Created
March 27, 2025 10:51
-
-
Save tarasowski/ec0bab6ca31f8418e6642437ce434d08 to your computer and use it in GitHub Desktop.
k8s
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: ingress-service | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/rewrite-target: /$1 | |
spec: | |
rules: | |
- http: | |
paths: | |
- pathType: Prefix | |
path: "/?(.*)" | |
backend: | |
service: | |
name: client-cluster-ip-service | |
port: | |
number: 8080 | |
- pathType: Prefix | |
path: "/api/?(.*)" | |
backend: | |
service: | |
name: api-cluster-ip-service | |
port: | |
number: 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment