You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 "me too" comments, 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 and review the contribution guide to help.
Description
I would like to be able to call on an existing cluster, but azurerm_arc_kubernetes_cluster lacks a data method only the new resource method which while extensive appears to be largely for Azure based machines or publicly exposed clusters which is not in my homelab use-case. This way I can connect a couple of nodes as separate clusters from onprem and manage them for things like installing extensions.
New or Affected Resource(s)/Data Source(s)
azurerm_arc_kubernetes_cluster
Potential Terraform Configuration
I'd imagine it'd largely look like the Azure Arc Machine: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/data-sources/arc_machinedata"azurerm_arc_machine""example" {
name="existing-hcmachine"resource_group_name="existing-rg"
}
output"id" {
value=data.azurerm_arc_machine.example.id
}
References
No response
The text was updated successfully, but these errors were encountered:
@stephybun@teowa I am trying to deploy a Azure ARC for Kubernetes. My Kubernetes cluster is in on prem and i want to create the Azure Arc for Kubernetes using terraform.
As per documentation i understand that az connectedk8s connect along with --name “asd” --resource-group “rgname” --location “westeurope” --correlation-id “XXX” --tags “Datacenter City StateOrDistrict CountryOrRegion” needs to be run in the Vm which there is current context is the Kubernetes cluster which we want to connect to Arc. This command will do the helm chart deployment to deploy the agent in Kubernetes cluster and connect to Azure.
But in the below link for terraform i don’t see the option of tags and connection. Its asking to pass public key. What does this mean?
Is there an existing issue for this?
Community Note
Description
I would like to be able to call on an existing cluster, but azurerm_arc_kubernetes_cluster lacks a data method only the new resource method which while extensive appears to be largely for Azure based machines or publicly exposed clusters which is not in my homelab use-case. This way I can connect a couple of nodes as separate clusters from onprem and manage them for things like installing extensions.
New or Affected Resource(s)/Data Source(s)
azurerm_arc_kubernetes_cluster
Potential Terraform Configuration
References
No response
The text was updated successfully, but these errors were encountered: