Skip to content

Commit

Permalink
Added env variable for api
Browse files Browse the repository at this point in the history
  • Loading branch information
dt-dilip committed Jun 5, 2024
1 parent 0361a02 commit 6af41dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion charts/cdefense/templates/api/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ data:
MAX_SCAN_PER_USER: "10"
ONLINE_SCAN_POOL_SIZE: "20"
CDEFENSE_BACKEND_URL: "http://newapi"
CLOUDDEFENSE_NEWAPI_BASE_URL: https://{{ .Values.hostname }}/
CLOUDDEFENSE_NEWAPI_BASE_URL: https://{{ .Values.hostname }}/
K8_RESOURCES_REQUEST_MEMORY: "3Gi"
K8_RESOURCES_REQUEST_CPU: "2000m"
K8_RESOURCES_LIMIT_MEMORY: "4Gi"
15 changes: 15 additions & 0 deletions charts/cdefense/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,21 @@ spec:
configMapKeyRef:
name: scan-server-config
key: CDEFENSE_BACKEND_URL
- name: K8_RESOURCES_REQUEST_MEMORY
valueFrom:
configMapKeyRef:
name: scan-server-config
key: K8_RESOURCES_REQUEST_MEMORY
- name: K8_RESOURCES_REQUEST_CPU
valueFrom:
configMapKeyRef:
name: scan-server-config
key: K8_RESOURCES_REQUEST_CPU
- name: K8_RESOURCES_LIMIT_MEMORY
valueFrom:
configMapKeyRef:
name: scan-server-config
key: K8_RESOURCES_LIMIT_MEMORY
ports:
- containerPort: 8080
livenessProbe:
Expand Down

0 comments on commit 6af41dd

Please sign in to comment.