I configure Ingress on google Kubernetes engine. I am new on ingress but as i understood ingress can serve different Loadbalancers and different LBs should be differently configured.
I have started with a simple ingress config on GKE :
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: basic-ingress
spec:
rules:
- http:
paths:
- path: /*
backend:
serviceName: web-np
servicePort: 8080
- path: /v2/keys
backend:
serviceName: etcd-np
servicePort: 2379
And it works fine so I have 2 different NodePort services web-np and etcd-np
. But now I need to extend this logic with some rewrite rules so that request that points to /service1
- will be redirected to the other service1-np
service but before /service1/hello.html
must be replaced to /hello.html
. That's why I have the following questions:
- How can I configure rewrite in ingress and if it is possible with default load balancer.
- What is default load balancer on GKE.
- Where can I find a list of all annotations to it. I have thought that the full list is on https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/ but there is a completly different list and there is no
kubernetes.io/ingress.global-static-ip-name
annotation that is widely used in google examples.