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

Support Containers As a Service #1138

Closed
7 tasks done
Monitob opened this issue Mar 11, 2022 · 3 comments
Closed
7 tasks done

Support Containers As a Service #1138

Monitob opened this issue Mar 11, 2022 · 3 comments
Assignees
Labels
container Container issues, bugs and feature requests enhancement
Milestone

Comments

@Monitob
Copy link
Contributor

Monitob commented Mar 11, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add support for Containers as a Service

New or Affected Resource(s)

  • scaleway_resource_container
  • scaleway_resource_container_cron
  • scaleway_resource_container_namespace
  • scaleway_datasource_container
  • scaleway_datasource_container_cron
  • scaleway_datasource_container_namespace

Potential Terraform Configuration

resource scaleway_registry_namespace main {
  name = "my-registry-name"
  description = "registry namespace for container as a service"
  is_public = true
}

resource scaleway_container_namespace main {
  name = "my-container-ns-name"
  description = "container"
}

resource scaleway_container main {
  name = "my-container"
  description = "my description"
  namespace_id = scaleway_container_namespace.main.id
  registry_image = "${scaleway_registry_namespace.main.endpoint}/alpine:test"
  port = 9997
  cpu_limit = 140
  memory_limit = 256
  min_scale = 3
  max_scale = 5
  timeout = 600
  max_concurrency = 80
  privacy = "private"
  protocol = "h2c"
  redeploy = true

  environment_variables = {
	  "foo" = "var"
  }
}

References

  • scaleway_resource_container
  • scaleway_resource_container_cron
  • scaleway_resource_container_namespace
  • scaleway_datasource_container
  • scaleway_datasource_container_cron
  • scaleway_datasource_container_namespace
  • documentation
@remyleone remyleone added the container Container issues, bugs and feature requests label Apr 15, 2022
@remyleone remyleone added this to the v2.3.0 milestone May 9, 2022
@Monitob Monitob self-assigned this May 18, 2022
@paretl
Copy link

paretl commented Jun 11, 2022

Hey! Thanks for the amazing work, I'm currently using it a lot to deploy automatically the containers from Gitlab runners
I just have a question for you (I didn't want to create an issue for that)

Is that a possibility, in the future, to update a container by using the same Docker tag, with the Terraform module ?
For example, I've deployed a toto:dev container and I would like to update it with my new image of toto:dev by applying one more time the Terraform scripts

Maybe you will advice to me to use more the version tags to update the container, you will be right.
I just need to know for my future usage 😄

Thanks in advance!

@Monitob
Copy link
Contributor Author

Monitob commented Aug 1, 2022

Thank you for the feedback I'm going to explore adding a new attribute hash like functions

@Monitob
Copy link
Contributor Author

Monitob commented Aug 9, 2022

@paretl Thanks for the feedback. This option will be soon available. Please check #1415 for more details.

@Monitob Monitob closed this as completed Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
container Container issues, bugs and feature requests enhancement
Projects
None yet
Development

No branches or pull requests

3 participants