107 lines
2.3 KiB
YAML
107 lines
2.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
name: sidataprod
|
|
namespace: sidata
|
|
|
|
spec:
|
|
replicas: 1
|
|
|
|
selector:
|
|
matchLabels:
|
|
app: sidataprod
|
|
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sidataprod
|
|
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: registry-bpkd
|
|
|
|
containers:
|
|
- name: sidataprod
|
|
|
|
image: registry-bpkd.drc-bpkd.data-center.id/REGISTRY_USER/sidata:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
|
- containerPort: 80
|
|
protocol: TCP
|
|
|
|
env:
|
|
- name: APP_ENV
|
|
value: "production"
|
|
|
|
- name: APP_DEBUG
|
|
value: "false"
|
|
|
|
- name: APP_URL
|
|
value: "https://dashboard-bpkd.drc-bpkd.data-center.id/sidataprod"
|
|
|
|
- name: DB_HOST
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: sidataprod-secret
|
|
key: DB_HOST
|
|
|
|
- name: DB_PORT
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: sidataprod-secret
|
|
key: DB_PORT
|
|
|
|
- name: DB_DATABASE
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: sidataprod-secret
|
|
key: DB_DATABASE
|
|
|
|
- name: DB_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: sidataprod-secret
|
|
key: DB_USERNAME
|
|
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: sidataprod-secret
|
|
key: DB_PASSWORD
|
|
|
|
- name: REDIS_HOST
|
|
value: "127.0.0.1"
|
|
|
|
- name: REDIS_PORT
|
|
value: "6379"
|
|
|
|
resources:
|
|
requests:
|
|
cpu: "250m"
|
|
memory: "512Mi"
|
|
|
|
limits:
|
|
cpu: "1000m"
|
|
memory: "1Gi"
|
|
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
timeoutSeconds: 5
|
|
failureThreshold: 6
|
|
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 80
|
|
initialDelaySeconds: 40
|
|
periodSeconds: 20
|
|
timeoutSeconds: 5
|
|
failureThreshold: 5
|