Last active
October 10, 2018 16:58
-
-
Save troygoode/2fbc4e77d91b8cacf281ff5dc7cb8b98 to your computer and use it in GitHub Desktop.
Avatar Resizer (k8s)
This file contains 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
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 |
@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
🚀 🍾