Skip to content

Instantly share code, notes, and snippets.

@codeopensrc
codeopensrc / ls.sh
Created January 25, 2017 20:50
Whitelistable basic `ls` command
PATTERN=*.git
find . -iname '$PATTERN' | sed -e s%./%%g | column
@codeopensrc
codeopensrc / cmds.MD
Last active May 14, 2020 21:14
List and examples of some of my commonly used commands
@codeopensrc
codeopensrc / k8s-nameservers-fix.md
Last active January 6, 2025 23:10
Fix for kubernetes on DigitalOcean `Nameserver limits exceeded" err="Nameserver limits were exceeded, some nameservers have been omitted`

Fix for kubernetes on DigitalOcean Nameserver limits exceeded" err="Nameserver limits were exceeded, some nameservers have been omitted, the applied nameserver line is: 11.111.11.1 11.111.11.2 11.111.11.1" (example IP addresses used)

After ignoring the error for a bit, I finally had to absolutely solve it due to being unable to deploy a prometheus chart inside my kubernetes cluster.

This isn't really a step-by-step but more an accumulation of resources used/found to finally help solve my problem

TL;DR

  • Modify /etc/netplan/50-cloud-init.yaml removing some entries from IFACE.nameservers.address
    • netplan apply to apply changes
  • resolvctl to see changes to DNS Servers stanza for the IFACE modified