Long Strange Trip

  • pause: how to debug your Kubernetes setup

    pause: how to debug your Kubernetes setup

    Sometimes you need a debug container hanging around to check something from within your kubernetes cluster. Here tis.

  • When you throw in the towel on declarative

    When you throw in the towel on declarative

    I’ve talked a lot recently about the declarative versus imperative viewpoints. Its the Lilliput vs Blefuscu of our time. Its the vi versus emacs saga. Today I ran into a scenario that I just threw in the towel on. I had a largish yaml file (~300 lines) that is actually a config to a container…

  • Gitlab via the API: prepare a repo with automatic deploy keys and protected branches/tags

    Gitlab via the API: prepare a repo with automatic deploy keys and protected branches/tags

      You have a whole mess of gitlab repo. You want to make them ready to use (protect master so only accepts merge, protect v* tags to prevent overwrite version, add a deploy key). And you are lazy. Have I the tool for you. First, make sure you have python-gitlab installed: pip3 install –upgrade python-gitlab…

  • Ancient wisdom of books?

    Ancient wisdom of books?

    Dan Brown has made a pretty decent career along the lines of “find a book with missing ancient wisdom, mayhem ensues, starring tom hanks” (with 1 paragraph cliff-hanger chapters). The theme of ‘someone smart wrote it down and then we forgot it’ gives value to those ancient books.

  • Multiple Kubernetes contexts and your multi-coloured prompt

    Multiple Kubernetes contexts and your multi-coloured prompt

    You are working with multiple clouds. But, you keep changing context and then accidentally applying something. Ooops. If only this could be simpler. Drop these two bits in your .bashrc. Now you can simply say ‘context foo’ and be in that context with a little bit of colour in your prompt to remind you. Side…