Skip to content

Instantly share code, notes, and snippets.

View thomasxd24's full-sized avatar
🙃
Speedrunning all the projects

Thomas Tse thomasxd24

🙃
Speedrunning all the projects
View GitHub Profile
@thomasxd24
thomasxd24 / cloud-config.yml
Last active April 17, 2020 08:44 — forked from janeczku/cloud-config.yml
Example RancherOS configuration
#cloud-config
hostname: rancher
ssh_authorized_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOzf3cFl33wdzhYYyLDrqpbsM30p9pS4K0GQsEBS+zGjtcCc7WgGumVxKKSkqpvO9JRsdIRShfk2XffQ25qX+BVSQwefHGr0ny17zfdXK+3jjofyYTH9yI7pHO0L/xTjpM+Bo2hAcN+TSCYYwPyx7RUFYCWTxlc1CMR+6Q65QTLXnAMth7qihZ5tradq3ZODooFBu44VMUpMEoMnYGtHiGLu7z92WuuodLptaZ/d5LfflIbrw5fiR9Kr77mhnYAi1s7bNZde6Imfa7V2MnrTJfncQvOJd7XV3xEgGWIwaFyOS35FrK7EvbzqzU6pPcR9pYLo/0JmkK8Y6gSoCJxUVJ root@srv2
final_message: "The system is finally up, after $UPTIME seconds"
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
annotations:
cni.projectcalico.org/podIP: 10.42.0.3/32
creationTimestamp: "2020-04-10T10:10:17Z"
generateName: default-http-backend-97bf46cd4-
labels:
apiVersion: v1
kind: Service
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app":"default-http-backend"},"name":"default-http-backend","namespace":"ingress-nginx"},"spec":{"ports":[{"port":80,"targetPort":8080}],"selector":{"app":"default-http-backend"}}}
creationTimestamp: "2020-04-10T10:10:18Z"
labels:
app: default-http-backend
name: default-http-backend
apt install curl -y
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
@thomasxd24
thomasxd24 / teststack1.yml
Last active May 29, 2020 09:17
Traefik Stack yml
version: "3.3"
networks:
traefik:
external: true
services:
traefik:
image: "traefik:v2.2"
networks:
version: "3.3"
networks:
traefik:
external: true
services:
traefik:
image: "traefik:v2.2"
version: "3"
services:
mongo1:
image: mongo:4.2
command: mongod --replSet rs1 --noauth --oplogSize 3
ports:
- 27017:27017
environment:
TERM: xterm
version: '3'
services:
pritunl:
image: 'jippi/pritunl:latest'
privileged: true
ports:
- '1194:1194/udp'
- '1194:1194/tcp'
networks:
version: "3.3"
networks:
traefik:
external: true
mongodb_mongo:
external: true
services:
foodtime-service:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet dhcp
gateway 10.0.10.100