juju / terraform-provider-juju

A Terraform provider for Juju
Apache License 2.0
19 stars 31 forks source link

Add management of k8s clouds #232

Open jsimpso opened 1 year ago

jsimpso commented 1 year ago

Hi,

This is a wishlist item to request the ability to manage k8s clouds (juju add-k8s, juju remove-k8s).

I've opened this knowing that #105 exists (Ability to manage clouds) as I'm not sure how much is shared between add-cloud and add-k8s.

Thanks :)

gruyaume commented 11 months ago

+1 on this item, currently one needs to go back and forth between Terraform and Juju CLI:

  1. Create K8s cluster (Terraform)
  2. Bootstrap juju controller (manual)
  3. Add K8s cluster to Juju controller (manual)
  4. Deploy application on k8s cloud (Terraform)
nishant-dash commented 5 months ago

+1 from me as well, I have a similar workflow I am personally working on and having this resource in terraform would be great!

tlm commented 5 months ago

Just providing an update onto this. We received a ping about this on Matrix today. Essentially what we are looking to add here is the ability to model a cloud in terraform so that the existing credential aspects can be used. This would all use our AddCloud facades. AddK8s is just a special client command and doesn't have any special translation to the server facades.

hmlanigan commented 5 months ago

@tlm you can specify a model should use a specific cloud today, not sure why its not working for k8s. There is no add cloud functionality available.

tlm commented 5 months ago

@hmlanigan What they are after is the ability to provision a Kubernetes cloud through Terraform into their respective environments then add that newly created cloud to Juju.

Because Kubernetes isn't at a fixed location like the other clouds we need a call to AddCloud to happen to tell the controller about it then they can provide credentials.

dparv commented 4 months ago

+1!

hmlanigan commented 4 months ago

We need to implement a cloud resource in general. There is a Jira epic with many updates related to clouds which hasn't received a high enough priority yet to start work.

We do gladly accept contributes and there is a process for getting schema changes and additions approved.