feat(deploy): add environment-agent compose profile and Kind - #61
feat(deploy): add environment-agent compose profile and Kind#61jenniferubah wants to merge 3 commits into
Conversation
Assisted-By: Cursor AI Signed-off-by: Jennifer Ubah <cju.cipher@gmail.com>
8985123 to
793ab60
Compare
Assisted-By: Cursor AI Signed-off-by: Jennifer Ubah <cju.cipher@gmail.com>
PR Summary by QodoAdd environment-agent Compose profile and Kind development flow
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
Code Review by Qodo
1.
|
Assisted-By: Cursor AI Signed-off-by: Jennifer Ubah <cju.cipher@gmail.com>
gabriel-farache
left a comment
There was a problem hiding this comment.
I had to use the container for the agent based on dcm-project/environment-agent#30 for everything to work (specifically https://github.com/dcm-project/environment-agent/pull/30/changes#diff-5fcdf9b4580789697d834d1456a22bcfaa236d668fc180cad4775afc36ed5914R23)
$ curl http://localhost:8080/api/v1alpha1/health
curl http://localhost:8080/api/v1alpha1/agents
curl http://localhost:8081/api/v1alpha1/health
curl http://localhost:8081/api/v1alpha1/providers
{"status":"ok","path":"/api/v1alpha1/health","checks":{"database":"ok","nats":"ok"}}
{"agents":[{"agent_id":"d05d0e75-7f30-48d7-b68a-31b4b2ca7510","cost":"low","create_time":"2026-09-09T14:03:14.47179Z","environment":"dev","health_status":"ready","last_heartbeat":"2026-09-09T14:05:44.475635Z","name":"local-agent","service_types":["container","vm"],"topic_name":"dcm.agent.local-agent","update_time":"2026-09-09T14:05:44.477355Z"}]}
{"path":"health","status":"healthy"}
{"results":[{"create_time":"2026-09-09T14:03:14.4490276Z","endpoint":"embedded://container","id":"307514ec-9d68-4a3d-ba93-7a594ea39d99","last_check_time":"2026-09-09T14:06:04.482467433Z","name":"container","path":"providers/307514ec-9d68-4a3d-ba93-7a594ea39d99","schema_version":"v1alpha1","service_type":"container","status":"Ready","type":"embedded","update_time":"2026-09-09T14:03:14.4490276Z"},{"create_time":"2026-09-09T14:03:14.46313531Z","endpoint":"embedded://vm","id":"6f6294d0-8707-40e1-86ee-942ffc3c81d7","last_check_time":"2026-09-09T14:06:04.482255648Z","name":"vm","path":"providers/6f6294d0-8707-40e1-86ee-942ffc3c81d7","schema_version":"v1alpha1","service_type":"vm","status":"Ready","type":"embedded","update_time":"2026-09-09T14:03:14.46313531Z"}]}
gciavarrini
left a comment
There was a problem hiding this comment.
Compose no longer documents the Pet Clinic / three-tier demo after removing the standalone provider profiles. Worth a one-line note in the PR summary so reviewers know it is intentional.
| COMPOSE_SCRIPTS_DIR ?= $(UTILITIES_DIR)/scripts/compose | ||
| KUBEVIRT_SCRIPTS_DIR ?= $(UTILITIES_DIR)/scripts/kubevirt | ||
| COMPOSE_NETWORKS ?= deploy_default $(COMPOSE_NETWORK) | ||
| PROFILES ?= providers |
There was a problem hiding this comment.
PROFILES is unused after dropping compose-up-with-providers. I think you can remove this
| # K8S_STORAGE_SERVICE_PROVIDER_VERSION=main | ||
| # ACM_CLUSTER_SERVICE_PROVIDER_VERSION=main | ||
| # THREE_TIER_DEMO_SERVICE_PROVIDER_VERSION=main | ||
| # ENVIRONMENT_AGENT_VERSION=main |
| ```bash | ||
| AGENT_EMBEDDED_SPS=container | ||
| AGENT_KUBECONFIG_HOST=.kube/config | ||
| ``` |
There was a problem hiding this comment.
compose only picks these up from deploy/.env (step 3 already created it).
If someone runs this in a shell, the agent still starts with empty AGENT_EMBEDDED_SPS.
| | `SP_STORAGE_NAMESPACE` | `default` | Storage SP workload namespace | | ||
| | `SP_K8S_DEFAULT_STORAGE_CLASS` | _(none)_ | Default storage class for storage SP | | ||
| | `SP_K8S_DEFAULT_ACCESS_MODE` | `ReadWriteOnce` | Default PVC access mode for storage SP | | ||
| | `ENVIRONMENT_AGENT_VERSION` | `main` | Agent image tag | |
There was a problem hiding this comment.
Gabriel could not get embedded container working with the pulled :main image.
He built the agent locally from environment-agent PR #30 instead, not sure if it's worthing adding the workarounds (set ENVIRONMENT_AGENT_VERSION in deploy/.env to a known-good tag, or build the agent image locally and point ENVIRONMENT_AGENT_VERSION at that tag).
There was a problem hiding this comment.
I think it's not worth it, once the other PR is merged there will be no issue out of the box and if someone wants to test a specific version, they will know to update the tag to point to the locally built image
Summary
Type of Change
Stacked PR Status
Assisted-By: Cursor AI