Deploy and expose a Function

Now that you've installed Kyma, let's deploy your first Function. We'll call it hello-world.

Create a function

First, let's create the Function and apply it.

  • Kyma Dashboard
  • kubectl

Verify the Function deployment

Now let's make sure that the Function has been deployed successfully.

  • Kyma Dashboard
  • kubectl

Expose the Function

After we've got our hello-world Function deployed, we might want to expose it outside our cluster so that it's available for other external services.

CAUTION: Exposing a workload to the outside world is always a potential security vulnerability, so tread carefully. In a production environment, always secure the workload you expose with OAuth2 or JWT.

First, let's create an APIRule for the Function.

  • Kyma Dashboard
  • kubectl

Verify the Function exposure

Now let's verify that the Function has been exposed successfully.

  • Kyma Dashboard
  • kubectl