• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Create NCache Deployment 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 Deployment in Openshift

Kubernetes cluster is formed and the next step is to create NCache deployment in your Kubernetes cluster. This lets you perform operations on your cache cluster inside Kubernetes.

Create Deployment File in OpenShift

NCache deployment file is a YAML file which contains all the necessary configurations and the application's components. Given below is a YAML file called ncache.yaml containing sample configurations to demonstrate the deployment file.

apiVersion: apps/v1beta1
kind: Deployment
metadata:
  name: ncache
  labels:
    app: ncache
spec:
  replicas: 2
  template:
    metadata:
      labels:
        app: ncache
    spec:
      containers:
      - name: ncache
        image: docker.io/alachisoft/ncache:enterprise-server-linux-5.0.2
        ports:
        - name: management-tcp
          containerPort: 8250
        - name: management-http
          containerPort: 8251
        - name: client-port
          containerPort: 9800

Deploy the Deployment File

After creating the ncache.yaml file, it needs to be deployed using either the web portal or the command line tool.

Using Web Portal

  • Go to the project ncacheproject from the Projects.

  • Click on YAML from the options on the top.

  • Paste the NCache deployment file (ncache.yaml) in the YAML section. Click on the + button on the top right corner of the page to create the deployment. You can also create deployment by going to Workloads --> Deployments --> Create Deployment and drag and drop the YAML file in the empty deployment box.

NCache Deployment

Using Command Line Tool

Run the following command to create NCache deployment:

Important

Make sure to provide the complete path of the YAML files.

oc create -f ncache.yaml

You can also check the existing deployments by running the following command:

oc get deployments

You can also get the status of the pods after creating the NCache deployment. Following command is used to get the status of the pods.

oc get pods -o wide

The output window contains the information of the pods along with their IP addresses as shown below:

Status of the Pods

After creating NCache deployment, the next step is to create cache discovery service, explained in the next chapter.

See Also

Create New Project in Openshift
Create Cache Discovery Service in Openshift
Create Management Gateway in Openshift

In This Article
  • Create Deployment File in OpenShift
  • Deploy the Deployment File
    • Using Web Portal
    • Using Command Line Tool
  • 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