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
@jwsy
jwsy / README.md
Last active May 31, 2025 06:28
Example mermaid

Example embedded Mermaid.js chart

graph
  10b21d36-0b4c-459a-af5b-742069068b9b((dsp-platform)):::Endpoints
  48830a7c-a0e8-4a2b-90ab-0a3d9749c77b((dsp-platf...)):::Endpoints
  0378b7cb-8270-4e07-b8c7-04e91dc4751b((dsp-platf...)):::ReplicaSet
  27b11465-9286-b07e-61ec-435269ef1bf5((copy-certs)):::Container
  98aec77a-628b-48cd-cb96-231f4b692b0e((postgresql)):::Container
  5f7d1634-181b-44a9-9449-8508a6b8caa3((platform-...)):::Pod