Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add collector for Amazon ECS and Azure Container Service #43

Open
ashokponkumar opened this issue Oct 9, 2020 · 4 comments
Open

Add collector for Amazon ECS and Azure Container Service #43

ashokponkumar opened this issue Oct 9, 2020 · 4 comments
Assignees
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

Comments

@ashokponkumar
Copy link
Member

Move2Kube collectors which can be invoked using move2kube collect help extract runtime information.

To allow translation from Amazon ECS and Azure Container Service, similar to how we have structured for Cloud Foundry in here (https://github.com/konveyor/move2kube/blob/master/internal/collector/cfappscollector.go).

We can write a collector which will access the running container instances, and extract metadata out of it and serialize it in a format similar to https://github.com/konveyor/move2kube/blob/master/types/collection/cfinstanceapps.go.

Requirements:

  1. Access to Amazon ECS or Azure Container Service

Tasks involved:

  1. Create a serialization format similar to https://github.com/konveyor/move2kube/blob/master/types/collection/cfinstanceapps.go
  2. Write a collector to access the runtime using api and serialize the data similar to https://github.com/konveyor/move2kube/blob/master/internal/collector/cfappscollector.go
@ashokponkumar ashokponkumar added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. hacktoberfest labels Oct 9, 2020
@akhil-ghatiki
Copy link
Contributor

akhil-ghatiki commented Oct 12, 2020

@ashokponkumar I would like to take up this issue. I need more inputs though. Will keep you updated on this.

@ashokponkumar
Copy link
Member Author

sure @akhil-ghatiki . Please reach out if you have more questions.
The first task we could start with is the api to access ECS or ACS and how to use a go to fetch metadata about running instances.

@akhil-ghatiki
Copy link
Contributor

sure @akhil-ghatiki . Please reach out if you have more questions.
The first task we could start with is the api to access ECS or ACS and how to use a go to fetch metadata about running instances.

@ashokponkumar is there any such api used for cf instances ? I can use it for reference.

@ashokponkumar
Copy link
Member Author

https://github.com/konveyor/move2kube/blob/master/internal/collector/cfappscollector.go uses "cf curl /v2/apps" commands.

For ECS, look for ways to list all running instances, and then get metadata like image names etc.

  1. https://docs.aws.amazon.com/cli/latest/reference/ecs/

For Azure Containers, possibly https://docs.microsoft.com/en-us/cli/azure/container?view=azure-cli-latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
Projects
Move2Kube
Backlog
Move2Kube
Backlog
Development

No branches or pull requests

2 participants