Skip to content

Commit

Permalink
feat: Add job to Clowdapp
Browse files Browse the repository at this point in the history
  • Loading branch information
jpramos123 committed Dec 17, 2024
1 parent 074a9f8 commit 8061985
Showing 1 changed file with 83 additions and 0 deletions.
83 changes: 83 additions & 0 deletions deploy/clowdapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,78 @@ objects:
requests:
cpu: ${CPU_REQUEST_REAPER}
memory: ${MEMORY_REQUEST_REAPER}
- name: stale-host-notification
schedule: '@hourly'
concurrencyPolicy: "Forbid"
suspend: ${{STALE_HOST_NOTIFICATION_SUSPEND}}
restartPolicy: Never
podSpec:
image: ${IMAGE}:${IMAGE_TAG}
args: ["./stale_host_notification.py"]
env:
- name: INVENTORY_LOG_LEVEL
value: ${LOG_LEVEL}
- name: INVENTORY_DB_SSL_MODE
value: ${INVENTORY_DB_SSL_MODE}
- name: INVENTORY_DB_SSL_CERT
value: ${INVENTORY_DB_SSL_CERT}
- name: KAFKA_BOOTSTRAP_SERVERS
value: ${KAFKA_BOOTSTRAP_HOST}:${KAFKA_BOOTSTRAP_PORT}
- name: PAYLOAD_TRACKER_KAFKA_TOPIC
value: ${PAYLOAD_TRACKER_KAFKA_TOPIC}
- name: PAYLOAD_TRACKER_SERVICE_NAME
value: inventory-mq-service
- name: PAYLOAD_TRACKER_ENABLED
value: 'true'
- name: PROMETHEUS_PUSHGATEWAY
value: ${PROMETHEUS_PUSHGATEWAY}
- name: KAFKA_EVENT_TOPIC
value: ${KAFKA_EVENT_TOPIC}
- name: KAFKA_NOTIFICATION_TOPIC
value: ${KAFKA_NOTIFICATION_TOPIC}
- name: KAFKA_PRODUCER_ACKS
value: ${KAFKA_PRODUCER_ACKS}
- name: KAFKA_PRODUCER_RETRIES
value: ${KAFKA_PRODUCER_RETRIES}
- name: KAFKA_PRODUCER_RETRY_BACKOFF_MS
value: ${KAFKA_PRODUCER_RETRY_BACKOFF_MS}
- name: NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: KAFKA_SECURITY_PROTOCOL
value: ${KAFKA_SECURITY_PROTOCOL}
- name: KAFKA_SASL_MECHANISM
value: ${KAFKA_SASL_MECHANISM}
- name: CLOWDER_ENABLED
value: "true"
- name: INVENTORY_DB_SCHEMA
value: "${INVENTORY_DB_SCHEMA}"
- name: INVENTORY_API_CACHE_TIMEOUT_SECONDS
value: "${INVENTORY_API_CACHE_TIMEOUT_SECONDS}"
- name: INVENTORY_API_CACHE_TYPE
value: "${INVENTORY_API_CACHE_TYPE}"
- name: INVENTORY_CACHE_INSIGHTS_CLIENT_SYSTEM_TIMEOUT_SEC
value: "${INVENTORY_CACHE_INSIGHTS_CLIENT_SYSTEM_TIMEOUT_SEC}"
- name: INVENTORY_CACHE_THREAD_POOL_MAX_WORKERS
value: "${INVENTORY_CACHE_THREAD_POOL_MAX_WORKERS}"
- name: UNLEASH_URL
value: ${UNLEASH_URL}
- name: UNLEASH_TOKEN
valueFrom:
secretKeyRef:
name: ${UNLEASH_SECRET_NAME}
key: CLIENT_ACCESS_TOKEN
optional: true
- name: BYPASS_UNLEASH
value: ${BYPASS_UNLEASH}
resources:
limits:
cpu: ${CPU_LIMIT_STALE_HOST_NOTIFICAION}
memory: ${MEMORY_LIMIT_STALE_HOST_NOTIFICAION}
requests:
cpu: ${CPU_REQUEST_STALE_HOST_NOTIFICAION}
memory: ${MEMORY_REQUEST_STALE_HOST_NOTIFICAION}
- name: syndicator
schedule: ${SYNDICATOR_CRON_SCHEDULE}
concurrencyPolicy: "Forbid"
Expand Down Expand Up @@ -1377,6 +1449,15 @@ parameters:
- name: MEMORY_LIMIT_REAPER
value: 512Mi

- name: CPU_REQUEST_STALE_HOST_NOTIFICAION
value: 250m
- name: CPU_LIMIT_STALE_HOST_NOTIFICAION
value: 500m
- name: MEMORY_REQUEST_STALE_HOST_NOTIFICAION
value: 256Mi
- name: MEMORY_LIMIT_STALE_HOST_NOTIFICAION
value: 512Mi

- name: CPU_REQUEST_SP_VALIDATOR
value: 250m
- name: CPU_LIMIT_SP_VALIDATOR
Expand Down Expand Up @@ -1553,6 +1634,8 @@ parameters:
value: 'true'
- name: REAPER_SUSPEND
value: 'true'
- name: STALE_HOST_NOTIFICATION_SUSPEND
value: 'true'
- name: SYNDICATOR_SUSPEND
value: 'false'
- name: SYNDICATOR_CRON_SCHEDULE
Expand Down

0 comments on commit 8061985

Please sign in to comment.