Commit 7d60b3dd authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Merge branch 'dev' into 'main'

Migra desde kowl hacia redpanda console

See merge request redmic-project/confluent/kowl!2
parents e2d20c6a 78466d7d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'
    file: '/deployment-service/docker-deploy.yml'

stages:
  - deploy
@@ -9,5 +9,3 @@ stages:
.deploy:
  variables:
    STACK: confluent
  environment:
    url: https://${CI_PROJECT_NAME}.${PUBLIC_HOSTNAME}
+7 −0
Original line number Diff line number Diff line
SERVER_LISTENPORT=8080
KAFKA_BROKERS=kafka-1:9092,kafka-2:9092,kafka-3:9092

KAFKA_SCHEMAREGISTRY_ENABLED=true
KAFKA_SCHEMAREGISTRY_URLS=http://schema-registry:8081

CONNECT_ENABLED=true
CONNECT_CLUSTERS_NAME=connect
CONNECT_CLUSTERS_URL=http://kafka-connect:8083

ANALYTICS_ENABLED=true

TRAEFIK_AUTH=user:$apr1$md5password
PUBLIC_HOSTNAME=change.me
+53 −0
Original line number Diff line number Diff line
version: '3.5'

services:
  kowl:
    image: ${IMAGE_NAME:-quay.io/cloudhut/kowl}:${IMAGE_TAG:-master}
    image: ${IMAGE_NAME:-docker.redpanda.com/redpandadata/console}:${IMAGE_TAG:-latest}
    environment:
      SERVER_LISTENPORT:
      KAFKA_BROKERS:
@@ -11,9 +9,16 @@ services:
      CONNECT_ENABLED:
      CONNECT_CLUSTERS_NAME:
      CONNECT_CLUSTERS_URL:
      ANALYTICS_ENABLED:
    networks:
      kafka-net:
      traefik-net:
    healthcheck:
      test: curl -s -o /dev/null http://localhost:${SERVER_LISTENPORT}
      interval: ${HEALTHCHECK_INTERVAL:-30s}
      timeout: ${HEALTHCHECK_TIMEOUT:-10s}
      retries: ${HEALTHCHECK_RETRIES:-5}
      start_period: ${HEALTHCHECK_START_PERIOD:-1m}
    deploy:
      mode: replicated
      replicas: ${REPLICAS:-1}
@@ -22,17 +27,19 @@ services:
      update_config:
        delay: ${UPDATE_DELAY:-30s}
      labels:
        traefik.frontend.auth.basic.users: ${UI_AUTH}
        traefik.frontend.rule: Host:${TRAEFIK_SUBDOMAIN:-kowl}.${PUBLIC_HOSTNAME}
        traefik.backend: kowl
        traefik.port: '${SERVER_LISTENPORT}'
        traefik.enable: ${TRAEFIK_ENABLE:-true}
        traefik.http.routers.kowl.entrypoints: ${TRAEFIK_ENTRYPOINT:-http}
        traefik.http.routers.kowl.rule: Host(`${TRAEFIK_SUBDOMAIN:-kowl}.${PUBLIC_HOSTNAME}`)
        traefik.http.middlewares.kowl-auth.basicauth.users: ${TRAEFIK_AUTH}
        traefik.http.routers.kowl.middlewares: kowl-auth
        traefik.http.services.kowl.loadbalancer.server.port: ${SERVER_LISTENPORT}
      resources:
        limits:
          cpus: '${RESOURCES_LIMITS_CPUS:-0.1}'
          memory: ${RESOURCES_LIMITS_MEMORY:-64M}
          cpus: '${RESOURCES_LIMITS_CPUS:-0.5}'
          memory: ${RESOURCES_LIMITS_MEMORY:-128M}
        reservations:
          cpus: '${RESOURCES_RESERVATIONS_CPUS:-0.001}'
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-16M}
          memory: ${RESOURCES_RESERVATIONS_MEMORY:-32M}

networks:
  kafka-net:

deploy/docker-compose.dev.yml

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
version: '3.5'

deploy/docker-compose.prod.yml

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
version: '3.5'
Loading