Skip to content

Instantly share code, notes, and snippets.

On vacation

Alex Ellis alexellis

On vacation
Block or report user

Report or block alexellis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
alexellis /
Last active Jul 14, 2019
Expose Kubernetes ClusterIP services with

KinD with

Get KinD:

# Linux

sudo curl -Lo /usr/local/bin/kind \
alexellis /
Last active Jul 12, 2019

Logs go native in OpenFaaS, tunnels are taking over, moar k3s and GitOps without Kubernetes?

Welcome to this week's Insiders Update, Insiders are those who are sponsoring me on GitHub, backing me on Patreon, or companies sponsoring This starts from 5 USD / mo for exclusive access to updates, news and new content.

Derek - try Derek, he helps with the GitHub mobile experience and adds the missing "curator" role for teams

tunnels are taking over 🤩

alexellis / dhcpcd.conf
Last active Jul 6, 2019
k30s configuration scripts
View dhcpcd.conf
A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
# Use the hardware address of the interface for the Client ID.
alexellis /
Last active Jul 10, 2019
Customise OpenFaaS helm chart for Raspberry Pi / ARM


You can use the OpenFaaS helm chart to generate custom YAML files for your OpenFaaS installation on ARMHF and ARM64.

Why? tiller is not available for ARM so we cannot customize the chart that way. So instead we ship some defaults for the community which you can then tweak as you see fit.

But what might you want to change?

  • httpProbe - this is a much faster way to check functions are healthy than the default execProbe
alexellis /
Created Jun 22, 2019
Seal a secret in OFC

Seal a secret in OFC

1. Get the CLI

curl -sLS | sudo sh

2. Get the public certificate for your instance

alexellis /
Last active Jul 15, 2019
OpenFaaS OAuth2 with Auth0

OAuth2 with OpenFaaS

Author: Alex Ellis

Objective: Log into UI portal using JWT token and social login.


See the official docs

alexellis /
Last active Apr 16, 2019

Create a password regcred:

apiVersion: v1
kind: Secret
  name: regcred
alexellis /
Created Apr 9, 2019
Google Cloud Build with OpenFaaS functions

Shrinkwrap / generate build context

git clone
cd openfaas-cloud-test
faas-cli template store pull node8-express
faas-cli build --shrinkwrap

Build with Docker

alexellis / kaniko_jenkins.groovy
Last active Mar 28, 2019
OpenFaaS Kaniko Jenkins Pipelines Gist
View kaniko_jenkins.groovy
// this guarantees the node will use this template
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label,
containers: [
containerTemplate(privileged: false, name: 'faascli', image: 'openfaas/faas-cli:0.8.6', ttyEnabled: true, command: 'cat'),
containerTemplate(name: "kaniko", image:"", ttyEnabled: true, command: "/busybox/cat")
]) {
node(label) {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: '']]])
You can’t perform that action at this time.