Skip to content

Instantly share code, notes, and snippets.

@troygoode
Last active October 10, 2018 16:58
Show Gist options
  • Save troygoode/2fbc4e77d91b8cacf281ff5dc7cb8b98 to your computer and use it in GitHub Desktop.
Save troygoode/2fbc4e77d91b8cacf281ff5dc7cb8b98 to your computer and use it in GitHub Desktop.
Avatar Resizer (k8s)
kind: Service
apiVersion: v1
metadata:
name: lanetix-resizer
labels:
app: lanetix-resizer
spec:
type: LoadBalancer
selector:
app: lanetix-resizer
ports:
- port: 80
targetPort: http-server
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: lanetix-resizer
labels:
app: lanetix-resizer
spec:
replicas: 1
selector:
matchLabels:
app: lanetix-resizer
template:
metadata:
labels:
app: lanetix-resizer
spec:
containers:
- name: lanetix-resizer
image: "willnorris/imageproxy:latest"
imagePullPolicy: Always
command: ["/go/bin/imageproxy -cache memory:256:24h"]
ports:
- name: http-server
containerPort: 8080
@DannyDouglass
Copy link

🚀 🍾

@troygoode
Copy link
Author

@scarney81 where should something like this go? I'm not sure it makes sense to create an entire repo for this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment