pipeline
Some checks failed
Build and Deploy / Build & Push Image (push) Has been cancelled

This commit is contained in:
2026-03-16 13:08:33 -06:00
parent 43dc14745f
commit eed8e0f659
5 changed files with 187 additions and 9 deletions

65
k8s/deployment.yaml Normal file
View File

@@ -0,0 +1,65 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: cobblemon-ui
namespace: minecraft
labels:
app: cobblemon-ui
spec:
replicas: 1
selector:
matchLabels:
app: cobblemon-ui
template:
metadata:
labels:
app: cobblemon-ui
spec:
containers:
- name: cobblemon-ui
image: $IMAGE
ports:
- name: http
containerPort: 4000
env:
- name: PHX_SERVER
value: "true"
- name: PHX_HOST
value: "cobblemon.alexmickelson.guru"
- name: PORT
value: "4000"
- name: SECRET_KEY_BASE
valueFrom:
secretKeyRef:
name: cobblemon-ui-secret
key: secret-key-base
volumeMounts:
- name: cobblemon-data
mountPath: /cobblemon-data
readOnly: true
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
readinessProbe:
httpGet:
path: /
port: 4000
initialDelaySeconds: 10
periodSeconds: 10
failureThreshold: 3
livenessProbe:
httpGet:
path: /
port: 4000
initialDelaySeconds: 30
periodSeconds: 30
failureThreshold: 3
volumes:
- name: cobblemon-data
hostPath:
path: /data/minecraft/cobblemon-data
type: Directory

18
k8s/ingress.yaml Normal file
View File

@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: cobblemon-ui
namespace: minecraft
spec:
ingressClassName: nginx
rules:
- host: cobblemon.alexmickelson.guru
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: cobblemon-ui
port:
number: 80

14
k8s/service.yaml Normal file
View File

@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: cobblemon-ui
namespace: minecraft
labels:
app: cobblemon-ui
spec:
selector:
app: cobblemon-ui
ports:
- name: http
port: 80
targetPort: 4000