# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.
### Expected Behavior
When I create the Kubernetes objects using the YAML from this article https://docs.microsoft.com/en-us/azure/azure-arc/data/create-data-controller-using-kubernetes-native-tools and issue:
```kubectl get all -n arc-ds-controller```
this is what I see:
NAME READY STATUS RESTARTS AGE
pod/bootstrapper-lxlzl 1/1 Running 0 3m26s
pod/control-xxxgw 2/2 Running 0 11s
pod/controldb-0 2/2 Terminating 0 11s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/controldb-svc ClusterIP 10.233.42.205 1433/TCP,8311/TCP,8411/TCP 12s
service/controller-svc ClusterIP 10.233.22.220 443/TCP,8311/TCP,8301/TCP,8411/TCP,8401/TCP 12s
service/controller-svc-external LoadBalancer 10.233.59.180 10.XXX.YYY.93 30080:32754/TCP 12s
NAME DESIRED CURRENT READY AGE
replicaset.apps/bootstrapper 1 1 1 3m26s
replicaset.apps/control 1 1 1 11s
NAME READY AGE
statefulset.apps/controldb 1/1 11s
### Actual Behavior
When I issue a kubectl get all -n arc-ds-controller after applying the Terraform configurations, I see:
NAME READY STATUS RESTARTS AGE
pod/bootstrapper-d7f9fcc65-x6sgl 1/1 Running 0 36m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/bootstrapper 1/1 1 1 36m
NAME DESIRED CURRENT READY AGE
replicaset.apps/bootstrapper-d7f9fcc65 1 1 1 36m
### Important Factoids
- I'm running Kubernetes 1.20.7 that has been deployed to Ubuntu virtual machines running on VMware via Kubespray
- terraform plan reports zero issues for any of config except for a warning about the fact that the ability to specify password for
Azure service principals will soon be deprecated
### References
NA
### Community Note
<!--- Please keep this note for the community --->
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform, Provider, Kubernetes versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/chrisadkin/ccb3f63e8b09ed2cb6b551b0edbdc0d5
Steps to Reproduce
kubectl create ns arc-ds-controller
terraform apply (for the following configuration)
main.tf
crd.tf
resource "kubernetes_manifest" "arc" { provider = kubernetes-alpha
manifest = { "apiVersion" = "arcdata.microsoft.com/v1alpha1" "kind" = "datacontroller" "metadata" = { "name" = "arc" "namespace" = "arc-ds-controller" } "spec" = { "credentials" = { "controllerAdmin" = "controller-login-secret" "serviceAccount" = "sa-mssql-controller" } "docker" = { "imagePullPolicy" = "Always" "imageTag" = "latest" "registry" = "mcr.microsoft.com" "repository" = "arcdata" } "security" = { "allowDumps" = true "allowNodeMetricsCollection" = true "allowPodMetricsCollection" = true "allowRunAsRoot" = false } "services" = [ { "name" = "controller" "port" = 30080 "serviceType" = "LoadBalancer" }, { "name" = "serviceProxy" "port" = 30777 "serviceType" = "LoadBalancer" }, ] "settings" = { "ElasticSearch" = { "vm.max_map_count" = "-1" } "azure" = { "connectionMode" = "indirect" "displayName" = "arc" "enableBilling" = "True" "location" = "eastus" "logs.rotation.days" = "7" "logs.rotation.size" = "5000" "resourceGroup" = "AzureArcTestEastUS" "subscription" = "< Put your own subscription string here>" } } "storage" = { "data" = { "accessMode" = "ReadWriteOnce" "className" = "portworx-sc" "size" = "15Gi" } "logs" = { "accessMode" = "ReadWriteOnce" "className" = "portworx-sc" "size" = "10Gi" } } } } }
NAME READY STATUS RESTARTS AGE pod/bootstrapper-lxlzl 1/1 Running 0 3m26s pod/control-xxxgw 2/2 Running 0 11s pod/controldb-0 2/2 Terminating 0 11s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/controldb-svc ClusterIP 10.233.42.205 1433/TCP,8311/TCP,8411/TCP 12s
service/controller-svc ClusterIP 10.233.22.220 443/TCP,8311/TCP,8301/TCP,8411/TCP,8401/TCP 12s
service/controller-svc-external LoadBalancer 10.233.59.180 10.XXX.YYY.93 30080:32754/TCP 12s
NAME DESIRED CURRENT READY AGE replicaset.apps/bootstrapper 1 1 1 3m26s replicaset.apps/control 1 1 1 11s
NAME READY AGE statefulset.apps/controldb 1/1 11s
NAME READY STATUS RESTARTS AGE pod/bootstrapper-d7f9fcc65-x6sgl 1/1 Running 0 36m
NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/bootstrapper 1/1 1 1 36m
NAME DESIRED CURRENT READY AGE replicaset.apps/bootstrapper-d7f9fcc65 1 1 1 36m