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

Create Cache Client Deployment in Amazon Elastic Kubernetes Service

You need to deploy your client resources inside the Amazon Elastic Kubernetes Service cluster to set up a functional client environment.

Create Client Secret for Amazon Elastic Kubernetes Service

As your client application is hosted on a private repository on the dockerhub, you need to create a file that contains client login credentials. Once you have this file, you can easily deploy your client application in the Amazon Elastic Kubernetes Service cluster without having to provide user ID and password each time. Let's call this file clientsecrets.yaml and its contents are shown below:

kind: Secret
apiVersion: v1
metadata:
  name: ncache-private
  namespace: ncache
data:
  .dockerconfigjson: >-
    ...
type: kubernetes.io/dockerconfigjson

Execute the following command to run this config inside your Kubernetes environment.

kubectl create -f [dir]/clientsecrets.yaml

Create NCache Client Resource

Now, let's start creating your client resource file that contains information required to deploy and run your client application inside your EKS cluster. Shown below are the contents of this YAML file.

Note

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

kind: Deployment
apiVersion: apps/v1beta1    # it depends on the underlying Kubernetes version
metadata:
  name: client
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: client
    spec:
      nodeSelector:
        "beta.kubernetes.io/os": linux
      containers:
      - name: client
        image: # Your docker client image here
        ports:
        - name: app-port
          containerPort: 80

        # In case of NCache client installation, add the following remaining ports
        - name: management-tcp
          containerPort: 8250
        - name: management-http
          containerPort: 8251
        - name: client-port
          containerPort: 9800

To deploy this file as a pod in the Kubernetes cluster and get it up and running, execute the following command in the AWS command line interface:

kubectl create -f [dir]/client.yaml

The next step is to create an NCache cluster inside your Amazon Elastic Kubernetes Service cluster which is explained in the next chapter.

See Also

Create Access for NCache Management in EKS
Create NCache Client in EKS
Create Cache Cluster in EKS
Monitor Ncache Cluster and Clients in EKS

In This Article
  • Create Client Secret for Amazon Elastic Kubernetes Service
  • Create NCache Client Resource
  • 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