Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to run UI5 applications on SAP Kyma

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you how to run UI5 applications on SAP Kyma. The content is very detailed. Interested friends can refer to it for reference. I hope it can help you.

Although SAP Kyma is also based on Kubernetes, if Kyma is only used as a normal Kubernetes cluster, it may not even use Kyma 1% of the features.

As an extension tool to SAP's C/4HANA product line, Kyma is as important to C/4HANA as SAP Cloud Platform is to SAP and cannot be overstated.

Since SAP Kyma's primary purpose is to extend C/4HANA, why introduce how to run SAP UI5 apps on top of it?

Like programmers learning any new technology always like to start with the simplest Hello World, running UI5 apps on SAP Kyma is one of the best ways to step from comfort zone to learning zone and familiarize ourselves with Kyma.

Here's how to run a UI5 app on Kyma step by step.

As a prerequisite, you need to have a UI5 app running properly locally and then package it into a Docker image with a Web server such as Nginx.

Xiaobian has uploaded the image containing the UI5 application for testing to the Docker hub website, named i042416 / ui5-nginx:

https://hub.docker.com/

(1)Go to Kyma's console and download the config file locally.

What's this file for? Recall Kyma's architecture diagram, Jerry emphasized that Kyma's bottom layer is based on Kubernetes:

As Kubernetes users, we either use Kubernetes workbench cockpit or command-line tools to interact with Kubernetes cluster master nodes, just as we use SAP Cloud Platform cockpit or cf command-line tools to interact with SAP Cloud Platform CloudFoundry environments.

When logging in to SAP Cloud Platform CloudFoundry environment with cf login, we need to specify an API endpoint, then use the command line to operate Kubernetes. Similarly, we need to tell the Kubernetes API server connection information at the remote end of the command line. This information is maintained in the config file just downloaded from Kyma console.

Open this config file and find that it does maintain the address of the Kubernetes API server, as well as the username of the download config file and the Bearing token of OAuth 2.0. With this token, every time we execute a command on the Kubernetes master node with the Kubernetes command-line tool, we are actually making a Restful request to the API server maintained in this config file. By authenticating with this OAuth 2.0 Bearer token, we eliminate the hassle of having to enter a username and password every time we type a command.

Search for the keyword "kubectl" on the search engine, download this command line tool locally, create a new.kube folder under the user folder, and put the configuration files in it.

Execute kubectl cluster-info command line, if you see the following printed message, it means that local kubectl has successfully established communication connection with API server.

(2)Run this Docker image on Kyma:

kubectl run jerry-kyma-ui5 --image=i042416/ui5-nginx:v2.0

A pod was successfully created under the default namespace with the status Running:

A command-line deployment named jerry-kyma-ui5 is also created:

This pod and deployment can also be seen in the Kyma web console:

Expose this deploymen in the form of service:

kubectl expose deployment jerry-kyma-ui5 --type=LoadBalancer --port=80 --target-port=80

Get the External-IP of this service through kubectl get service, that is, the address that can be accessed externally:

Enter the IP address in the browser, and the UI5 application deployed on SAP Kyma will appear in front of us.

About how to run UI5 applications on SAP Kyma to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report