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