<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tejas Konduri on Medium]]></title>
        <description><![CDATA[Stories by Tejas Konduri on Medium]]></description>
        <link>https://medium.com/@tejaskonduri?source=rss-3eb1380ecd6a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0Bohj6hPDO45pS05.</url>
            <title>Stories by Tejas Konduri on Medium</title>
            <link>https://medium.com/@tejaskonduri?source=rss-3eb1380ecd6a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 04:02:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tejaskonduri/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Deploying Citrix API gateway using Rancher | Citrix Blogs]]></title>
            <link>https://medium.com/@tejaskonduri/deploying-citrix-api-gateway-using-rancher-citrix-blogs-8336103e9d19?source=rss-3eb1380ecd6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8336103e9d19</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[rancher]]></category>
            <category><![CDATA[citrix]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[load-balancer]]></category>
            <dc:creator><![CDATA[Tejas Konduri]]></dc:creator>
            <pubDate>Thu, 03 Sep 2020 12:00:57 GMT</pubDate>
            <atom:updated>2020-09-03T21:55:33.732Z</atom:updated>
            <content:encoded><![CDATA[<p>The Citrix API gateway provides a single entry point for APIs by ensuring secure and reliable access to APIs and <a href="https://www.citrix.com/glossary/what-are-microservices.html">microservices</a> on your system. Citrix provides an enterprise-grade API gateway for north-south API traffic for Kubernetes clusters. The Citrix API gateway integrates with Kubernetes through the Citrix Ingress Controller and <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> (MPX, VPX, or CPX) deployed as the ingress gateway for on-premises and cloud deployments.</p><p><a href="https://rancher.com/">Rancher</a> provides a catalog of application templates that help you to deploy the Citrix API gateway. In this blog post, I’ll look at how you can deploy the API gateway using Rancher.</p><p>The Citrix API gateway catalog installs the custom resource definitions (CRDs) required for the API gateway functionality. Because this catalog leverages the Citrix Ingress Controller, you need to create an instance of the API gateway CRD, which <em>is</em> the Citrix Ingress Controller. If you already have a Citrix Ingress Controller instance in the cluster, you will need to install it again.</p><p>API gateway supports the following CRDs:</p><ul><li><strong>Auth CRD (authpolicies.citrix.com) — </strong>Authentication policies are used to enforce access restrictions to resources hosted by an application or an API server.</li><li><strong>Content routing CRDs (httproutes.citrix.com and listeners.citrix.com) — </strong>Kubernetes-native ingress supports only basic host and path-based routing. Using content routing CRDs, you can expose the advanced content routing abilities provided by Citrix ADC like routing based on header values or query strings.</li><li><strong>Rate limit CRD (ratelimits.citrix.com) — </strong>In a Kubernetes deployment, you can rate limit the requests to the resources on the back-end server or services using the rate limiting feature provided by the ingress Citrix ADC.</li><li><strong>Rewrite and responder CRD (rewritepolicies.citrix.com) — </strong>In a Kubernetes environment, to deploy specific Layer 7 policies (such as redirecting HTTP traffic to a specific URL) requires you to add appropriate libraries within the microservices and manually configure the policies. Instead, you can use the Rewrite and Responder features provided by the ingress Citrix ADC device to deploy these policies.</li><li><strong>VIP CRD (vips.citrix.com) </strong>— Citrix provides a VIP CRD for asynchronous communication between the IPAM controller and the Citrix Ingress Controller. The IPAM controller is provided by Citrix for IP address management.</li></ul><p>Citrix provides a VIP CRD for asynchronous communication between the IPAM controller and the Citrix Ingress Controller. The IPAM controller is provided by Citrix for IP address management.</p><blockquote>Prerequisites</blockquote><p>You must import to the Rancher platform the cluster in which you want to deploy the API gateway.</p><blockquote>Importing the Cluster to the Rancher Platform</blockquote><p>Follow these steps to import your cluster to the Rancher platform:</p><ol><li>Log in to the Rancher platform.</li><li>In the Clusters page, click <strong>Add Cluster</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*b_hnuauDRz0m6kql.png" /><figcaption>Add cluster on Rancher</figcaption></figure><p>3. In the Add Cluster, select Cluster Type page and choose <strong>Import an existing cluster</strong></p><p>4. Specify the <strong>Cluster Name</strong>.</p><p>5. Specify <strong>Member Roles</strong>, <strong>Labels</strong>, and <strong>Annotations</strong>.</p><p>6. Click <strong>Create</strong>.</p><blockquote>Deploying Citrix API Gateway Using Rancher</blockquote><p>Perform the following steps to deploy the API gateway on the cluster using the Rancher platform:</p><ol><li>Log in to the Rancher platform.</li><li>From the global drop-down list, select the cluster that you have imported.</li><li>Select the <strong>Apps</strong> tab and click <strong>Launch</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*fyaHI5ntpqhM69Cx.png" /></figure><p>4. From the Catalog page, choose the <strong>citrix-api-gateway</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*f7g-wHyn3xVSJjtj.png" /><figcaption>Catalog library</figcaption></figure><p>5. Specify the mandatory and required fields in Deployment settings, ADC settings, CIC Image settings, and Exporter settings. The mandatory fields include:</p><ul><li><strong>Namespace:</strong> Specify the namespace where you want to create the CIC. You can also use <strong>Edit as YAML</strong> option to specify the same in the YAML file.</li><li><strong>Accept License:</strong> Select <strong>Yes</strong> to accept the terms and conditions of Citrix license.</li><li><strong>Login File Name:</strong> Specify the name of the secret. The secret file is used for Citrix ADC login.</li><li><strong>Citrix ADC IP:</strong> The NSIP or SNIP of the Citrix ADC device. For HA, specify the SNIP as the IP address.</li></ul><p>6. Click <strong>Preview</strong> to verify the information, then click <strong>Launch</strong>.</p><blockquote>Conclusion</blockquote><p>The Rancher catalog will ease the installation process for Citrix API gateway and enable all the required features to be configured on the go. Learn more about <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> and <a href="https://docs.citrix.com/en-us/citrix-adc/13/cloud-native-solution/citrix-api-gateway.html">Citrix API gateway</a>.</p><p><em>Originally published at </em><a href="https://www.citrix.com/blogs/2020/09/03/deploying-citrix-api-gateway-using-rancher/"><em>https://www.citrix.com</em></a><em> on September 3, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8336103e9d19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Citrix API gateway using Red Hat OpenShift Operator | Citrix Blogs]]></title>
            <link>https://medium.com/@tejaskonduri/deploy-citrix-api-gateway-using-red-hat-openshift-operator-citrix-blogs-996b48a4811b?source=rss-3eb1380ecd6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/996b48a4811b</guid>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[citrix]]></category>
            <category><![CDATA[load-balancer]]></category>
            <dc:creator><![CDATA[Tejas Konduri]]></dc:creator>
            <pubDate>Thu, 27 Aug 2020 08:00:08 GMT</pubDate>
            <atom:updated>2020-09-02T20:10:52.799Z</atom:updated>
            <content:encoded><![CDATA[<p>Red Hat’s OpenShift Operator is an open-source toolkit designed to package, deploy, and manage Kubernetes-native applications in a more effective, automated, and scalable way.</p><p>An API gateway acts as the single entry point for your APIs and ensures secure and reliable access to multiple APIs and <a href="https://www.citrix.com/glossary/what-are-microservices.html">microservices</a> in your system. Citrix provides <a href="https://docs.citrix.com/en-us/citrix-adc/13/cloud-native-solution/citrix-api-gateway.html">an enterprise-grade API gateway</a> for north-south API traffic into the OpenShift cluster. The API gateway integrates with the OpenShift cluster through the Citrix Ingress Controller and the <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> (MPX, VPX, or CPX) deployed as the ingress gateway for on-premises or cloud deployments.</p><p>In this blog post, I’ll look at how you can deploy the API gateway using OpenShift Operators.</p><p>The Citrix API gateway operator installs the custom resource definitions (CRDs) required for the API Gateway functionality. Because this operator leverages the Citrix Ingress Controller, you need to create an instance of the API gateway CRD, which <em>is</em> the Citrix Ingress Controller. If you already have a Citrix Ingress Controller instance in the cluster you need to install it again.</p><p>API Gateway supports the following CRDs:</p><ul><li><strong>Auth CRD (authpolicies.citrix.com):</strong> Authentication policies are used to enforce access restrictions to resources hosted by an application or an API server.</li><li><strong>Content routing CRDs (httproutes.citrix.com and listeners.citrix.com): </strong>Kubernetes-native ingress supports only basic host and path-based routing. Using content routing CRDs, you can expose the advanced content routing abilities provided by Citrix ADC like routing based on header values or query strings.</li><li><strong>Rate limit CRD (ratelimits.citrix.com): </strong>In a Kubernetes deployment, you can rate-limit the requests to the resources on the back-end server or services using the rate-limiting feature provided by the ingress Citrix ADC.</li><li><strong>Rewrite and responder CRD (rewritepolicies.citrix.com): </strong>In a Kubernetes environment, to deploy specific layer 7 policies (such as redirecting HTTP traffic to a specific URL) requires you to add appropriate libraries within the microservices and manually configure the policies. Instead, you can use the Rewrite and Responder features provided by the ingress Citrix ADC device to deploy these policies.</li><li><strong>VIP CRD (vips.citrix.com):</strong> Citrix provides a VIP CRD for asynchronous communication between the IPAM controller and the Citrix Ingress Controller. The IPAM controller is provided by Citrix for IP address management.</li></ul><blockquote><strong>Deploy Citrix API Gateway Using OpenShift Operator</strong></blockquote><p>Perform the following steps to deploy the API gateway using the OpenShift Operator.</p><ol><li>In the OperatorHub, search for Citrix API Gateway Operator.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwEtYhASBnX-yJrycdnUfw.png" /><figcaption>OpenShift Operator Install</figcaption></figure><p>2. Select the Citrix API Gateway Operator, and click Install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OMMLUMXgd9NxmXdEfjkuGw.png" /><figcaption>OpenShift Operator Install</figcaption></figure><p>3. Choose the namespace where you want the operator to be installed and click Subscribe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cuXr9TRaGthpwrjTwNjmzQ.png" /></figure><p>4. Once the Citrix API gateway operator is installed, you will see it listed under the <strong>Installed Operators</strong> section on the left panel. At this point, all CRDs are installed in the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANMOFe_LU-AGzGIeqrCG2Q.png" /></figure><p>5. To create instances of each CRD, select the appropriate CRD, and click <strong>Create Instance</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yS_ASO_uk1PnJmIqS2_Wgw.png" /></figure><p>6. Once you create the instance you can see all your instances by selecting the <strong>All instances</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2FZ0inOMubGIZqS46NiLdA.png" /></figure><blockquote>Update the CRD instance</blockquote><p>To update any values of the created CRD instance, click on the instance, go to the <strong>YAML</strong> tab, edit the YAML file, and click <strong>Save</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1OoT3WkJ860AJhGXvdVEow.png" /></figure><blockquote>Delete the Instance and Operator</blockquote><p>To delete an instance of the CRD, you have to delete the Citrix Ingress Controller instance from the user interface. Select the three vertical dots on the right side of the instance as shown in the following image and then click <strong>Delete CitrixIngressController</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*74mmfpwHY_U-eTSlPDv3sg.png" /></figure><p>To delete the operator, click on the <strong>Actions</strong> drop-down list and then click <strong>Uninstall operator</strong>.</p><p>Please note, you should delete all instances manually before uninstalling the operator. The instances are not automatically deleted if you uninstall the operator.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uet-zhQtgdgrmSy47XlAXg.png" /></figure><blockquote>Conclusion</blockquote><p>The Red Hat OpenShift Operator will ease the installation process of Citrix API gateway and enable all the required features to be configured on the go. Learn more about <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> and <a href="https://docs.citrix.com/en-us/citrix-adc/13/cloud-native-solution/citrix-api-gateway.html">Citrix API gateway</a>.</p><p><em>Originally published at </em><a href="https://www.citrix.com/blogs/2020/08/27/deploy-citrix-api-gateway-using-red-hat-openshift-operator/"><em>https://www.citrix.com</em></a><em> on August 27, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=996b48a4811b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enhancements in Kubernetes service of type LoadBalancer in CIC | Citrix Blogs]]></title>
            <link>https://medium.com/swlh/enhancements-in-kubernetes-service-of-type-loadbalancer-in-cic-citrix-blogs-9ddf74584305?source=rss-3eb1380ecd6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ddf74584305</guid>
            <category><![CDATA[citrix]]></category>
            <category><![CDATA[ingresscontroller]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Tejas Konduri]]></dc:creator>
            <pubDate>Thu, 12 Mar 2020 10:00:51 GMT</pubDate>
            <atom:updated>2020-09-17T05:06:37.049Z</atom:updated>
            <content:encoded><![CDATA[<p>Customers are critical to driving innovation at Citrix. In this blog post, we’ll take a look at recent features shaped by customer input on our <a href="https://www.citrix.com/blogs/2019/09/16/citrix-adc-for-kubernetes-service-of-type-loadbalancer/">service of type LoadBalancer</a> offering</p><p>You can logically divide a Kubernetes cluster into zones. The <a href="https://developer-docs.citrix.com/projects/citrix-k8s-ingress-controller/en/latest/">Citrix Ingress Controller</a> in different zones listen to the same Kubernetes API server because it’s the same Kubernetes cluster. When a service of type LoadBalancer is created, all Citrix ADCs (MPX/VPX/SDX) in the zones advertise the same IP to the BGP fabric.</p><p>Why is this approach inefficient? If a zone (for example, Rack 3) does not have any workloads (pods) for a given service, the ADC in that zone still advertises the IP address.</p><p>Here are the three scenarios where we can improve efficiency.</p><ul><li>Service of type LoadBalancer has two pods in Zone 1 and Zone 2. The MPX in Zone 3 should not advertise the VIP to BGP fabric</li><li>If the number of pods increased from two to three and the new pod is deployed on Zone 3. The MPX on that rack should advertise the VIP.</li><li>If the pods are decreased from three to one and only Zone 1 has the pod, the MPX in Zone 2 and 3 should recall their advertisement from the BGP fabric.</li></ul><p>To support this functionality, we’ve added two new features to the Kubernetes service of type LoadBalancer in Citrix Ingress Controller:</p><ul><li>Border Gateway Protocol (BGP) Support</li><li>Advertise and Recall VIP based on the availability of application pods in a zone</li></ul><h3>Support for automatic configuration of BGP RHI on Citrix ADC</h3><p>Route health injection (RHI) enables <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> to advertise the availability of a VIP as a host route throughout a network that is using BGP. In the past, you had to manually perform the configuration on Citrix ADC to support RHI. Now, with Citrix Ingress Controllers deployed in a Kubernetes environment, you can automate the configuration on Citrix ADCs to advertise VIPs.</p><p>When a service of type LoadBalancer is created, the Citrix Ingress Controller configures a VIP on the Citrix ADC for the service. If BGP RHI support is enabled for the Citrix Ingress Controller, it automatically configures Citrix ADC to advertise the VIP to the BGP fabric.</p><h3>Advertise and Recall VIPs Based on the Availability of Pods in a Zone</h3><p>In a topology like the one below, nodes in a Kubernetes cluster are distributed across three zones. Each zone has a Citrix ADC MPX as the Tier-1 ADC, as well as a Citrix Ingress Controller to configure resources to the Tier-1 ADC in the Kubernetes cluster. Citrix Ingress Controllers in all zones listen to the same Kubernetes API server. Whenever a service of type LoadBalancer is created, all Citrix ADCs in the cluster listen to the event and advertise the same IP address to the BGP fabric, even if there’s no workload on a zone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*kHHT8WcwBfqSvlah.png" /></figure><p>Citrix provides a solution to advertise or recall the VIP based on the availability of pods in the zone. You’ll need to label the nodes on each zone so the Citrix Ingress Controller can identify nodes belonging to the same zone. The Citrix Ingress Controller on each zone performs a check to see if there are pods on nodes in that zone. If so, it advertises the VIP. Otherwise, it recalls the advertisement of VIP from the Citrix ADC on the zone.</p><p><strong>Benefits</strong></p><ul><li>Better fault tolerance and minimizing the blast radius.</li><li>Better load balancing based on locality.</li></ul><h3>Advertise Case</h3><p>Here, we have pods of the service of type LoadBalancer on all four nodes, and both the CICs have configured both the MPXs. In turn, both the MPXs have advertised the VIP to the BGP Router.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0km4azYu37cuH-1w.png" /></figure><h3>Recall Case</h3><p>Here, we have pods of the service of type LoadBalancer on Node 1 and Node 2, which are on Rack 1/Zone 1. CIC-24 has configured the MPX 10.217.212.24, which doesn’t have the configuration because there are no pods on Node 3 and Node 4. It recalls the VIP from advertisement to BGP router.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nM1pZFF0YbaaLfoJ.png" /></figure><h3>Configuring BGP RHI on Citrix ADCs using Citrix ingress controller</h3><p>In this section, we’ll look at configuring BGP RHI on Citrix ADCs using the Citrix Ingress Controller, based on a sample topology. In this topology, nodes in a Kubernetes cluster are deployed across two zones. Each has a Citrix ADC VPX or MPX as the Tier-1 ADC and a Citrix Ingress Controller for configuring ADCs in the Kubernetes cluster. The ADCs are peered using BGP with the upstream router.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fO9nEKM_SdHpt-p1.png" /></figure><p>Before you get started, you must configure Citrix ADC MPX or VPX as a BGP peer with the upstream routers. Then, perform the following steps to configure BGP RHI support based on the sample topology.</p><p><strong>1) Label nodes in each zone using the following command:</strong></p><p>For zone 1:</p><pre>kubectl label nodes node1 rack=rack-1 kubectl label nodes node2 rack=rack-1</pre><p>For zone 2:</p><pre>kubectl label nodes node3 rack=rack-2 kubectl label nodes node4 rack=rack-2</pre><p><strong>2) Configure the following environmental variables in the Citrix Ingress Controller configuration YAML files as follows:</strong></p><p>For zone 1:</p><pre>- name: &quot;NODE_LABELS&quot; value: &quot;rack-1&quot; - name: &quot;BGP_ADVERTISEMENT&quot; value: &quot;True&quot;</pre><p>For zone 2:</p><pre>- name: &quot;NODE_LABELS&quot; value: &quot;rack-2&quot; - name: &quot;BGP_ADVERTISEMENT&quot; value: &quot;True&quot;</pre><p>A sample yaml file for deploying the Citrix Ingress Controller on Zone 1 is provided as follows:</p><pre> apiVersion: v1<br> kind: Pod<br> metadata:<br>   name: cic-k8s-ingress-controller-1<br>   labels:<br>     app: cic-k8s-ingress-controller-1<br> spec:<br>   serviceAccountName: cic-k8s-role<br>   containers:<br>   - name: cic-k8s-ingress-controller<br>     image: &quot;quay.io/citrix/citrix-k8s-ingress-controller:1.4.392&quot;</pre><pre>env:<br>     # Set NetScaler NSIP/SNIP, SNIP in case of HA (mgmt has to be enabled)<br>     - name: &quot;NS_IP&quot;<br>       value: &quot;10.217.212.24&quot;<br>    # Set username for Nitro<br>     - name: &quot;NS_USER&quot;<br>       valueFrom:<br>         secretKeyRef:<br>           name: nslogin<br>           key: username<br>    # Set user password for Nitro<br>     - name: &quot;NS_PASSWORD&quot;<br>       valueFrom:<br>         secretKeyRef:<br>         name: nslogin<br>         key: password        <br>     - name: &quot;EULA&quot;<br>       value: &quot;yes&quot;<br>     - name: &quot;NODE_LABELS&quot;<br>       value: &quot;rack=rack-1&quot;<br>     - name: &quot;BGP_ADVERTISEMENT&quot;<br>       value: &quot;True&quot;<br> args:<br>   - --ipam <br>     citrix-ipam-controller<br> imagePullPolicy: Always</pre><p><strong>3) Deploy the Citrix Ingress Controller using the following command.</strong> Please note, you need to deploy the Citrix Ingress Controller on both racks (per zone)</p><p>Kubectl create -f cic.yaml</p><p><strong>4) Deploy a sample application using the web-frontend-lb.yaml.</strong> Kubectl create -f web-frontend-lb.yaml</p><p>The content of the web-frontend-lb.yaml is as follows:</p><pre> apiVersion: v1<br> kind: Deployment<br> metadata:<br>   name: web-frontend<br> spec:<br>   replicas: 4<br>   template:<br>     metadata:<br>       labels:<br>         app: web-frontend<br>     spec:<br>       containers:<br>       - name: web-frontend<br>         image: 10.217.6.101:5000/web-test:latest<br>         ports:<br>           - containerPort: 80<br>         imagePullPolicy: Always</pre><p><strong>5) Create a service of type LoadBalancer for exposing the application.</strong> Kubectl create -f web-frontend-lb-service.yaml</p><p>The content of the web-frontend-lb-service.yaml is as follows:</p><pre> apiVersion: v1<br> kind: Service<br> metadata:<br>   name: web-frontend<br>   labels:<br>     app: web-frontend<br> spec:<br>   type: LoadBalancer<br>   ports:<br>   - port: 80<br>     protocol: TCP<br>     name: http<br>   selector:<br>     app: web-frontend</pre><p><strong>6) Verify the service group creation on Citrix ADCs using the following command.</strong></p><p>show servicegroup &lt;service-group-name&gt;</p><p>The following is a sample output for the command.</p><pre>#  show servicegroup k8s-web-frontend_default_80_svc_k8s-web-frontend_default_80_svc</pre><pre>k8s-web-frontend_default_80_svc_k8s-web-frontend_default_80_svc - TCP<br> State: ENABLED  Effective State: UP Monitor Threshold : 0<br> Max Conn: 0 Max Req: 0  Max Bandwidth: 0 kbits<br> Use Source IP: NO   <br> Client Keepalive(CKA): NO<br> TCP Buffering(TCPB): NO<br> HTTP Compression(CMP): NO<br> Idle timeout: Client: 9000 sec  Server: 9000 sec<br> Client IP: DISABLED <br> Cacheable: NO<br> SC: OFF<br> SP: OFF<br> Down state flush: ENABLED<br> Monitor Connection Close : NONE<br> Appflow logging: ENABLED<br> ContentInspection profile name: ???<br> Process Local: DISABLED<br> Traffic Domain: 0</pre><pre>1)   10.217.212.23:30126    State: UP   Server Name: 10.217.212.23  Server ID: None Weight: 1<br>   Last state change was at Wed Jan 22 23:35:11 2020 <br>   Time since last state change: 5 days, 00:45:09.760</pre><pre>Monitor Name: tcp-default     State: UP   Passive: 0<br>   Probes: 86941 Failed [Total: 0 Current: 0]<br>   Last response: Success - TCP syn+ack received.<br>   Response Time: 0 millisec</pre><pre>2)   10.217.212.22:30126    State: UP   Server Name: 10.217.212.22  Server ID: None Weight: 1<br>   Last state change was at Wed Jan 22 23:35:11 2020 <br>   Time since last state change: 5 days, 00:45:09.790</pre><pre>Monitor Name: tcp-default     State: UP   Passive: 0<br>   Probes: 86941 Failed [Total: 0 Current: 0]<br>   Last response: Success - TCP syn+ack received.</pre><p><strong>7) Verify the VIP advertisement on the BGP router using the following command.</strong></p><pre>&gt;VTYSH<br> # show ip route bgp<br>   B      172.29.46.78/32   [200/0] via 2.2.2.100, vlan20, 1d00h35m<br>                            [200/0] via 2.2.2.101, vlan20, 1d00h35m<br>   Gateway of last resort is not set</pre><h3>Conclusion</h3><p>The enhancements we’ve made for the service of type LoadBalancer offering will help customers optimize their traffic flow and improve load balancing based on locality. Learn more about <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> and <a href="https://www.citrix.com/blogs/2019/09/16/citrix-adc-for-kubernetes-service-of-type-loadbalancer/">service of type LoadBalancer</a>, and check out our <a href="https://github.com/citrix/citrix-k8s-ingress-controller">GitHub page</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/0*l6cbBbIVrbIf5srI.png" /></figure><p><em>Originally published at </em><a href="https://www.citrix.com/blogs/2020/03/12/enhancements-in-kubernetes-service-of-type-loadbalancer-in-cic/"><em>https://www.citrix.com</em></a><em> on March 12, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ddf74584305" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/enhancements-in-kubernetes-service-of-type-loadbalancer-in-cic-citrix-blogs-9ddf74584305">Enhancements in Kubernetes service of type LoadBalancer in CIC | Citrix Blogs</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Citrix ADC for Kubernetes: Service of type LoadBalancer | Citrix Blogs]]></title>
            <link>https://medium.com/swlh/citrix-adc-for-kubernetes-service-of-type-loadbalancer-citrix-blogs-648eaeeaf34?source=rss-3eb1380ecd6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/648eaeeaf34</guid>
            <dc:creator><![CDATA[Tejas Konduri]]></dc:creator>
            <pubDate>Mon, 16 Sep 2019 12:00:58 GMT</pubDate>
            <atom:updated>2020-09-17T23:07:58.501Z</atom:updated>
            <content:encoded><![CDATA[<p>In the language of <a href="https://www.citrix.com/blogs/tag/kubernetes/">Kubernetes</a>, a pod is a deployment unit that can refer to a single container or tightly coupled containers with shared resources. <a href="https://www.citrix.com/networking/microservices.html">Microservices</a> are deployed as a set of pods that are created and destroyed dynamically. That means the set of pods that refer to a microservice is constantly changing.</p><p>Kubernetes provides services that define a logical set of pods, as well as policies to access them. These services can be used to expose microservices both inside and outside the cluster. There are three primary types of services you can use: ClusterIP, NodePort, and LoadBalancer. Each provides a different paradigm through which services are exposed.</p><p>In this blog, we’ll look at service of type LoadBalancer and how it can be used to provision an external load balancer on the Tier 1 <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> (VPX, MPX) on bare-metal clusters. This can be achieved using Citrix ingress controller and the Citrix IPAM controller. We’ll also cover the difference between service of type LoadBalancer and ingress; support in cloud vs. on-prem deployments; and some upcoming enhancements.</p><h3>Service of Type LoadBalancer</h3><p>Service of type LoadBalancer in Kubernetes enables you to directly expose services to the outside world without using an ingress resource. It’s generally made available only by cloud providers, who spin up their own native cloud load balancers and assign an external IP through which the service can be accessed. This helps users to deploy microservices easily and expose them to the outside world.</p><p>By default, in a bare-metal cluster, service of type LoadBalancer simply exposes NodePorts for the service. It doesn’t configure external load balancers.</p><p>The <a href="https://developer-docs.citrix.com/projects/citrix-k8s-ingress-controller/en/latest/">Citrix ingress controller</a> watches the Kubernetes API server and configures the ingress device — the Citrix ADC — whenever changes occur. Beginning with version 1.2.0, the Citrix ingress controller supports service of type LoadBalancer on bare-metal clusters, as well. If such a service is created in the cluster, the Citrix ingress controller will automatically configure the service on the external load balancer in the Tier 1 Citrix ADC, and you can access the service using the external IP. The Citrix ingress controller allocates this IP to the LoadBalancer service with the help of the Citrix IPAM controller, an auxiliary pod that runs parallel to the Citrix ingress controller and is responsible for managing IP addresses.</p><h3>How the Citrix IPAM Controller Works</h3><p>The Citrix IPAM controller pod runs in the cluster and is responsible for managing IP addresses. At startup, the IP address ranges pass through the yaml file to the Citrix IPAM controller, which uses them to allocate IPs to each load balancer service on that cluster. The deployment architecture is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*xMgv_UZJ_lXFghmc.png" /></figure><p>The Citrix IPAM controller also requires vip CRD to be installed because it’s used for internal communication between the Citrix ingress controller and the Citrix IPAM controller.</p><p>Once the service is deployed in the cluster, the Citrix ingress controller creates a vip CRD object for that service. The Citrix IPAM controller allocates IPs to the vip CRD objects. These CRD objects are then consumed by the Citrix ingress controller for configuring the VPX. The IP address allocated by the Citrix IPAM controller is used to access the service from outside.</p><p>The Citrix ingress controller, along with Citrix IPAM controller, provides an end-to-end solution for service of type LoadBalancer in a on-prem Kubernetes cluster. There, it can take care of IP management and configuration of the external load balancer.</p><h3>Extending the Support of Service of Type LoadBalancer</h3><p>You can deploy Citrix ingress controller along with the Citrix IPAM controller in a multi-cluster topology. Here’s an example of a multi-cluster deployment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*ArTkHzdPI6Xo2QKj.png" /></figure><p>You can configure the multi-cluster case using the environment variable <strong>NS_APPS_NAME_PREFIX</strong> which can be provided to the Citrix ingress controller through yaml while deployment. This variable allows differentiating configurations produced by Citrix ingress controllers in different clusters in a shared Tier 1 ADC.</p><p>You also need to run the Citrix IPAM controller in all the clusters and ensure that, in each cluster, the input IP ranges provided are mutually exclusive to each other. Any overlap in IP ranges might make the service unreachable.</p><h3>Support in Cloud vs. On-Prem Deployments</h3><p>In a cloud environment, service type LoadBalancer is handled by the cloud infrastructure itself, and nothing else is required.</p><p>When running service of type LoadBalancer in bare-metal clusters, you need to provide the IP by running the Citrix IAPM controller with vip range and run the Citrix ingress controller with the -ipam=“citrix-ipam-controller” option and deploy the vip CRD. Only then will the service of type LoadBalancer be configured properly.</p><h3>Ingress vs. service of type LoadBalancer</h3><p>Ingress and service of type LoadBalancer both enable you to expose services to the outside world. Ingress offers a very powerful solution through which you can use both path-based and subdomain-based routing to back-end services. For example, you can send everything on <a href="http://www.example.com/foo">www.example.com/foo</a> to the foo service, and everything under the <a href="http://www.example.com/bar">www.example.com/bar</a> path to the bar service. You can’t do that with service of type LoadBalancer.</p><p>But service of type LoadBalancer does give you an easy way to spin up a service, simply by using the service yaml itself. And you don’t have to worry about IP management, making it a breeze to spin up services and test them during development.</p><p>Keep in mind, though, that these services will have no routing. Additionally, each service you expose as type LoadBalancer will get its own IP address, which might cause problems because of limited resources for IPs.</p><h3>Service of Type LoadBalancer: An Example Deployment</h3><p>Here’s how to deploy a service of type LoadBalancer. The related yamls can be found <a href="https://github.com/citrix/example-cpx-vpx-for-kubernetes-2-tier-microservices/tree/master/on-prem/LoadBalancer-config">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hK1p61y2Gzd2LuRMTWyenA.png" /></figure><p><a href="https://www.citrix.com/blogs/wp-content/uploads/2019/09/output_demo.gif">The gif below</a> provides shows the steps above and the expected outcome of deploying the service of type LoadBalancer.</p><p>The service of type LoadBalancer is available to use after the pods are up and running. You can view the service with ‘kubectl get svc’ and test it using curl &lt;external IP&gt;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*VUicMe4zYqAEs1EZ.gif" /></figure><h3>What’s Next?</h3><p>Learn more about the <a href="https://github.com/citrix/citrix-k8s-ingress-controller/blob/eeef81b85b9be2374c25490052aab45159413ad3/docs/network/type_loadbalancer.md">service of type LoadBalancer feature and the Citrix IPAM controller</a>. And keep an eye out. We’re planning to integrate Citrix ingress controller’s service of type LoadBalancer functionality with other externally available IP management implementations to provide more flexibility in the future. We also plan to make the Citrix IPAM controller functionality available for ingress and to make managing IPs easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*-N6etGil1dDOMBid.png" /></figure><p><em>Originally published at </em><a href="https://www.citrix.com/blogs/2019/09/16/citrix-adc-for-kubernetes-service-of-type-loadbalancer/"><em>https://www.citrix.com</em></a><em> on September 16, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=648eaeeaf34" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/citrix-adc-for-kubernetes-service-of-type-loadbalancer-citrix-blogs-648eaeeaf34">Citrix ADC for Kubernetes: Service of type LoadBalancer | Citrix Blogs</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enable OpenShift router sharding support with Citrix ADC | Citrix Blogs]]></title>
            <link>https://medium.com/swlh/enable-openshift-router-sharding-support-with-citrix-adc-citrix-blogs-fef7d7137c1b?source=rss-3eb1380ecd6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/fef7d7137c1b</guid>
            <category><![CDATA[openshift]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[citrix]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Tejas Konduri]]></dc:creator>
            <pubDate>Wed, 11 Sep 2019 10:00:50 GMT</pubDate>
            <atom:updated>2020-09-17T05:17:29.618Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://docs.openshift.com/container-platform/3.11/architecture/networking/routes.html#router-sharding">OpenShift router sharding</a> helps you to distribute a set of routes among multiple OpenShift routers. This helps with distributing resources among different nodes, which is especially important when your cluster grows and you need to focus on the efficiency of your resources.</p><p>Many OpenShift rollouts start with at least two physical clusters — one for development and one for production. While this has perceived advantages like simplification of the mental model, OpenShift’s automated resilience, enhanced access controls, and advanced routing features can logically isolate dev and prod environments on a single cluster.</p><p>The Kubernetes scheduler at the core of OpenShift maximizes the density of applications running on each node. With additional configuration, you can achieve even greater density and compute savings through features like Quality of Service.</p><p>By default, an OpenShift router selects all routes from all namespaces. In router sharding, labels are added to routes and/or namespaces and label selectors to routers for filtering routes. Each router shard selects only routes with specific labels that match its label selection parameters.</p><h3>Integrating Citrix ADC with OpenShift</h3><p>You can integrate <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a> with OpenShift in two ways, both of which support OpenShift router sharding:</p><ul><li><a href="https://www.citrix.com/products/citrix-adc/resources/netscaler-cpx-data-sheet.html">Citrix ADC CPX</a> deployed as an OpenShift router, along with Citrix Ingress Controller inside the cluster</li><li>Citrix Ingress Controller as a router plug-in for <a href="https://www.citrix.com/products/citrix-adc/citrix-adc-data-sheet.html">Citrix ADC MPX</a> or <a href="https://www.citrix.com/products/citrix-adc/resources/netscaler-vpx.html">VPX</a>, deployed outside the cluster</li></ul><p>You’ll need one Citrix Ingress Controller instance per shard to configure router sharding for a Citrix ADC deployment on OpenShift. The Citrix Ingress Controller instance is deployed with route or namespace labels or with both as environment variables, depending on the criteria required for sharding.</p><p>When the Citrix Ingress Controller processes a route, it compares the route’s labels or route’s namespace labels with the selection criteria configured on it. If the route satisfies the criteria, the appropriate configuration is applied to Citrix ADC.</p><p>In router sharding, a subset of routes is selected based on selection expressions, which are a combination of multiple values and operations. For example, consider routes with various labels for service level agreement (sla), geographical location (geo), hardware requirements (hw), department (dept), type, and frequency:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*P2zzODGEPEnWqI1Bd_mIvA.png" /></figure><p>The following table shows selectors for route labels or namespace labels and a few sample selection expressions based on labels in the example. Route selection criteria are configured on the Citrix Ingress Controller by using environment variables ROUTE_LABELS and NAMESPACE_LABELS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XsNSzPfx4EzMWFI2R6Jw7g.png" /></figure><p>Please note, the label selectors use the language supported by Kubernetes labels.</p><p>If you want, you can change route or namespace labels by editing them later. Once you change the labels, router shard is revalidated, and the Citrix ingress controller updates the configuration on Citrix ADC based on the change.</p><p><strong>Deploy Citrix ADC CPX with OpenShift router sharding</strong></p><p>Follow these steps to deploy CPX with OpenShift router sharding support:</p><p>1) Download the <a href="https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cpx_cic_side_car.yaml">yaml</a> file using the following command:</p><p>wget <a href="https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cpx_cic_side_car.yaml">https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cpx_cic_side_car.yaml</a></p><p>2) Edit the <a href="https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cpx_cic_side_car.yaml">yaml</a> file and specify the route labels and namespace label selectors as environment variables. The following example shows how to specify a sample route label and namespace label in the yaml file. This example selects routes with label “name” values as either abc or xyz and with namespace label as frequency=high.</p><pre>env:<br>- name: &quot;ROUTE_LABELS&quot;<br>  value: &quot;name in (abc,xyz)&quot;<br>- name: &quot;NAMESPACE_LABELS&quot;<br>  value: &quot;frequency=high&quot;</pre><p>3) Deploy the Citrix ingress controller using the following command.</p><p>oc create -f cpx_cic_side_car.yaml</p><p><strong>Deploy the Citrix ingress controller router plug-in with OpenShift router sharding support</strong></p><p>Follow these steps to deploy a Citrix ingress controller router plug-in with router sharding:</p><p>1) Download the <a href="https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cic.yaml">yaml</a> file using the following command:</p><p>wget <a href="https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cic.yaml">https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cic.yaml</a></p><p>2) Edit the <a href="https://raw.githubusercontent.com/citrix/citrix-k8s-ingress-controller/master/deployment/openshift/manifest/cic.yaml">yaml</a> file and specify the route labels and namespace label selectors as environment variables. The following example shows how to specify a sample route label and namespace label in the yaml file. This example selects routes with label &quot;name&quot; values as either abc or xyz and with namespace label as frequency=high.</p><pre>env:<br>- name: &quot;ROUTE_LABELS&quot;<br>  value: &quot;name in (abc,xyz)<br>- name: &quot;NAMESPACE_LABELS&quot;<br>  value: &quot;frequency=high&quot;</pre><p>3) Deploy the Citrix ingress controller using the following command.</p><p>oc create -f cic.yaml</p><p><strong>Create an OpenShift route and verify the route configuration on Citrix ADC VPX</strong></p><p>Here’s how you create an OpenShift route with labels and verify the router shard configuration. In this example, route configuration is verified on a Citrix ADC VPX deployment.</p><p>Perform the following steps to create a sample route with labels.</p><p>1) Define the route in a YAML file. Following is an example for a sample route named as yaml.</p><pre>apiVersion: v1<br>kind: Route<br>metadata:<br>     name: web-backend-route<br>     namespace: default<br>     labels:<br>         sla: low<br>         name: abc<br>spec:<br>     host: web-frontend.cpx-lab.org<br>     path: &quot;/web-backend&quot;<br>     port:<br>         targetPort: 80<br>     to:<br>         kind: Service<br>         name: web-backend</pre><p>2) Use the following command to deploy the route.</p><p>oc create -f route.yaml</p><p>3) Add labels to the namespace where you create the route.</p><p>oc label namespace default &#39;frequency=high&#39;</p><p><strong>Verify route configuration</strong></p><p>You can verify the OpenShift route configuration on a Citrix ADC VPX with the following steps:</p><p>1) Log on to Citrix ADC VPX by performing the following:</p><ul><li>Use an SSH client such as PuTTy, to open an SSH connection to Citrix ADC VPX.</li><li>Log on to Citrix ADC VPX by using the administrator credentials.</li></ul><p>2) Check if the service group is created using the following command.</p><p>show serviceGroup</p><p>3) Verify the route configuration on Citrix ADC VPX using the show serviceGroup command output. The following is a sample route configuration from the show serviceGroup command output.</p><pre>show serviceGroup</pre><pre>k8s-web-backend-route_default_80_k8s-web-backend_default_80_svc - HTTP<br>State: ENABLED  Effective State: DOWN Monitor Threshold : 0<br>Max Conn: 0     Max Req: 0 Max Bandwidth: 0 kbits<br>Use Source IP: NO<br>Client Keepalive(CKA): NO<br>TCP Buffering(TCPB): NO<br>HTTP Compression(CMP): NO<br>Idle timeout: Client: 180 sec    Server: 360 sec<br>Client IP: DISABLED<br>Cacheable: NO<br>SC: OFF<br>SP: OFF<br>Down state flush: ENABLED<br>Monitor Connection Close : NONE<br>Appflow logging: ENABLED<br>ContentInspection profile name: ???<br>Process Local: DISABLED<br>Traffic Domain: 0</pre><p>Router sharding is a helpful feature for users who want to distribute routes among various nodes. By splitting the traffic, we can ensure that we reduce the number of clusters we use and enable optimal resource management.</p><p>Learn more <a href="https://www.citrix.com/products/citrix-adc/">Citrix ADC</a>, <a href="https://docs.openshift.com/container-platform/3.11/architecture/networking/routes.html#router-sharding">router sharding</a>, and how to enable <a href="https://blog.openshift.com/openshift-router-sharding-for-production-and-development-traffic/">router sharding for production and development traffic</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*WhB5JVCG05XI0VmY.png" /></figure><p><em>Originally published at </em><a href="https://www.citrix.com/blogs/2019/09/11/enable-openshift-router-sharding-support-with-citrix-adc/"><em>https://www.citrix.com</em></a><em> on September 11, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fef7d7137c1b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/enable-openshift-router-sharding-support-with-citrix-adc-citrix-blogs-fef7d7137c1b">Enable OpenShift router sharding support with Citrix ADC | Citrix Blogs</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>