SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Create a Kyma service account

Learn how to create a Kubernetes service account that you can leverage to interact with your Kyma cluster.

Overview

You will learn

  • What Kubernetes service accounts are used for
  • How to create a new service account
  • How to replace the kubeconfig
Thomas Jung T Thomas Jung August 21, 2026
Created on January 14, 2021
Contributors

More from Thomas Jung

See all 226 tutorials by Thomas Jung →

Prerequisites

Steps

Windows macOS Linux BAS
Step 1 Create a namespace

The kubeconfig file that you are currently using is based on your User Account, which represents a user that has been logged in the Kyma dashboard when you downloaded the kubeconfig.

This tutorial will show you how to create a new kubeconfig file based on a service account. In contrast to the kubeconfig file from the Kyma dashboard, this token is not based on a user and is well-suited for scenarios like CI/CD pipelines. Please note that this could be a potential security issue.

Service accounts are bound to a namespace, so we need to create a new namespace before any service account can be created. Run the following command the create a new namespace “tutorial”:

Shell
kubectl create namespace tutorial
Step 2 Create a service account
+
Step 3 Understand the structure of the configuration file
+
Step 4 Create a new kubeconfig
+
Step 5 Read the config map
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Create a namespace 2. Create a service account 3. Understand the structure of the configuration file 4. Create a new kubeconfig 5. Read the config map