Lewis Denham-Parry

Tidy up Slack (in General)

Salman, Aled and I have been busy setting up a new technology community, Cloud Native Wales. We’re looking to go live and invite people to use some of our tools, but realise that we’ve been using the #general a bit too much and want to remove some of the rubbish prior to going live. Since then, we’ve found out that #general is a privileged channel, and it’s difficult to bulk delete all the messages....

Setting Up Kubernetes On Raspberry Pis - Part 2

Following on from Part 1, we’ll now look to setup kubeadm and kubectl to manage Kubernetes and add nodes. Install kubeadm Add repo lists & install kubeadm $ curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \ echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list && \ sudo apt-get update -q && \ sudo apt-get install -qy kubeadm You now have two new commands installed: kubeadm - used to create new clusters or join an existing one kubectl - the CLI administration tool for Kubernetes Initialize your master node: $ sudo kubeadm init --token-ttl=0 We pass in –token-ttl=0 so that the token never expires - do not use this setting in production....

Setting Up Kubernetes On Raspberry Pis - Part 1

This post is focused on preparing the Raspberry Pi’s prior to setting up Kubernetes. Go back to Part 0 or forward to Part 2 Setup Raspberry Pi Download Raspbian Stretch Lite Download latest version of RASPBIAN STRETCH LITE Setup SD Cards Burn to SD card using ETCHER Boot into Pi Boot up the pi. Login: username: pi password: raspberry Change the default password....

Setting Up Kubernetes On Raspberry Pis - Part 0

These are a selection of links that I’ve used to create the Setting up Kubernetes On Raspberry Pi series. Inspiration How To Build A Kubernetes Cluster With ARM Raspberry Pi Then Run NET Core On OpenFaas K8s on (vanilla) Raspbian Lite Raspberry Pi Raspberry PI Downloads Raspbian Lite Etcher Prometheus Prometheus monitoring Prometheus Node Exporter - Raspberry Pi Kubectl Kubectl Cheatsheet Setup Prometheus Prometheus Node Export Prometheus monitoring Setup OpenFaas Introducing functions as a service Serverless Kubernetes on Raspberry Pi Secure Traefik Integration Kubernetes Access Control Access Control: admin privileges Kubernetes Config Maps Create configmaps from directories Kubernetes Secrets Creating your own secrets Traefik / Lets Encrypt Managing my home with Kubernetes, Traefik and Raspberry Pi’s Kubernetes Ingress Continue to Part 1...

Getting started with OpenFaaS

This is a non-technical review of getting setup on a load of buzz words. Spoiler alert: Its the most fun I’ve had with technology in a long time and is a lot easier than you think thanks to a talented and helpful community. I went to NDC London to go on a two day Kubernetes workshop with Ben Hall and three days of talks. Firstly, the workshop with Ben is fantastic....

Getting started with OpenFaas on Kubernetes with Raspberry Pis

This is a non-technical review of getting setup on a load of buzz words. Spoiler alert: Its the most fun I’ve had with technology in a long time and is a lot easier than you think thanks to a talented and helpful community. I went to NDC London to go on a two day Kubernetes workshop with Ben Hall and three days of talks. Firstly, the workshop with Ben is fantastic....

.Net Standard 101

.net Standard is a contract that allows an API to be Standard compliant. Its not a downloadable package. If you want to support more platforms, aim for a low .net Standard version number to support more frameworks. dotnet Core issues included the API not being familiar to dotnet developers, which is what Core 2.0 aims for. ...

Setting up OpenSSH on Windows Server 2016

Download the latest –zip– file from Github Run script on server to download the file: PS C:\> Invoke-WebRequest https://githu b.com/PowerShell/Win32-OpenSSH/releases/download/v0.0.22.0/OpenSSH-Win64.zip -OutFile openssh.zip Extract the files from the zip file: PS C:\> Expand-Archive .\openssh.zip 'C:\Program Files\' Update the Enviroment Path: PS C:\> ($env:path).split(“;”) PS C:\> $oldpath = (Get-ItemProperty -Path ‘Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment’ -Name PATH).path PS C:\> $newpath = “$oldpath;C:\Program Files\OpenSSH-Win64\” PS C:\> Set-ItemProperty -Path ‘Registry::HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment’ -Name PATH -Value $newPath Can use the following command to create a temporary path:...

Hiding extensions in VS Code

I’ve enjoyed using spell checkers in IDEs, but feel that there should be some boundaries. I couldn’t find a quick way to hide an extension via the IDE UI, so had to look for more information: Open VS Code User Settings: –Code– > –Preferences– > –Settings– ⌘ + , Search for the extension name or –Status Bar– Disabled the extension. References Visual Studio Code User Interface Readme mac command...