Closed krasimirdermendzhiev closed 2 years ago
New way to reach registered services. Kyma 2.0 brings some fresh air to the Application Connectivity area.
All Dashboards are accessible trough https://dashboard.kyma.cloud.sap
You need to paste or drag kubeconfig file to connect your cluster.
Privacy Options - ou can choose where to store your cluster configuration. Based on your kubeconfig type, we recommend the pre-selected storage mode. You can choose whatever you prefer for convenience and security. None of the options stores information on the server.
Local storage - Cluster data is persisted between browser reloads.
Session Storage - Cluster data is cleared when the page session end.
In memory: Cluster data is cleared when you leave or refresh the page.
Cluster overview section - you can see versions for kubernetes and Kyma, API server address, Storage Type.
Nodes section - you see your nodes
Message section - you can see all messages for your cluster.
Applications
Methods for creating applcation - Simple, Advanced, YAML
Cluster Addons - look the same.
Cluster Roles
Columns - Name, Created, Labels, Alerts, Configurations
Cluster Role Bindings
Columns - Name, Created, Labels, Role reference, Subjects, Alerts, Configurations
Custom Resource Definitions
Columns - Name, Created, Labels, Scope, Categories, Alerts, Configurations
Grafana
Kiali
Tracing
Native Kubernetes authentication in Kyma
Full list of removed authentication and authorization components:
Ory Oathkeeper without Dex
Service Catalog deprecation update
These are the examples of service operators provided by hyperscale cloud providers that you can use:
Google Cloud Azure AWS
The Service Catalog removal will also affect Application Connectivity in Kyma. Service Catalog objects will not be used anymore, and both ServiceInstances and ServiceBindings will not be required.
Recap At this point XSK is deployed normally. We will check periodically for any new changes.
1. First we need to deploy the Connectivity Gateway.
Go to SAP CP Cockpit, navigate to your subaccount and open the Kyma Console.
Create a namespace <your-namespace>
in which to deploy the connectivity gateway.
In the Kyma Console, go to <your-namespace> -> Service management -> Catalog
Search for Connectivity
and press Add +
to provision a Service Instance
Name
- unique name for your service Instance. The system can automatically generate one.
Plan
- choose the connectivity_proxy plan.
After pressing Create
the Connectivity Service Instance will be created.
In the Kyma Console, go to <your-namespace> -> Service Management -> Instances
Select the Service Instance created in the previous steps, press Add Service Binding +
Name
- unique name for your service binding. The system can automatticaly generate one.
Secret Name
- unique name for your secret. The system can automatically use the same name as for the service binding.
As soon as the Kyma Control Plane detects that the Service Binding was created it will provision Connectivity Proxy in the cluster. The Connectivity Proxy will be deployed in the kyma-system
namespace, and will be accessible within the cluster.
2. Install SAP Cloud Connector and connect it to your subaccount
Start the SAP Cloud Connector. Login with Administraotr / manage
and connect it to your subaccount + Add Subaccount
Region:
<your-kyma-cluster-region>
cf.sap.hana.ondemand.com
You can find it by decoding the Secret for the Service Binding under connectivity_service {... url":"https://connectivity.cf.sap.hana.ondemand.com"}. Alternatively it can be found in the API Endpoint of Cloud Foundry Environment.Subaccount:
<your-subaccount-ID>
Subaccount User / Login E-Mail:
Login credentials of the administrator that will establish the connection (has the right Role Collection assigned)Password:
Password of the administrator
Save and your connection will be established. To validate that go to your SAP BTP Cockpit and in your Subaccount go to Connectivity -> Cloud Connectors
.
3. Deploy XSK and a Sample Docker Application
4. Connecting your Cloud to the On-Premise system
In the Cloud Connector in the Cloud To On-Premise section under your connection ID (subaccount-ID) add a new system mapping:
Back-end Type:
Non-SAP System
Protocol:
HTTP
Internal Host:
localhost
Internal Port:
8080
Virtual Host:
mycomputer
Virtual Port:
8080
Principal Type:
None
Host In Request Header:
Use Virtual Host
Add a new resource accessible on mycomputer:8080
URL Path:
/
Active:
checked
Access Policy:
Path and All Sub-Paths
5. Test the Cloud to On-Premise connection
Discovery and Network -> API Rules
and access your XSK WebIDE
var httpClient = require("http/v4/client");
var response = require("http/v4/response");
var httpResponse = httpClient.get("http://mycomputer:8080/services/v4/web/helloWorld/", { proxyHost: "connectivity-proxy.kyma-system", proxyPort: 20003 });
response.println(httpResponse.statusMessage); response.println(httpResponse.text); response.flush(); response.close();
- Save All, Publish all and Refresh.
This will make a request to the On-Premise application through the Virtual Host (mycomputer) via the `connectivity-proxy` in the `kyma-system` namespace. In the Preview tab we can see that the request is successful and we get the requested page from our docker application.
- Alternatively we can make a `curl` request from the XSK WebIDE's Terminal to the locally hosted application via the connectivity proxy that returns the same HTML page.
dirigible@xsk-665f5d9f4f-2qxz7:~$ curl --proxy http://connectivity-proxy.kyma-system:20003 http://mycomputer:8080/services/v4/web/helloWorld/ <!DOCTYPE html>
Research the new Kyma 2.0 release.