fix the dev yaml file
This commit is contained in:
parent
cd1c78a0ae
commit
17af307bf3
|
|
@ -115,6 +115,8 @@ spec:
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
set -e
|
||||||
kubectl apply -f deploy/kubernetes/dev.yaml --validate=true
|
kubectl apply -f deploy/kubernetes/dev.yaml --validate=true
|
||||||
|
|
||||||
|
kubectl rollout restart deployment nam-backend-dev -n nam-backend-dev
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -178,39 +178,6 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /app
|
- mountPath: /app
|
||||||
name: 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
|
- mountPath: /tmp
|
||||||
name: tmp
|
name: tmp
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue