Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Private Endpoint #28

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Added Private Endpoint #28

wants to merge 7 commits into from

Conversation

vedant990
Copy link

what

  • Added Private Endpoint

Why :

  • It is needed for private-connection

@vedant990 vedant990 added the enhancement New feature or request label Oct 21, 2024
@clouddrove-ci clouddrove-ci self-assigned this Oct 21, 2024
Comment on lines +2 to +428
client_secret = var.client_secret
}
}
dynamic "storage_profile" {
for_each = var.storage_profile_enabled ? ["storage_profile"] : []

content {
blob_driver_enabled = var.storage_profile.blob_driver_enabled
disk_driver_enabled = var.storage_profile.disk_driver_enabled
# disk_driver_version = var.storage_profile.disk_driver_version
file_driver_enabled = var.storage_profile.file_driver_enabled
snapshot_controller_enabled = var.storage_profile.snapshot_controller_enabled
}
}

identity {
type = var.private_cluster_enabled && var.private_dns_zone_type == "Custom" ? "UserAssigned" : "SystemAssigned"
}

dynamic "web_app_routing" {
for_each = var.web_app_routing == null ? [] : ["web_app_routing"]

content {
dns_zone_ids = var.web_app_routing.dns_zone_id
}
}

dynamic "linux_profile" {
for_each = var.linux_profile != null ? [true] : []
iterator = lp
content {
admin_username = var.linux_profile.username

ssh_key {
key_data = var.linux_profile.ssh_key
}
}
}

dynamic "workload_autoscaler_profile" {
for_each = var.workload_autoscaler_profile == null ? [] : [var.workload_autoscaler_profile]

content {
keda_enabled = workload_autoscaler_profile.value.keda_enabled
vertical_pod_autoscaler_enabled = workload_autoscaler_profile.value.vertical_pod_autoscaler_enabled
}
}




dynamic "windows_profile" {
for_each = var.windows_profile != null ? [var.windows_profile] : []

content {
admin_username = windows_profile.value.admin_username
admin_password = windows_profile.value.admin_password
license = windows_profile.value.license

dynamic "gmsa" {
for_each = windows_profile.value.gmsa != null ? [windows_profile.value.gmsa] : []

content {
dns_server = gmsa.value.dns_server
root_domain = gmsa.value.root_domain
}
}
}
}

network_profile {
network_plugin = var.network_plugin
network_policy = var.network_policy
network_data_plane = var.network_data_plane
dns_service_ip = cidrhost(var.service_cidr, 10)
service_cidr = var.service_cidr
load_balancer_sku = var.load_balancer_sku
network_plugin_mode = var.network_plugin_mode
outbound_type = var.outbound_type
pod_cidr = var.net_profile_pod_cidr


dynamic "load_balancer_profile" {
for_each = var.load_balancer_profile_enabled && var.load_balancer_sku == "standard" ? [1] : []

content {
idle_timeout_in_minutes = var.load_balancer_profile_idle_timeout_in_minutes
managed_outbound_ip_count = var.load_balancer_profile_managed_outbound_ip_count
managed_outbound_ipv6_count = var.load_balancer_profile_managed_outbound_ipv6_count
outbound_ip_address_ids = var.load_balancer_profile_outbound_ip_address_ids
outbound_ip_prefix_ids = var.load_balancer_profile_outbound_ip_prefix_ids
outbound_ports_allocated = var.load_balancer_profile_outbound_ports_allocated
}
}
}
depends_on = [
azurerm_role_assignment.aks_uai_private_dns_zone_contributor,
]
tags = module.labels.tags
}

Check warning

Code scanning / defsec

Ensure AKS logging to Azure Monitoring is Configured Warning

Cluster does not have logging enabled via OMS Agent.
@clouddrove-ci
Copy link
Member

Terraform Security Scan Failed

Show Output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants