52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: scripts-caddy-deployment
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: scripts-caddy
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: scripts-caddy
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: scripts-caddy
|
||
|
image: scripts
|
||
|
ports:
|
||
|
- name: container-port
|
||
|
containerPort: 80
|
||
|
livenessProbe:
|
||
|
httpGet:
|
||
|
path: /quickbar/extendedPlayerProfile.js
|
||
|
port: container-port
|
||
|
initialDelaySeconds: 5
|
||
|
periodSeconds: 5
|
||
|
readinessProbe:
|
||
|
httpGet:
|
||
|
path: /quickbar/extendedPlayerProfile.js
|
||
|
port: container-port
|
||
|
initialDelaySeconds: 5
|
||
|
periodSeconds: 10
|
||
|
resources:
|
||
|
requests:
|
||
|
cpu: 50m
|
||
|
memory: 64Mi
|
||
|
limits:
|
||
|
cpu: 100m
|
||
|
memory: 128Mi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: scripts-caddy-service
|
||
|
spec:
|
||
|
ports:
|
||
|
- port: 80
|
||
|
targetPort: 80
|
||
|
protocol: TCP
|
||
|
name: http
|
||
|
selector:
|
||
|
app: scripts-caddy
|