This message was deleted.
# rancher-desktop
a
This message was deleted.
w
what do need to set for rancher desktop that would be best through tf?
r
@wide-mechanic-33041, I'm trying to set up a local environment that would simulate a cloud like region's CI/CD. Specifically, I'm trying to set up CD using terraform and ArgoCD. My first thought was to create a terraform plugin that would use the local docker. However, to really get use of the functionality of a provider it should use the provider's API. As I understand it, rancher-desktop comes with a limited API. At the moment, it seems to be misconfigured on my box. Using rdctl api /<anything> returns an error: "404: No handler for URL GET /v1/C:/Users/XXXXXXX/Applications/Git/.". Any idea why I am getitng this error?
Actually, I found the answer to the 404 API issue. You can only run it through Powershell. You cannot run it through Gitbash. So, the API seems available.
👍 1
w
and if you do
rdctl api /
does that pop everything?
you can probably do it in gitbash, but guessing escaping matters
👍 1
r
Good point... I didn't think of that.
w
i mean rd api would be for changing things in rd like vx vs qemu on macos. the app running would be the normal docker/containerd and kube api surface
r
Using terraform, I suppose I would want to be able to set up Kubernetes infrastructure first in an isolated namespace. After that, I'd be using create app and sync app in Argo. This is a bit more complex than regular docker.
I guess the API doesn't have a way to specifically request a namespace.
w
yeah so it would be just standard k8s commands at that point. https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs
r
Ah, that might work.
w
rd is just infra. basically managing the vm and stiching things together as needed. k8s is just an app in the infra. beyond the rd setting for "enable k8s" and the version k8s manages all the stuff inside the kubelet
r
I think I understood that. Let me take a look at that link and try some hands on. Thanks for the starting point.