SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

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

🎓 beginner 10 min. SAP Btp, Kyma RuntimeBeginnerSAP Business Technology PlatformFree Tier

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 January 14, 2025
Created by January 13, 2021
Contributors

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

Learn more →