fix the dev yaml file

This commit is contained in:
areeqakbr 2025-03-10 09:25:01 +07:00
parent cd1c78a0ae
commit 17af307bf3
2 changed files with 2 additions and 33 deletions

2
Jenkinsfile vendored
View File

@ -115,6 +115,8 @@ spec:
sh '''
set -e
kubectl apply -f deploy/kubernetes/dev.yaml --validate=true
kubectl rollout restart deployment nam-backend-dev -n nam-backend-dev
'''
}
}

View File

@ -178,39 +178,6 @@ spec:
volumeMounts:
- mountPath: /app
name: app
- mountPath: /tmp
name: tmp
initContainers:
- name: init
image: git.winteraccess.id/winter-access/backend_nam:dev
imagePullPolicy: Always
# command: ["/scripts/initialize"]
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: nam-backend-dev-secret
key: DB_PASSWORD
resources:
limits:
cpu: "250m"
memory: 1024M
requests:
cpu: "100m"
memory: 512M
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop: ["ALL"]
add: ["NET_ADMIN", "SYS_TIME"]
readOnlyRootFilesystem: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /app
name: app
- mountPath: /tmp
name: tmp
imagePullSecrets: