fixing kubernetes

This commit is contained in:
rheiga19 2025-03-27 12:56:49 +07:00
parent 9ac85cde1a
commit 3c68cdc9a5
1 changed files with 26 additions and 19 deletions

View File

@ -129,25 +129,24 @@ spec:
app.kubernetes.io/name: nam-frontend-dev
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: nam-frontend-dev
app.kubernetes.io/name: nam-frontend-dev
topologyKey: "kubernetes.io/hostname"
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: nam-frontend-dev
app.kubernetes.io/name: nam-frontend-dev
topologyKey: "kubernetes.io/hostname"
containers:
- name: web
image: git.winteraccess.id/winter-access/frontend-nam:dev
imagePullPolicy: Always
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: nam-frontend-dev-secret
key: DB_PASSWORD
envFrom:
- configMapRef:
name: nam-frontend-dev-config
- secretRef:
name: nam-frontend-dev-secret
resources:
limits:
cpu: "250m"
@ -168,8 +167,12 @@ spec:
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /app
name: app
- mountPath: /app/public
name: public
- mountPath: /app/storage
name: storage
- mountPath: /tmp
name: tmp
initContainers:
- name: init
image: git.winteraccess.id/winter-access/frontend-nam:dev
@ -197,8 +200,12 @@ spec:
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /app
name: app
- mountPath: /app/public
name: public
- mountPath: /app/storage
name: storage
- mountPath: /tmp
name: tmp
imagePullSecrets:
- name: winter-registry
dnsPolicy: ClusterFirst