DEV Community

Cover image for Okteto-cloud - more than a free kubernetes sandbox
Ashok Nagaraj
Ashok Nagaraj

Posted on

Okteto-cloud - more than a free kubernetes sandbox

Okteto cloud is a free, online kubernetes namespace as a service (with quotas applied). It helps users to:

  • get a forever free kubernetes namespace
  • get the first-hand UX that okteto offers (being fully compatible with okteto cli)
  • try out Preview environments
  • deploy from your github repos
  • deploy from your online/published helm charts
  • inject environment variables through okteto secrets

The Developer plan (default) is a boon for day to day ad hoc kubernetes based workflows (when there are no security concerns or corporate restrictions). Quota restrictions do apply, but quotas are generous

The login is through one's github credentials. For this post I have a github repo.

  1. Login to okteto cloud with your github credentials and authorize okteto to see your github repo [Settings] > [Integrations] > [GitHub] > [Configure GitHub]

Image description

Image description

  1. Install and configure okteto cli
❯ okteto context use
Authentication will continue in your default browser
You can also open a browser and navigate to the following address:
 ✓  Context '' created
 ✓  Using context ashok-an @

Enter fullscreen mode Exit fullscreen mode
  1. Create a simple manifest file
cat okteto.yaml
    context: .
  - kubectl run test-pod --image=${OKTETO_BUILD_API_IMAGE} --restart=Never
    command: ["bash"]
      - 8080:8080
      - .:/src
Enter fullscreen mode Exit fullscreen mode

Note: If you have a docker-compose.yaml you can directly use okteto {deploy | up} and it should work

  1. Deploy your app
❯ okteto deploy
 i  Using ashok-an @ as context
 i  Images were already built. To rebuild your images run 'okteto build' or 'okteto deploy --build'
 i  Running kubectl run test-pod --image=${OKTETO_BUILD_API_IMAGE} --restart=Never
pod/test-pod created

Enter fullscreen mode Exit fullscreen mode
  1. Verify Download kubeconfig: [Settings] > [Kubernetes Credentials]
export KUBECONFIG=$HOME/Downloads/okteto-kube.config:${KUBECONFIG:-$HOME/.kube/config}

❯ k get pods
test-pod   1/1     Running   0          5m43s
Enter fullscreen mode Exit fullscreen mode

Image description

Of-course there are more things that can be tried, the UI is very intuitive with prompts and notes; go-ahead and explore!

Top comments (0)