Skip to content

lechnerc77/kyma_for_dymmies_2_and_3

Repository files navigation

Kyma for Dymmies [2] and [3] - The unofficial Code Repo

This repository contains the code used in the blog blog posts Kyma for Dymmies [2]: First Simple Microservice with Security and Kyma for Dymmies [3]: calling secured service with REST client

Prerequisites

There are two prerequisites in order to make use of all parts of the repo:

How to use

  1. Clone the repo.

  2. Put your DockerHub ID in the file Makefile to replace <YOUR_DOCKER_ID>.

  3. Create and push your Docker image via make push-image.

  4. Put your DockerHub ID in the file deployment.yaml to replace <YOUR_DOCKER_ID>.

  5. Create the relevant objects in Kyma:

    • The deployment objects via kubectl -n <YOUR_NAMESPACE> apply -f ./k8s/deyployment.yaml
    • The service object via kubectl -n <YOUR_NAMESPACE> apply -f ./k8s/service.yaml
    • The API rule object via kubectl -n <YOUR_NAMESPACE> apply -f ./k8s/apirule.yaml
  6. After the deployment to Kyma, fetch the domain of your Kyma cluster and put it in the file requests.http to replace <YOUR_KYMA_DOMAIN>.

  7. After the creatiion of the OAuth2 client, put the values for client id and client secret into the file requests.http to replace <YOUR_CLIENT_ID> and <YOUR_CLIENT_SECRET>

  8. Execute the calls to the different Kyma endpoints.

About

Source Code for Kyma for Dymmies blog posts 2 + 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published