62 lines
1.7 KiB
YAML
62 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: lolympus-tournament-support
|
|
labels:
|
|
app.kubernetes.io/component: api
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: lolympus-tournament-support
|
|
app.kubernetes.io/component: api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: lolympus-tournament-support
|
|
app.kubernetes.io/component: api
|
|
spec:
|
|
serviceAccountName: lolympus-tournament-support
|
|
automountServiceAccountToken: false
|
|
imagePullSecrets:
|
|
- name: harbor-registry
|
|
containers:
|
|
- name: app
|
|
image: registry.dahyeon.us/lolympus/lolympus-tournament-support
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 10712
|
|
protocol: TCP
|
|
env:
|
|
- name: PORT
|
|
value: "10712"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: lolympus-tournament-support-config
|
|
optional: true
|
|
- secretRef:
|
|
name: lolympus-tournament-support-secrets
|
|
optional: false
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
tcpSocket:
|
|
port: http
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop:
|
|
- ALL
|