add s3staticsites

This commit is contained in:
Finn 2024-03-31 23:47:27 -07:00
parent 9eb42fcaad
commit a8f7b6bc9f
3 changed files with 74 additions and 0 deletions

View file

@ -27,3 +27,8 @@ apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: matrix name: matrix
---
apiVersion: v1
kind: Namespace
metadata:
name: s3staticsites

View file

@ -0,0 +1,42 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: s3staticsite
name: s3staticsite
namespace: s3staticsites
spec:
replicas: 2
selector:
matchLabels:
app: s3staticsite
template:
metadata:
labels:
app: s3staticsite
spec:
containers:
- image: git.janky.solutions/finn/s3staticsite:latest
name: s3staticsite
resources: {}
envFrom:
- secretRef:
name: s3staticsites
env:
- name: S3_ENDPOINT
value: storage.home.finn.io
ports:
- name: http
containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: s3staticsites
namespace: s3staticsites
spec:
ports:
- name: http
port: 5000
selector:
app: s3staticsite

View file

@ -0,0 +1,27 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: s3staticsites
namespace: s3staticsites
spec:
rules:
- host: dev-artifacts.entanglement.garden
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: s3staticsites
port:
name: http
- host: artifacts.entanglement.garden
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: s3staticsites
port:
name: http