infra/k8s/s3staticsites/deployment.yaml

43 lines
801 B
YAML
Raw Permalink Normal View History

2024-04-01 06:47:27 +00:00
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