Skip to content

Instantly share code, notes, and snippets.

View alexellis's full-sized avatar
📖
Check out my eBook on Go

Alex Ellis alexellis

📖
Check out my eBook on Go
View GitHub Profile
@berndtj
berndtj / dispatch.md
Last active February 14, 2018 08:44
Instructions for using Ubuntu OVA

OpenFaas on Google Container Engine

Setting up faas-netes cli

TODO: add this step combine with https://github.com/openfaas/faas-netes/blob/master/HELM.md

gcloud container clusters get-credentials ${CLUSTER-NAME} --zone us-central1-a --project ${PROJECT-ID}
git clone https://github.com/openfaas/faas-netes
cd faas-netes
@johnmccabe
johnmccabe / README.md
Last active January 18, 2021 14:29
Running OpenFaaS on Windows 10 - using Docker Swarm on Hyper-V
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch registry
docker-machine ssh registry docker run -d -p 5000:5000 --restart=always --name registry registry:2
docker-machine ls # get the ip address of the VM, in this case 10.10.10.197
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch --engine-insecure-registry 10.10.10.197:5000 swarm-1
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch --engine-insecure-registry 10.10.10.197:5000 swarm-2
docker-machine create --driver hyperv --hyperv-virtual-switch ExternalSwitch --engine-insecure-registry 10.10.10.197:5000 swarm-3
docker-machine ssh swarm-1 docker swarm init  # copy the swarm join command to run on each other hose
docker-machine ssh swarm-2 docker swarm join --token SWMTKN-1-mysecrettoken 10.10.10.198:2377
docker-machine ssh swarm-3 docker swarm join --token SWMTKN-1-mysecrettoken 10.10.10.198:2377
@h-a-t-zz
h-a-t-zz / Dockerfile
Last active November 10, 2017 22:57
nmap RCE
FROM alexellis2/faas-alpinefunction:latest
RUN apk update && apk add nmap
ENV fprocess="xargs nmap"
CMD ["fwatchdog"]
@danigian
danigian / Get OpenFaaS on ACS.md
Last active September 26, 2017 16:11
Get OpenFaaS running on Azure Container Service with Kubernetes

Get OpenFaaS running on Azure Container Service with Kubernetes

Pre-requisites

Deploying ACS with Kubernetes

@tonistiigi
tonistiigi / paint_status.go
Created September 16, 2017 00:39 — forked from alexellis/paint_status.go
paint_status.go
package main
import (
"fmt"
"os/exec"
"strings"
"sync"
"github.com/morikuni/aec"
)
@ecliptik
ecliptik / bucketbench-output-docker.md
Last active September 16, 2017 21:44
Bucketbench on Packet.net Type 2A Instance with Docker v17.07.0-ce

Results

./bucketbench --log-level=debug run -b examples/docker.yaml threads: 3

SUMMARY TIMINGS/THREAD RATES           

                      Iter/Thd    1 thrd   2 thrds   3 thrds   4 thrds   5 thrds   6 thrds   7 thrds   8 thrds   9 thrds  10 thrds                           
               Limit      1000    218.64    314.52    353.42    354.66    347.47    318.98    302.99    289.11    282.92    273.01                           
@alexellis
alexellis / k8s-pi.md
Last active April 11, 2024 14:17
K8s on Raspbian
@dghubble
dghubble / kubeception.md
Last active April 24, 2024 18:29
Running QEMU/KVM and Nested Kubernetes on Bare-Metal Kubernetes
@Knight1
Knight1 / packet.net
Last active May 3, 2018 04:31
Check Packet.net availability of specific server type in every location and ~💵 not collected per month
#!/bin/bash
#Usage: default is Type 2a. If you wish another server type use ./packet.net 1/2/3
#See https://www.packet.net/bare-metal/
#Obtain api key here => https://app.packet.net/portal#/api-keys
KEY=
if [[ -z ${1+x} ]]; then
PLAN=2a
else