Files
devops-infra-helm-charts-gcp/helm-overrides/k8s-admin-prd-ase1/argocd-datascience-v2/custom-values.yaml
T
2026-08-26 03:39:42 +05:30

292 lines
9.8 KiB
YAML

argo-cd:
crds:
install: false
global:
image:
tag: "v3.4.3"
additionalLabels:
bu: infra
team: devops
podLabels:
bu: infra
team: devops
nodeSelector:
dedicated: devops
tolerations:
- key: "dedicated"
operator: "Equal"
value: "devops"
effect: "NoSchedule"
dex:
enabled: true
resources:
limits:
cpu: 250m
memory: 512Mi
requests:
cpu: 250m
memory: 512Mi
metrics:
enabled: true
podAnnotations:
prometheus.io/scrape: true
prometheus.io/path: /metrics
prometheus.io/port: 5558
controller:
replicas: 3
enableStatefulSet: true
podAnnotations:
prometheus.io/scrape: true
prometheus.io/path: /metrics
prometheus.io/port: 8082
resources:
limits:
cpu: "7"
memory: "12Gi"
requests:
cpu: "6"
memory: "8Gi"
env:
- name: ARGOCD_K8S_CLIENT_QPS
value: '250'
- name: ARGOCD_CONTROLLER_REPLICAS
value: '3'
- name: ARGOCD_RECONCILIATION_JITTER
valueFrom:
configMapKeyRef:
key: timeout.reconciliation.jitter
name: argocd-cm
optional: true
redis-ha:
enabled: true
repoServer:
autoscaling:
enabled: true
maxReplicas: 30
minReplicas: 7
targetMemoryUtilizationPercentage: 60
targetCPUUtilizationPercentage: 60
metrics:
enabled: true
serviceMonitor:
enabled: false
interval: 60s
podAnnotations:
prometheus.io/scrape: true
prometheus.io/path: /metrics
prometheus.io/port: 8084
resources:
limits:
cpu: "2"
memory: 3Gi
requests:
cpu: "1"
memory: 2Gi
env:
- name: ARGOCD_HELM_ALLOW_CONCURRENCY
value: 'true'
- name: ARGOCD_EXEC_TIMEOUT
value: '600s'
- name: GIT_DEPTH
value: '1'
- name: ARGOCD_RECONCILIATION_JITTER
valueFrom:
configMapKeyRef:
key: timeout.reconciliation.jitter
name: argocd-cm
optional: true
server:
replicas: 3
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 25
targetMemoryUtilizationPercentage: 60
targetCPUUtilizationPercentage: 60
extraArgs:
- --insecure
ingress:
annotations.nginx.ingress.kubernetes.io/force-ssl-redirect: false
annotations.nginx.ingress.kubernetes.io/rewrite-target: /
annotations.nginx.ingress.kubernetes.io/ssl-redirect: false
enabled: true
hostname: "argocd-datascience-prd-ase1a.meeshogcp.in"
ingressClassName: nginx-internal
podAnnotations:
prometheus.io/scrape: true
prometheus.io/path: /metrics
prometheus.io/port: 8083
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "1"
memory: 2Gi
env:
- name: ARGOCD_GRPC_KEEP_ALIVE_MIN
value: '30s'
applicationSet:
replicaCount: 4
notifications:
metrics:
enabled: true
serviceMonitor:
enabled: false
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 300m
memory: 512Mi
configs:
cm:
resource.customizations: |
projectcontour.io/HTTPProxy:
health.lua: |
local hs = {}
if obj.status ~= nil and obj.status.currentStatus ~= nil then
if obj.status.currentStatus == "orphaned" then
hs.status = "Healthy"
hs.message = "HTTPProxy orphaned — ignored"
return hs
end
if obj.status.currentStatus == "valid" then
hs.status = "Healthy"
hs.message = "HTTPProxy is valid"
return hs
end
if obj.status.currentStatus == "invalid" then
hs.status = "Degraded"
hs.message = obj.status.description or "HTTPProxy is invalid"
return hs
end
end
hs.status = "Progressing"
hs.message = "Waiting for HTTPProxy status"
return hs
keda.sh/ScaledObject:
health.lua: |
local hs = {}
local healthy = false
local degraded = false
local suspended = false
if obj.status ~= nil then
if obj.status.conditions ~= nil then
for i, condition in ipairs(obj.status.conditions) do
if condition.status == "False" and condition.type == "Ready" then
degraded = true
hs.message = condition.message
end
if condition.status == "True" and condition.type == "Ready" then
healthy = true
hs.message = condition.message
end
if condition.status == "True" and condition.type == "Paused" then
suspended = true
hs.message = condition.message
end
end
end
end
if degraded == true then
hs.status = "Degraded"
return hs
elseif healthy == true then
hs.status = "Healthy"
if suspended == true then
hs.message = "ScaledObject is paused as part of normal operations."
else
hs.message = "ScaledObject is active."
end
return hs
end
hs.status = "Progressing"
hs.message = "Creating ScaledObject or waiting for conditions."
return hs
url: https://argocd-datascience-prd-ase1a.meeshogcp.in
accounts.bharatml: apiKey,login
accounts.readonly: 'apiKey,login'
accounts.ringmaster: 'apiKey,login'
timeout.reconciliation: 5m
timeout.reconciliation.jitter: 120s
statusbadge.enabled: "true"
help.chatUrl: "https://meesho.slack.com/archives/C021QNS6JLV"
help.chatText: "Chat now!"
dex.config: |
logger:
level: error
format: json
connectors:
- type: github
id: github
name: GitHub
loadAllGroups: true
admin.enabled: "true"
config:
clientID: Ov23lixf317DQe17LLC5
clientSecret: $github-sso-secret:dex.github.clientSecret
orgs:
- name: Meesho
params:
controller.sharding.algorithm: round-robin
controller.status.processors: '60'
controller.operation.processors: '30'
controller.repo.server.timeout.seconds: '90'
reposerver.parallelism.limit: '2'
rbac:
policy.csv: |
p, role:admins, *, *, */*, allow
p, role:admins, *, *, *, allow
## Policy for data-science team
p, role:datascience, *, get, */*, allow
p, role:datascience, applications, delete, */*, deny
p, role:datascience, applications, sync, dsci-*/*, allow
p, role:datascience, applications, update, dsci-ml/prd-online-feature-store-api-mp*, allow
p, role:datascience, applications, update, dsci-ml/prd-online-feature-store-api-v3*, allow
p, role:backend, applications, action/apps/Deployment/restart, dsci-*/prd-predator-*, allow
p, role:backend, applications, action/apps/Deployment/restart, dsci-*/prd-model-inference-*, allow
p, role:datascience, applications, delete/*/Deployment/*/*, dsci-*/prd-model-inference-*, allow
p, role:backend, *, get, */*, allow
p, role:data-engineering, applications, *, dsci-ds/prd-ds-airflow*, allow
## Policy for bharatml team
p, role:bharatml-role, applications, get, dsci-*/prd-predator-*, allow
p, role:bharatml-role, applications, get, dsci-*/prd-model-inference-*, allow
p, role:bharatml-role, applications, action/apps/Deployment/restart, dsci-*/prd-predator-*, allow
p, role:bharatml-role, applications, action/apps/Deployment/restart, dsci-*/prd-model-inference-*, allow
p, role:bharatml-role, applications, delete/*/Pod/*/*, dsci-*/prd-predator-*, allow
p, role:bharatml-role, applications, delete/*/Pod/*/*, dsci-*/prd-model-inference-*, allow
p, role:bharatml-role, applications, update/keda.sh/ScaledObject/*/*, dsci-*/prd-predator-*, allow
p, role:bharatml-role, applications, update/keda.sh/ScaledObject/*/*, dsci-*/prd-model-inference-*, allow
## Policy for Admin-NoDelete role
p, role:admin-nodelete, *, get, *, allow
p, role:admin-nodelete, *, create, *, allow
p, role:admin-nodelete, *, update, *, allow
p, role:admin-nodelete, applications, create, */*, allow
p, role:admin-nodelete, applications, get, */*, allow
p, role:admin-nodelete, applications, override, */*, allow
p, role:admin-nodelete, applications, sync, */*, allow
p, role:admin-nodelete, applications, update, */*, allow
p, role:admin-nodelete, applications, update/*, */*, allow
p, role:admin-nodelete, applications, action/*, */*, allow
p, role:admin-nodelete, applications, delete/*/Pod/*/*, */*, allow
## Policy for devops intern role
p, role:intern, *, get, *, allow
p, role:backend-ro, *, get, */*, allow
## Role definition for different Github teams
g, Meesho:architects, role:admin-nodelete
g, Meesho:devops-new, role:admin-nodelete
g, Meesho:devops-interns, role:intern
g, Meesho:devops, role:admins
g, Meesho:datascience, role:datascience
g, Meesho:backend, role:backend
g, Meesho:data-engineering, role:data-engineering
g, ringmaster, role:admin-nodelete
g, bharatml, role:bharatml-role
g, readonly, role:backend-ro