• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Deploy NCache Resources in AKS
  • Manually Deploy NCache in AKS
  • Create Gateway Service for NCache Management in AKS
Show / Hide Table of Contents
  • Deploying NCache in Azure Kubernetes Service
  • Create Azure Resource Group
  • Create Kubernetes Cluster in Azure
  • Deploy NCache Resources in AKS
    • Manually Deploy NCache in AKS
      • Create NCache Deployment in AKS
      • Create Discovery Service for NCache Clients in AKS
      • Create Gateway Service for NCache Management in AKS
    • Deploy NCache in AKS Through Operator
      • Create Service Account in AKS
      • Create Role Definition in AKS
      • Create Role Binding in AKS
      • Create NCache Operator in AKS
      • Create Custom Resource in AKS
  • Create NCache Client Deployment in AKS
  • Create Cache Cluster in AKS
  • Monitor NCache Cluster and Clients in AKS
  • Adding Cache Servers in AKS at Runtime
  • Removing Cache Severs in AKS at Runtime

Create Gateway Service for NCache Management in AKS

The gateway service is used to access, manage, and monitor NCache from outside the network. It mainly defines the port that needs to be made accessible to the public. As we aim to use NCache deployment in the Azure Kubernetes cluster, we provide a load balancer as the gateway service to bring traffic down to a collection of pods and create Client-IP-based persistent connections.

Create Gateway Service YAML File

After the cache discovery file has been created and deployed successfully, create a YAML file for the gateway service. Let's call this file gatewayservice.yaml. Here's a snippet of what your gatewayservice.yaml file should look like,

Note

The parameters required to create this YAML file ready to be deployed are mentioned in the Properties table.

kind: Service
apiVersion: v1      # it depends on the underlying Kubernetes version
metadata:
  name: gateway
spec: 
  selector:
    app: ncache     # same label as provided in the ncache YAML file
  type: LoadBalancer
  sessionAffinity: ClientIP
  ports:
  - name: management-http
    port: 9801
    targetPort: 9801

Create Gateway Service

To create a gateway service for NCache management, run the following command in Azure Cloud Shell.

kubectl create -f [dir]/gatewayservice.yaml 

The next step after creating gateway service is to create NCache client deployment, explained in the next chapter.

See Also

Create NCache Deployment in AKS
Create Discovery Service in AKS
Create NCache Client Deployment in AKS
Create Cache Cluster in AKS

In This Article
  • Create Gateway Service YAML File
  • Create Gateway Service
  • See Also

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top