Browsed by
Tag: yaml

Kubernetes Simple Redirect In Ingress Rule

Kubernetes Simple Redirect In Ingress Rule

Suppose you are moving some sort of tool from one Kubernetes cluster to another one, then it would be nice for your users to get a redirect from the old URL to the new one (or at least for a while). You can achieve this by modifying your OLD ingress rule YML, by adding an annotation in it: Of course leave the rest of the old ingress rule in tact, to let it being triggered on the old URL. You…

Read More Read More

Kubernetes External Service

Kubernetes External Service

To make a local service in a Kubernetes cluster, which points to an address on a remote system, you can use the following yaml as example: This probably (will test this some time later) will also work if you want to move a service from “namespace-a” to “namespace-b”, and want to keep a reference inside “namespace-a” for other pods which depend on it: