File tree Expand file tree Collapse file tree 3 files changed +5
-14
lines changed
kubernetes/test-infra/aks Expand file tree Collapse file tree 3 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -78,13 +78,9 @@ resource "azurerm_kubernetes_cluster" "tf-k8s-acc" {
7878 vnet_subnet_id = azurerm_subnet. tf-k8s-acc . id
7979 }
8080
81- service_principal {
82- client_id = var. aks_client_id
83- client_secret = var. aks_client_secret
84- }
8581
86- role_based_access_control {
87- enabled = true
82+ identity {
83+ type = " SystemAssigned "
8884 }
8985
9086 network_profile {
Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ output "kubeconfig_path" {
22 value = local_file. kubeconfig . filename
33}
44
5+ output "cluster_name" {
6+ value = azurerm_kubernetes_cluster. tf-k8s-acc . name
7+ }
Original file line number Diff line number Diff line change @@ -22,14 +22,6 @@ variable "workers_type" {
2222 default = " Standard_DS4_v2"
2323}
2424
25- variable "aks_client_id" {
26- description = " The Client ID for the Service Principal to use for this Managed Kubernetes Cluster"
27- }
28-
29- variable "aks_client_secret" {
30- description = " The Client Secret for the Service Principal to use for this Managed Kubernetes Cluster"
31- }
32-
3325# Uncomment to enable SSH access to nodes
3426#
3527# variable "public_ssh_key_path" {
You can’t perform that action at this time.
0 commit comments