Skip to content

Commit

Permalink
Deployment for heartbeat processor
Browse files Browse the repository at this point in the history
Added as a new deployment of dvo-writer clowdapp
  • Loading branch information
ikerreyes committed Nov 27, 2024
1 parent 256ad97 commit b57a902
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions deploy/dvo-writer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,106 @@ objects:
requests:
cpu: ${DVO_WRITER_CPU_REQUEST}
memory: ${DVO_WRITER_MEMORY_REQUEST}
- name: heartbeatprocessor
minReplicas: ${{MIN_REPLICAS}}
webServices:
public:
enabled: false
private:
enabled: false
metrics:
enabled: true
podSpec:
command:
- ./insights-results-aggregator
- start-heartbeater
env:
- name: INSIGHTS_RESULTS_AGGREGATOR__STORAGE_BACKEND__USE
value: "dvo_recommendations"
- name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__ADDRESSES
value: "${KAFKA_BOOTSTRAP_HOST}:${KAFKA_BOOTSTRAP_PORT}"
- name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__TIMEOUT
value: "${KAFKA_TIMEOUT}"
- name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__TOPIC
value: "platform.upload.announce"
- name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__SERVICE_NAME
value: "heartbeat_writer"
- name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__GROUP
value: "heartbeat_writer_app"
- name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__ENABLED
value: "true"
- name: INSIGHTS_RESULTS_AGGREGATOR__METRICS__ENABLED
value: "true"
- name: INSIGHTS_RESULTS_AGGREGATOR__DVO_RECOMMENDATIONS_STORAGE__DB_DRIVER
value: postgres
- name: INSIGHTS_RESULTS_AGGREGATOR__DVO_RECOMMENDATIONS_STORAGE__PG_PARAMS
value: ${PG_PARAMS}
- name: INSIGHTS_RESULTS_AGGREGATOR__DVO_RECOMMENDATIONS_STORAGE__TYPE
value: "sql"
- name: INSIGHTS_RESULTS_AGGREGATOR__LOGGING__LOG_LEVEL
value: ${LOG_LEVEL}
- name: INSIGHTS_RESULTS_AGGREGATOR__LOGGING__LOGGING_TO_CLOUD_WATCH_ENABLED
value: ${CLOUDWATCH_ENABLED}
- name: INSIGHTS_RESULTS_AGGREGATOR__LOGGING__LOGGING_TO_SENTRY_ENABLED
value: ${SENTRY_ENABLED}
- name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__DEBUG
value: ${CLOUDWATCH_DEBUG}
- name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__STREAM_NAME
value: ${LOG_STREAM}
- name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__CREATE_STREAM_IF_NOT_EXISTS
value: ${CREATE_STREAM_IF_NOT_EXISTS}
- name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__AWS_REGION
valueFrom:
secretKeyRef:
name: cloudwatch
key: aws_region
optional: true
- name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__LOG_GROUP
valueFrom:
secretKeyRef:
name: cloudwatch
key: log_group_name
optional: true
- name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__AWS_ACCESS_ID
valueFrom:
secretKeyRef:
name: cloudwatch
key: aws_access_key_id
optional: true
- name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__AWS_SECRET_KEY
valueFrom:
secretKeyRef:
name: cloudwatch
key: aws_secret_access_key
optional: true
- name: INSIGHTS_RESULTS_AGGREGATOR__SENTRY__DSN
valueFrom:
secretKeyRef:
key: dsn
name: dvo-writer-dsn
optional: true
- name: INSIGHTS_RESULTS_AGGREGATOR__SENTRY__ENVIRONMENT
value: ${ENV_NAME}
- name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__ADDRESS
value: ":9000"
- name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__API_PREFIX
value: "${DVO_WRITER_API_PREFIX}"
- name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__API_SPEC_FILE
value: "/openapi/openapi.json"
- name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__DEBUG
value: "true"
- name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__AUTH
value: "false"
- name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__AUTH_TYPE
value: "xrh"
image: ${IMAGE}:${IMAGE_TAG}
resources:
limits:
cpu: ${DVO_WRITER_CPU_LIMIT}
memory: ${DVO_WRITER_MEMORY_LIMIT}
requests:
cpu: ${DVO_WRITER_CPU_REQUEST}
memory: ${DVO_WRITER_MEMORY_REQUEST}
database:
sharedDbAppName: ccx-insights-results
dependencies:
Expand Down

0 comments on commit b57a902

Please sign in to comment.