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

NOTE: Local installation provides the self-signed certificates out of the box, but if you want to access your API through your browser, you must add them to your local trust store. To do this, call the kyma import certs command with proper permissions. For more information, read Kyma import certs.