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
alexellis / inlets-kind.md
Last active Jul 14, 2019
Expose Kubernetes ClusterIP services with inlets.dev
View inlets-kind.md

KinD with inlets.dev

Get KinD:

# Linux

sudo curl -Lo /usr/local/bin/kind \
 https://github.com/kubernetes-sigs/kind/releases/download/v0.4.0/kind-linux-amd64
@alexellis
alexellis / insiders-2019-07-12.md
Last active Jul 12, 2019
insiders-2019-07-12.md
View insiders-2019-07-12.md

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 openfaas.com. This starts from 5 USD / mo for exclusive access to updates, news and new content. https://github.com/users/alexellis/sponsorship

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

tunnels are taking over 🤩

@alexellis
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.
hostname
# Use the hardware address of the interface for the Client ID.
View civo-workshop.md
@alexellis
alexellis / GUIDE.md
Last active Jul 10, 2019
Customise OpenFaaS helm chart for Raspberry Pi / ARM
View GUIDE.md

Guide

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
alexellis / seal-it.md
Created Jun 22, 2019
Seal a secret in OFC
View seal-it.md

Seal a secret in OFC

1. Get the CLI

curl -sLS https://cli.openfaas.com | sudo sh

2. Get the public certificate for your instance

@alexellis
alexellis / OAuth2-openfaas.md
Last active Jul 15, 2019
OpenFaaS OAuth2 with Auth0
View OAuth2-openfaas.md

OAuth2 with OpenFaaS

Author: Alex Ellis

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

Update

See the official docs

@alexellis
alexellis / instructions.md
Last active Apr 16, 2019
openfaas-knative-build.yaml
View instructions.md

Create a password regcred:

apiVersion: v1
kind: Secret
metadata:
  name: regcred
  annotations:
    build.knative.dev/docker-0: https://index.docker.io/v1/
type: kubernetes.io/basic-auth
@alexellis
alexellis / build.md
Created Apr 9, 2019
Google Cloud Build with OpenFaaS functions
View build.md

Shrinkwrap / generate build context

git clone https://github.com/alexellis/openfaas-cloud-test
cd openfaas-cloud-test
faas-cli template store pull node8-express
faas-cli build --shrinkwrap

Build with Docker

@alexellis
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:"gcr.io/kaniko-project/executor:debug", ttyEnabled: true, command: "/busybox/cat")
]) {
node(label) {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/alexellis/openfaas-cloud-test']]])
You can’t perform that action at this time.