Original Blogpost: digitalocean.com/community/pages/kubernetes-challenge
Deploy a solution for configuring Kubernetes "from the inside" Install Crossplane, which is like Terraform but you manage the infra from inside Kubernetes, not from outside. Crossplane is an open source Kubernetes add-on that enables platform teams to assemble infrastructure from multiple vendors, and expose higher level self-service APIs for application teams to consume, without having to write any code.
I wrote about my journey with this challenge here. Maybe this becomes a blogpost eventually.
In case you want try out what I build, follow the following steps.
This will create a baseline Kubernetes cluster at DigitalOcean.
To deploy to your preferred region, add a -var 'region=<YOUR_REGION>'
to step 3.
cd installation/
terraform init
TF_VAR_do_token=xyz terraform apply
After that, follow the documentation in the Digital Ocean Provider.
I chose the local go run
, since no official docker image is available at the time of writing.
To create your first Droplet via Crossplane run:
$ kubectl apply -f https://raw.githubusercontent.com/crossplane-contrib/provider-digitalocean/main/examples/compute/droplet.yaml
Simple as that!