Skip to content

amolvkharche/digitalOceank8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is to create Kubernetes cluster on Digital Ocean.

Create your own terraform.tfvars and add your token from Digital Ocean(API-> Tokens->Generate New Token).

amol@jump~# cat terraform.tfvars

do_token = "blablablahhhhhhhhhhhhh"

amol@jump~#

Additionally, you can modify terraform.tfvars by adding cluster_name, region, node size , K8s version, and node image. you can find the latest tag here https://slugs.do-api.dev/

Initialize directory with terraform.

terraform init

terraform plan

terraform apply

Once terraform is successfully applied, you will see the message below

Outputs:

kubeconfig_path_do = "./kubeconfig"

image

This is your kubecofig file to access your Digital Ocean K8s cluster. export KUBECONFIG=$PWD/kubeconfig

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages