Infrastructure 2021-03-07

Trying Managed Kubernetes on DigitalOcean

Exploring the use of managed Kubernetes on DigitalOcean for personal development and learning.

Read in: ja
Trying Managed Kubernetes on DigitalOcean

Trying Managed Kubernetes on DigitalOcean

I wanted to use k8s for personal development and learning, and after considering various options, I found that DigitalOcean seemed like a good choice, so I decided to give it a try.

www.digitalocean.com - The best managed Kubernetes service is the one that’s made for you

If you're starting fresh, I think it's a good idea to use promotional links or coupons.

I forgot to register through the promotional link and missed out on getting credits initially, but when I inquired, they were kind enough to assist me (I received credits). I'm grateful for that.

I'll leave a referral link here just in case.

https://m.do.co/c/9fbf85c22695

Good Points About DigitalOcean

Before discussing managed Kubernetes, I'll outline some of the good points about DigitalOcean.

There are many features that make you want to use DigitalOcean even without using Kubernetes.

Overview of DigitalOcean's Managed Kubernetes

I will summarize the overview based on www.digitalocean.com - docs/kubernetes.

Trying It Out

Now, I will actually try out DigitalOcean's managed Kubernetes service.

Starting a Kubernetes Cluster

I started a Kubernetes cluster with the following configuration.

The monthly fee is about this much. MONTHLY RATE $20.00/month $0.03/hour

Installing kubectl and doctl on Local Environment

Refer to the following for kubectl. kubernetes.io - install-kubectl

brew install doctl

Preparing Personal Access Tokens

You can check Personal access tokens from the API menu on the dashboard. Initially, it will only have READ permissions, so grant WRITE permissions as well and keep the token safe. *It seems that the token is not generated on the first time, so you need to regenerate the token to issue it. Alternatively, creating a new token should also be fine.

Connecting to the Cluster

First, authenticate.

doctl auth init

Check the list of clusters.

doctl kubernetes cluster list

Specify the cluster name to connect to and add the context (./kube/config will be updated).

doctl kubernetes cluster kubeconfig save CLUSTER_NAME

Check the nodes.

kubectl get no

Now that I am ready to deploy a sample application, it would be good to try something like github.com - digitalocean/doks-example. Be careful as a load balancer will be created, which will incur charges.

Thoughts

Creating a k8s environment with the lowest configuration on GKE is also attractive, but for personal use, DigitalOcean might be a better choice for managed services.

I might be a bit sensitive, but I'm concerned about the pay-as-you-go transfer charges, so I will continue to consider Conoha.

References

Tags: Kubernetes VPS DigitalOcean
Share: 𝕏 Post Facebook Hatena
✏️ View source / Discuss on GitHub
β˜• Support

If you enjoy this blog, consider supporting it. Every bit helps keep it running!


Related Articles