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

Azure AKS - Create Service Account in Kubernetes

In your Azure AKS cluster, a Service Account provides an identity for all processes that run in a pod. These processes can talk to the API server only if a Service Account has been defined.

To create a service account in your Azure AKS cluster, follow these steps:

Azure AKS: Create Service Account Manifest File

To create a Service Account, you need to create its YAML file for deployment. Let's call this file service_account.yaml and its content is shown below:

Note

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

kind: ServiceAccount
apiVersion: v1
metadata:
  name: ncache-operator

Deploy Service Account

Once you have created a YAML file, it is ready to be deployed in your Azure AKS cluster. Run the following command in the cloud shell to set a service account for the processes inside the cluster:

kubectl create -f [dir]/service_account.yaml

You can verify the successful creation of this account by executing get verb as follows:

kubectl get serviceaccounts

Properties

The properties required to create a service account 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 ServiceAccount .
-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.

After the successful execution of this command, you need to create a Role definition, the steps of which are explained in the next chapter.

See Also

Create Role Definition in Kubernetes
Create Role Binding in Kubernetes
Create NCache Operator in Kubernetes

In This Article
  • Azure AKS: Create Service Account Manifest File
  • Deploy Service Account
  • 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