• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Deploy NCache Resources in EKS
  • Deploy NCache in EKS Through Operator
  • Create Role Definition 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

Amazon EKS: Create Role Definition

The Service Account created in the previous chapter needs to be governed by some roles. These roles are defined in an orderly fashion as a YAML file and deployed in your Kubernetes cluster.

Amazon EKS: Create Manifest File for Role Definition

To define the roles required by the service account, you need to create a YAML file. The file role.yaml, with its contents, is shown below:

Note

The parameters required to create this YAML file, ready to be deployed, are explained in the Properties section.

kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  creationTimestamp: null
  name: ncache-operator
rules:
- apiGroups:
  - ""
  resources:
  - pods
  - services
  - endpoints
  - persistentvolumeclaims
  - events
  - configmaps
  - secrets
  verbs:
  - '*'
- apiGroups:
  - apps
  resources:
  - deployments
  - daemonsets
  - replicasets
  - statefulsets
  verbs:
  - '*'
- apiGroups:
  - monitoring.coreos.com
  resources:
  - servicemonitors
  verbs:
  - get
  - create
- apiGroups:
  - apps
  resourceNames:
  - ncache-operator
  resources:
  - deployments/finalizers
  verbs:
  - update
- apiGroups:
  - alachisoft.ncache
  resources:
  - '*'
  - ncaches
  verbs:
  - '*'

Create Role Definition in Kubernetes Cluster

Executing the following kubectl command will ensure that the role.yaml file gets deployed within the Amazon EKS cluster.

kubectl create -f [dir]/role.yaml

Properties

The properties required to create a role in Amazon EKS are explained below:

Parameter Description
-kind This can be many different types like a Deployment, a Service, DaemonSet or StatefulSet. In this case it will be a Role.
-apiVersion Specifies the version of the kind and it depends on the underlying version of Kubernetes.
-name Specifies the name of the Operator you will deploy that needs access to the service account.
-rules Specifies the set of rules requited for deployment of the role.
-apiGroups Specifies the name and details of all or some API groups.

The next step is to bind these roles with the service account, the steps of which have been explained in the next chapter.

See Also

Create Service Account
Create Role Binding
Create NCache Operator
Create Custom Resources

In This Article
  • Amazon EKS: Create Manifest File for Role Definition
  • Create Role Definition in Kubernetes Cluster
  • Properties
  • 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