Created
June 3, 2022 15:40
-
-
Save Neutrollized/9f3b622d3dae6e4b2931faae97bc59ae to your computer and use it in GitHub Desktop.
Medium: NGINX Ingress or GKE Ingress
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: gxlb-ingress | |
namespace: default | |
annotations: | |
kubernetes.io/ingress.class: "gce" | |
kubernetes.io/ingress.allow-http: "true" | |
spec: | |
defaultBackend: | |
service: | |
name: web | |
port: | |
number: 80 | |
rules: | |
- host: "mysite.example.com" | |
http: | |
paths: | |
- path: /ui | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: web | |
port: | |
number: 80 | |
- path: /payments | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: payments | |
port: | |
number: 80 | |
- path: /currency | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: currency | |
port: | |
number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment