This commit is contained in:
parent
f1367e5c9b
commit
e2141d53fa
4 changed files with 67 additions and 0 deletions
1
meali/.gitattributes
vendored
Normal file
1
meali/.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
config/*.env filter=age diff=age merge=age -text
|
BIN
meali/config/meali.env
Normal file
BIN
meali/config/meali.env
Normal file
Binary file not shown.
|
@ -3,7 +3,18 @@ kind: Kustomization
|
||||||
|
|
||||||
namespace: meali
|
namespace: meali
|
||||||
|
|
||||||
|
images:
|
||||||
|
- name: meali
|
||||||
|
newName: ghcr.io/mealie-recipes/mealie
|
||||||
|
newTag: v2.3.0
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- resources/namespace.yaml
|
- resources/namespace.yaml
|
||||||
- resources/db/db.yaml
|
- resources/db/db.yaml
|
||||||
- resources/db/user.yaml
|
- resources/db/user.yaml
|
||||||
|
- resources/deployment.yaml
|
||||||
|
|
||||||
|
secretGenerator:
|
||||||
|
- name: meali-config
|
||||||
|
envs:
|
||||||
|
- "config/meali.env"
|
||||||
|
|
55
meali/resources/deployment.yaml
Normal file
55
meali/resources/deployment.yaml
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: meali
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: meali
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: meali
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: meali
|
||||||
|
image: meali
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 9000
|
||||||
|
protocol: TCP
|
||||||
|
name: web
|
||||||
|
env:
|
||||||
|
- name: POSTGRES_URL_OVERRIDE
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: db-credentials-meali
|
||||||
|
key: POSTGRES_URL
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: meali-config
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 200Mi
|
||||||
|
requests:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 50Mi
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 1001
|
||||||
|
runAsGroup: 1001
|
||||||
|
fsGroup: 1001
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: app.kubernetes.io/name
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- fider
|
||||||
|
topologyKey: topology.kubernetes.io/zone
|
Loading…
Reference in a new issue