Month: November 2021

  • Golang and MySQL – DigitalOcean managed cluster

    Hey everyone, Just sharing a helper function to get you started when trying to connect to a mysql managed cluster on DigitalOcean with Golang. Before we get into the code you’ll need to grab a couple of things from the database dashboard (on DigitalOcean). Open the databases tab Look for the “Connection Details” section Download…

  • failed to connect to the database: default addr for network unknown – MySql and Golang

    Hey everyone, I’m currently setting up a mysql database on DigitalOcean and hit the following error when connecting: failed to connect to the database: default addr for “DATABASE_CONN_STR” network unknown Luckily this turned out to be a pretty easy fix. In the mysql driver repo you can see that the only scenario where this error…

  • Configure AWS Route53 domain to point to DigitalOcean name servers

    Configure AWS Route53 domain to point to DigitalOcean name servers

    Hey everyone, This is a quick post on how to point your AWS Route53 domain to DigitalOcean. I’m currently messing around with Kubernetes on DigitalOcean (DOKS) and want to use their name servers to nginx. The guide I was following (https://github.com/digitalocean/Kubernetes-Starter-Kit-Developers/blob/main/03-setup-ingress-controller/nginx.md) was missing a specific walkthrough for Route53 so I’m just posting what I did…

  • No matches for kind “Deployment” in version “apps/v1beta2” – DigitalOcean

    Hey everyone, I’ve been working on a small golang app and decided to try out Kubernetes on DigitalOcean instead of the usual Azure or AWS. In order to get started I followed the tutorial at this link: https://www.digitalocean.com/community/tutorials/webinar-series-a-closer-look-at-kubernetes I ran into a small issue while trying to using the provided deployment.yaml. error: unable to recognize…

Create a website or blog at WordPress.com