Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Frontend IP #568

Open
Moezenka opened this issue Jan 26, 2023 · 1 comment
Open

[Question] Frontend IP #568

Moezenka opened this issue Jan 26, 2023 · 1 comment
Assignees

Comments

@Moezenka
Copy link

Describe the bug
Hi,
We are currently annotating ingresses using the following annotation ingress.citrix.com/frontend-ip: $FRONTEND_IP in order to expose it on a different network segment.

When annotating the ingress it changes the IP, however when you delete the annotation, the ingress still retains the frontend-ip set earlier.

To Reproduce

# Create an ingress
$ kubectl create ingress ingress-demo --class=cic \
  --rule="ingress-demo.domain.com/*=demo:80"

# Verify that the ingress got created
$ kubectl get ing
NAME           CLASS   HOSTS                      ADDRESS         PORTS     AGE   LABELS
ingress-demo   cic     ingress-demo.domain.com   10.XX.XX.XX   80, 443   58s   <none>

# Annotate the ingress with the frontend annotation
$ kubectl annotate ingress ingress-demo ingress.citrix.com/frontend-ip=$FRONTEND_IP 
ingress.networking.k8s.io/ingress-demo annotated

# Verify that the ingress IP address changed
$ kubectl get ing
NAME           CLASS   HOSTS                      ADDRESS       PORTS     AGE
ingress-demo   cic     ingress-demo.domain.com   $FRONTEND_IP    80, 443   3m13s

# Delete the frontend annotation
$ kubectl annotate ingress ingress-demo ingress.citrix.com/frontend-ip-
ingress.networking.k8s.io/ingress-demo annotated

# Verify the IP adress of the ingress
$ kubectl get ing
NAME           CLASS   HOSTS                      ADDRESS       PORTS     AGE
ingress-demo   cic     ingress-demo.domain.com   $FRONTEND_IP   80, 443   7m12s
  1. Version of the Citrix Ingress Controller
    image: quay.io/citrix/citrix-k8s-ingress-controller:1.26.7

Expected behavior
I am not sure what the expected behavior is but I assume that it is supposed to revert the IP address set once you delete the annotation ingress.citrix.com/frontend-ip $IP_ADDRESS.

In short it should default to whatever IP was set prior to annotating the ingress with the frontend ip.

@ankits123
Copy link
Contributor

@Moezenka thanks for pointing out.
We will discuss this and get back.
Usually when the frontendip( CS vs IP) is modified, it is equivalent to creating a new ingress and CS vserver.
This modify translates to deleting the ingress and then modifying the ingress with new frontend ip annotation and then applying the ingress ...

@ankits123 ankits123 self-assigned this Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants