$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
$ kubectl port-forward --address 0.0.0.0 -n ingress-nginx service/ingress-nginx-controller 8443:443
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
reverse-proxy: | |
image: traefik:v2.3.4 | |
command: | |
# Docker swarm configuration | |
- "--providers.docker.endpoint=unix:///var/run/docker.sock" | |
- "--providers.docker.swarmMode=true" | |
- "--providers.docker.exposedbydefault=false" |
The simpeest way to install kubernetes is via https://k0sproject.io
$ \
curl -sSLf https://get.k0s.sh | sudo sh
$ \
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 &&\
sudo install minikube-linux-amd64 /usr/local/bin/minikube
$ # minikube via docker
$ # -------------------
$ \
minikube start
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM marcelmaatkamp/cosmopolitan as cosmopolitan | |
FROM ubuntu | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN \ | |
apt-get update && apt-get install -yf \ | |
make \ | |
autoconf \ | |
automake \ | |
zip \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gcc \ | |
-I/usr/local/include -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -fno-omit-frame-pointer -pg -mnop-mcount\ | |
conftest.c -o conftest.dbg\ | |
-fuse-ld=bfd -Wl,-T,/cosmopolitan/ape.lds -include /cosmopolitan/cosmopolitan.h /cosmopolitan/crt.o /cosmopolitan/ape.o /cosmopolitan/cosmopolitan.a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./configure \ | |
CFLAGS="-I/usr/local/include -include /cosmopolitan/cosmopolitan.h -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -fno-omit-frame-pointer -pg -mnop-mcount" \ | |
CPPFLAGS="-I/usr/local/include -include /cosmopolitan/cosmopolitan.h -g -Os -static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -fno-omit-frame-pointer -pg -mnop-mcount" \ | |
LIBS="-fuse-ld=bfd -Wl,-T,/cosmopolitan/ape.lds -include /cosmopolitan/cosmopolitan.h /cosmopolitan/crt.o /cosmopolitan/ape.o /cosmopolitan/cosmopolitan.a" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://github.com/Yardanico/cosmonim/blob/master/nim.cfg | |
--os:linux | |
# --gc:arc - Not required, but I prefer ARC/ORC over refc for things like this | |
# Define cosmLibc so we can patch stdlib easier | |
-d:cosmLibc | |
--passC:"-Istubs -Icosmopolitan" | |
--passC:"-static -nostdlib -nostdinc -fno-pie -no-pie -mno-red-zone -include cosmopolitan.h" |