2024-02-22 15:05:56 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: fider
|
|
|
|
spec:
|
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app.kubernetes.io/name: fider
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app.kubernetes.io/name: fider
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: fider
|
|
|
|
image: docker.io/getfider/fider:stable
|
2024-03-06 21:11:07 +00:00
|
|
|
imagePullPolicy: Always
|
2024-02-22 15:05:56 +00:00
|
|
|
ports:
|
|
|
|
- containerPort: 3000
|
|
|
|
protocol: TCP
|
|
|
|
name: web
|
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
2024-04-17 19:31:55 +00:00
|
|
|
name: fider-config
|
2024-02-22 15:05:56 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 200m
|
|
|
|
memory: 200Mi
|
|
|
|
requests:
|
|
|
|
cpu: 50m
|
|
|
|
memory: 50Mi
|
|
|
|
affinity:
|
|
|
|
podAntiAffinity:
|
|
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- weight: 100
|
|
|
|
podAffinityTerm:
|
|
|
|
labelSelector:
|
|
|
|
matchExpressions:
|
|
|
|
- key: app.kubernetes.io/name
|
|
|
|
operator: In
|
|
|
|
values:
|
|
|
|
- fider
|
|
|
|
topologyKey: topology.kubernetes.io/zone
|