Skip to main content

Deploy a Workload

Kadras Engineering Platform provides capabilities to support application deployment workflows from image to URL based on Knative or plain Kubernetes.

First, ensure you have the Knative CLI installed.

Then, deploy an application from its OCI image in the apps workspace.

kn service create hello --image ghcr.io/knative/helloworld-go --user 1001 -n apps

The workspace enforces the restricted Pod Security Standard. Knative sets most of the required security settings on the application containers for you, like dropping all capabilities, and requires them to run as a non-root user. The sample image runs as root by default, so it's run with a non-root user via --user.

The application will be available through a local URL with a self-signed certificate and autoscaling capabilities. The URL follows the <name>.<workspace>.<domain> pattern. The certificate is issued by the private certificate authority of the platform, so skip its verification.

curl -k https://hello.apps.127.0.0.1.sslip.io

Knative scales the application down to zero when it doesn't receive requests for a while, and back up at the next request.

kubectl get pods -n apps --watch

When you're done, you can delete the application.

kn service delete hello -n apps

Next, learn how to give your team access to the workspace in Workspaces and Access.