Get started in 5 minutes

Okteto Cloud gives you free access to our multi-tenant Kubernetes cluster. Login with Github, download your Kubernetes credentials, and get full access to your Kubernetes namespace. It’s that simple.

This tutorial will show you how to create an account in Okteto Cloud and how to deploy a sample application using Kubernetes manifests. Okteto Cloud is compatible with any Kubernetes tool.

Step 1: Create your Okteto Cloud account

Login with Github into Okteto Cloud. Okteto Cloud gives you access to your own namespace in our multi-tenant Kubernetes cluster. This namespace is configured automatically to include network policies, quotas, pod security policies, admission webhooks, roles, role bindings, and limit ranges. This way, your applications are isolated respect to other developer namespaces.

Step 2: Download your Kubernetes credentials

Download your Kubernetes credentials from Okteto Cloud and save them in a well-known location. You should find the Credentials button at the top menu of the main screen:

Point your KUBECONFIG environment variable to the credentials file you just downloaded:

MacOS/Linux:

1
$ export KUBECONFIG=$HOME/Downloads/okteto-kube.config:${KUBECONFIG:-$HOME/.kube/config}

Windows:

1
> $Env:KUBECONFIG=("$HOME\Downloads\okteto-kube.config;$Env:KUBECONFIG;$HOME\.kube\config")

To see that the new configuration is working, enter this command:

1
2
$ kubectl get all
No resources found.

If you don’t have kubectl installed, follow this guide.

Step 3: Deploy the Sample Application

To get a local version of the sample application that you can then deploy to Okteto Cloud, execute the following commands in your local terminal:

1
2
$ git clone https://github.com/okteto/samples
$ cd samples/golang

You now have a functioning git repository that contains a sample golang application. In the manifest/ directory you also have the Kubernetes manifests needed to deploy the application.

Deploy the application by executing the command below:

1
$ kubectl apply -f manifests
1
2
deployment.apps/hello-world created
service/hello-world created

Your application is now ready! Open your browser and go the URL of the application. You can get the URL by logging into Okteto Cloud and clicking on the application’s endpoint.

Did you notice that you are accessing your application through an SSL endpoint? This is because Okteto Cloud will automatically create them for you when you deploy your application. Cool no 😎?

Congratulations, you just deployed your first application in Okteto Cloud 🚀.

Next steps

Deploying a Kubernetes application in Okteto Cloud is that simple. Head over to our guide on how to use Okteto Cloud to improve your development workflow in Kubernetes.

Got questions? Join the conversation in our Kubernetes Slack channel! If you don’t have a Kubernetes slack account yet, sign up here. We’d love to hear from you 😄.