Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

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 outPreview 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 agithub repo.

  1. Login tookteto 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 https://cloud.okteto.comAuthentication willcontinue inyour default browserYou can also open a browser and navigate to the following address:https://cloud.okteto.com/auth/authorization-code?redirect=http%3A%2F%2F127.0.0.1%3A54114%2Fauthorization-code%2Fcallback%3Fstate%3DrLEyJ6RAGEWfybHWg7T4XRqZRJeHxKJLyalxjf0nbPY%3D&state=rLEyJ6RAGEWfybHWg7T4XRqZRJeHxKJLyalxjf0nbPY%3D ✓  Context'cloud.okteto.com' created ✓  Using context ashok-an @ cloud.okteto.com
Enter fullscreen modeExit fullscreen mode
  1. Create a simple manifest file
catokteto.yamlbuild:  api:    context:.deploy:  - kubectl run test-pod--image=${OKTETO_BUILD_API_IMAGE}--restart=Neverdev:  api:command:["bash"]    forward:      - 8080:8080sync:      - .:/src
Enter fullscreen modeExit fullscreen mode

Note: If you have adocker-compose.yaml you can directly useokteto {deploy | up} and it should work

  1. Deploy your app
❯ okteto deploy i  Using ashok-an @ cloud.okteto.com 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=Neverpod/test-pod created
Enter fullscreen modeExit fullscreen mode
  1. VerifyDownload kubeconfig: [Settings] > [Kubernetes Credentials]
exportKUBECONFIG=$HOME/Downloads/okteto-kube.config:${KUBECONFIG:-$HOME/.kube/config}❯ k get podsNAME       READY   STATUS    RESTARTS   AGEtest-pod   1/1     Running   0          5m43s
Enter fullscreen modeExit 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)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Software developer at Cisco working on Kubernetes and related cloud technologies
  • Location
    Bangalore
  • Education
    Engineering
  • Work
    Cisco
  • Joined

More fromAshok Nagaraj

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp