Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,23 +180,6 @@ docker_build_with_restart(
live_update=[sync('./bin/unkey', '/unkey')]
)

# Agent service
docker_build(
'unkey/agent:latest',
'../web/apps/agent',
dockerfile='../web/apps/agent/Dockerfile',
)
k8s_yaml('k8s/manifests/agent.yaml')
k8s_resource(
'agent',
port_forwards='8082:8080',
resource_deps=['s3', 'clickhouse'],
labels=['unkey'],
auto_init=True,
trigger_mode=TRIGGER_MODE_AUTO
)


# Vault service
k8s_yaml('k8s/manifests/vault.yaml')
k8s_resource(
Expand Down Expand Up @@ -322,7 +305,7 @@ local_resource(
cd ../web && pnpm --filter=@unkey/dashboard dev
''',
deps=[],
resource_deps=['planetscale', 'clickhouse', 'agent', 'ctrl-api'],
resource_deps=['planetscale', 'clickhouse', 'ctrl-api'],
labels=['unkey'],
auto_init=True,
readiness_probe=probe(http_get=http_get_action(port=3000, path='/'), period_secs=5, failure_threshold=30),
Expand Down
30 changes: 0 additions & 30 deletions dev/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,30 +150,6 @@ services:
start_period: 30s
interval: 10s

agent:
networks:
- default
container_name: agent
command: ["/usr/local/bin/unkey", "agent", "--config", "config.docker.json"]
build:
context: ../web/apps/agent
dockerfile: ./Dockerfile
ports:
- 8080:8080
depends_on:
- s3
- clickhouse
environment:
PORT: 8080
RPC_PORT: 9095
AUTH_TOKEN: "agent-auth-secret"
VAULT_S3_URL: "http://s3:3902"
VAULT_S3_BUCKET: "vault"
VAULT_S3_ACCESS_KEY_ID: "minio_root_user"
VAULT_S3_ACCESS_KEY_SECRET: "minio_root_password"
VAULT_MASTER_KEYS: "Ch9rZWtfMmdqMFBJdVhac1NSa0ZhNE5mOWlLSnBHenFPENTt7an5MRogENt9Si6wms4pQ2XIvqNSIgNpaBenJmXgcInhu6Nfv2U="
CLICKHOUSE_URL: "clickhouse://default:password@clickhouse:9000"

clickhouse:
networks:
- default
Expand Down Expand Up @@ -445,19 +421,13 @@ services:
planetscale:
condition: service_started
required: true
agent:
condition: service_started
required: true
env_file:
- ../web/apps/dashboard/.env
environment:
# Database configuration
DATABASE_HOST: "planetscale:3900"
# Auth configuration
# Reading from env file, no override necessary
# Agent configuration
AGENT_URL: "http://agent:8080"
AGENT_TOKEN: "agent-auth-secret"
# Clickhouse configuration
CLICKHOUSE_URL: "http://default:password@clickhouse:8123"
# Environment
Expand Down
76 changes: 0 additions & 76 deletions dev/k8s/manifests/agent.yaml

This file was deleted.

Loading