Loading .gitlab-ci.yml +2 −10 Original line number Diff line number Diff line Loading @@ -6,14 +6,6 @@ include: stages: - deploy .deploy: variables: STACK: confluent IMAGE_NAME: danielqsj/kafka-exporter IMAGE_TAG: latest .deploy: script: - > deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} KAFKA_SERVER_0=${KAFKA_SERVER_0} KAFKA_SERVER_1=${KAFKA_SERVER_1} KAFKA_SERVER_2=${KAFKA_SERVER_2} KAFKA_VERSION=${KAFKA_VERSION} deploy/docker-compose.prod.yml +0 −7 Original line number Diff line number Diff line version: '3.5' services: kafka-exporter: deploy: placement: constraints: - node.role == worker deploy/docker-compose.tmpl.yml +16 −13 Original line number Diff line number Diff line Loading @@ -11,33 +11,36 @@ services: - --web.listen-address=:${PORT} - --log.level=${LOG_LEVEL} networks: - kafka-net - metric-net kafka-net: metric-net: healthcheck: test: wget --spider -q http://localhost:${PORT} interval: 30s timeout: 10s retries: 3 start_period: 1m interval: ${HEALTHCHECK_INTERVAL:-30s} timeout: ${HEALTHCHECK_TIMEOUT:-10s} retries: ${HEALTHCHECK_RETRIES:-3} start_period: ${HEALTHCHECK_START_PERIOD:-1m} deploy: mode: replicated replicas: 1 replicas: ${REPLICAS:-1} restart_policy: delay: 30s window: 1m delay: ${RESTART_DELAY:-5s} update_config: delay: ${UPDATE_DELAY:-30s} resources: limits: cpus: '0.5' memory: 64M cpus: '${RESOURCES_LIMITS_CPUS:-0.1}' memory: ${RESOURCES_LIMITS_MEMORY:-128M} reservations: cpus: '0.001' memory: 32M cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}' memory: ${RESOURCES_RESERVATIONS_MEMORY:-32M} networks: kafka-net: name: ${KAFKA_NET_NAME:-kafka-net} driver: ${KAFKA_NET_DRIVER:-overlay} external: true metric-net: name: ${METRIC_NET_NAME:-metric-net} driver: ${METRIC_NET_DRIVER:-overlay} external: true Loading
.gitlab-ci.yml +2 −10 Original line number Diff line number Diff line Loading @@ -6,14 +6,6 @@ include: stages: - deploy .deploy: variables: STACK: confluent IMAGE_NAME: danielqsj/kafka-exporter IMAGE_TAG: latest .deploy: script: - > deploy.sh IMAGE_NAME=${IMAGE_NAME} IMAGE_TAG=${IMAGE_TAG} KAFKA_SERVER_0=${KAFKA_SERVER_0} KAFKA_SERVER_1=${KAFKA_SERVER_1} KAFKA_SERVER_2=${KAFKA_SERVER_2} KAFKA_VERSION=${KAFKA_VERSION}
deploy/docker-compose.prod.yml +0 −7 Original line number Diff line number Diff line version: '3.5' services: kafka-exporter: deploy: placement: constraints: - node.role == worker
deploy/docker-compose.tmpl.yml +16 −13 Original line number Diff line number Diff line Loading @@ -11,33 +11,36 @@ services: - --web.listen-address=:${PORT} - --log.level=${LOG_LEVEL} networks: - kafka-net - metric-net kafka-net: metric-net: healthcheck: test: wget --spider -q http://localhost:${PORT} interval: 30s timeout: 10s retries: 3 start_period: 1m interval: ${HEALTHCHECK_INTERVAL:-30s} timeout: ${HEALTHCHECK_TIMEOUT:-10s} retries: ${HEALTHCHECK_RETRIES:-3} start_period: ${HEALTHCHECK_START_PERIOD:-1m} deploy: mode: replicated replicas: 1 replicas: ${REPLICAS:-1} restart_policy: delay: 30s window: 1m delay: ${RESTART_DELAY:-5s} update_config: delay: ${UPDATE_DELAY:-30s} resources: limits: cpus: '0.5' memory: 64M cpus: '${RESOURCES_LIMITS_CPUS:-0.1}' memory: ${RESOURCES_LIMITS_MEMORY:-128M} reservations: cpus: '0.001' memory: 32M cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}' memory: ${RESOURCES_RESERVATIONS_MEMORY:-32M} networks: kafka-net: name: ${KAFKA_NET_NAME:-kafka-net} driver: ${KAFKA_NET_DRIVER:-overlay} external: true metric-net: name: ${METRIC_NET_NAME:-metric-net} driver: ${METRIC_NET_DRIVER:-overlay} external: true