85 lines
2.1 KiB
YAML
85 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: wetalk
|
|
namespace: wetalk
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: wetalk
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: wetalk
|
|
spec:
|
|
containers:
|
|
- name: wetalk
|
|
image: git.arthurbarre.fr/ordinarthur/wetalk:latest
|
|
ports:
|
|
- containerPort: 80
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "64Mi"
|
|
cpu: "100m"
|
|
|
|
- name: wetalk-api
|
|
image: git.arthurbarre.fr/ordinarthur/wetalk-api:latest
|
|
ports:
|
|
- containerPort: 3001
|
|
env:
|
|
- name: SPOTIFY_CLIENT_ID
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: wetalk-api-secrets
|
|
key: SPOTIFY_CLIENT_ID
|
|
- name: SPOTIFY_CLIENT_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: wetalk-api-secrets
|
|
key: SPOTIFY_CLIENT_SECRET
|
|
- name: YOUTUBE_API_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: wetalk-api-secrets
|
|
key: YOUTUBE_API_KEY
|
|
- name: PORT
|
|
value: "3001"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3001
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 3001
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "10m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "200m"
|
|
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|