This commit is contained in:
65
k8s/deployment.yaml
Normal file
65
k8s/deployment.yaml
Normal 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
|
||||
Reference in New Issue
Block a user