make it possible to select to which netscaler instace a policie will be pushed
patsch9 opened this issue · 2 comments
Is your feature request related to a problem? Please describe.
When we create a policies like rewrite policie in a cluster where are multple cic instances for different netscaler instances are present, the policie will be pushed to all netscalers.
Describe the solution you'd like
When i create a policie there have to be a selector for which ingress class i want to push the policie. With this it is possible to make multiple policies for different cic and netscaler instances without to have a lot of unused garbage on the instance where the policie dont be used.
It will be nice when i can select one ore multiple ingress classes where the policie will be pushed to.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
@patsch9 We do have the support to provide ingressclass for rewriteCRDs. You can create rewritepolicy matching the ingressclass with the CIC like the following:
apiVersion: citrix.com/v1
kind: rewritepolicy
metadata:
name: redirectnewhost
spec:
ingressclass: netscaler-vpx
responder-policies:
- servicenames:
- echoserver
responder-policy:
redirect:
url: '"new-domain-name.com"'
redirect-status-code: 301
respond-criteria: 'HTTP.REQ.HOSTNAME.CONTAINS("demo.example.com")'
comment: 'Redirect to New Domain Name'
Each individual CIC should be deployed with non-conflicting ingressclasses.
If CIC is deployed via yaml file, add the ingressclass in the args. (Refer : Link)
args:
- --ingress-classes
netscaler-vpx
If CIC is deployed via helmcharts, provide the ingressClass in the values.yaml (Refer: Link)
@patsch9 Closing this issue as we already have the support for ingress-class for the CRDs. Please free to reopen if you face any issues.