https://rancher.com/ logo
Title
a

ancient-engine-93983

10/20/2022, 6:47 AM
Does anyone know if it is possible to create projects via yaml? We are looking for a way to automate this, perhaps via argocd ... But somehow i only find solutions via ui oder with this rancher cli tool
s

sparse-fireman-14239

10/20/2022, 8:22 AM
Rancher isn't exactly cloud-native unfortunately. Would using an API work for you?
a

ancient-engine-93983

10/20/2022, 9:31 AM
Maybe, I read that i could use the cli tool or direct api calls.
s

sparse-fireman-14239

10/20/2022, 9:35 AM
Yeah.. you could find out if Rancher stores anything in etcd, if it doesn't then it should be easy to figure out which resources it creates and simply do it yourself
a

ancient-engine-93983

10/20/2022, 9:50 AM
We checked this. Namespaces just have some annotations. But Projects use some CRD "project". And i dont find any information about this
s

sparse-fireman-14239

10/20/2022, 10:09 AM
I'm in the same boat btw 🙂 I also find it infuriating that users, groups and projects get a randomly assigned name i.e. p-df6rf which means the rest of my system needs to be able to be dynamic even though the users are the same in case of rebuilding from scratch
😀 1
a

ancient-engine-93983

10/20/2022, 1:05 PM
There is a terraform-resource "project"
Perhaps this helps