• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Create Cache Discovery Service in OpenShift
Show / Hide Table of Contents
  • Deploying NCache in Red Hat OpenShift
  • Create New Project in OpenShift
  • Create NCache Deployment in OpenShift
  • Create Cache Discovery Service in OpenShift
  • Create Management Gateway in OpenShift
  • Create NCache Cluster in OpenShift
  • Deploy Client Applications in Openshift
  • Monitor NCache Cluster and Clients in OpenShift
  • Adding Cache Servers at Runtime in OpenShift
  • Removing Cache Severs at Runtime in OpenShift

Create Cache Discovery Service in Openshift

For all the client applications to have access to the underlying pods, cache discovery service is created. It lets the applications communicate with the underlying pods. In order to create cache discovery service another YAML file is created with the configurations. A sample YAML file called discoveryservice.yaml is shown below.

kind: Service
apiVersion: v1          # depends on underlying Kubernetes version
metadata:
  name: cacheserver
  labels:
    app: cacheserver
spec:
  clusterIP: None
  sessionAffinity: ClientIP
  selector:
    app: ncache         # same label as provided in the ncache YAML file
  ports:
  - name: management-tcp
    port: 8250
    targetPort: 8250
  - name: client-port
    port: 9800
    targetPort: 9800
  - name: management-http
    port: 8251
    targetPort: 8251
  - name: management-bridge
    port: 8260
    targetPort: 8260

Using Web Console in OpenShift

To create the cache discovery service through web portal:

  • From the left panel, go to Services under the Networking section.

Create Cache Discovery Service

  • Click on Create Service in order to create a new cache discovery service. Click Create.

Discovery Service YAML

  • The cache discovery service is created successfully.

Cache Discovery service created

Using Command Line

In order to create the cache discovery Openshift service using the command line tool, run the following command:

oc create -f discoveryservice.yaml

In order to check if the service is created successfully run the following command:

oc get services

After creating the Openshift cache discovery service, the next step is to create management gateway, explained in the next chapter.

See Also

Create New Project in Openshift
Create NCache Deployment in Openshift
Create Management Gateway in Openshift
Create NCache Cluster in Openshift

In This Article
  • Using Web Console in OpenShift
  • Using Command Line
  • 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