Skip to content

Instantly share code, notes, and snippets.

View jwsy's full-sized avatar
🇺🇸

Jason Yee jwsy

🇺🇸
View GitHub Profile
@jwsy
jwsy / install_rancher.sh
Last active December 21, 2021 10:02
Script to install rancher on your macOS machine
#!/bin/bash -x
date
### 0. Install helm, kubectl (kubernetes-cli), and k3d with brew
brew install helm k3d kubectl
### 1. Create a cluster with k3d that connects port 443 to the loadbalancer provided by k3d
# Optionally install with more agents `--agents 3`
k3d cluster create k3d-rancher \
--api-port 6550 \
apiVersion: apps/v1
kind: Deployment
metadata:
name: jade-shooter
labels:
app: jade-shooter
spec:
replicas: 1
selector:
matchLabels:
@jwsy
jwsy / Dockerfile
Created April 1, 2022 05:44
jade-shooter Dockerfile
FROM nginxinc/nginx-unprivileged
EXPOSE 8080
COPY index.html /usr/share/nginx/html
COPY scenes /usr/share/nginx/html/scenes
COPY sprites /usr/share/nginx/html/sprites