Skip to content

Create aks2.tf #2

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions terraform/azure/aks2.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
resource azurerm_kubernetes_cluster "k8s_cluster" {
dns_prefix = "terragoat-${var.environment}"
location = var.location
name = "terragoat-aks-${var.environment}"
resource_group_name = azurerm_resource_group.example.name
identity {
type = "SystemAssigned"
}
default_node_pool {
name = "default"
vm_size = "Standard_D2_v2"
node_count = 2
}
addon_profile {
oms_agent {
enabled = false
}
kube_dashboard {
enabled = true
}
}
role_based_access_control {
enabled = false
}
}
Comment on lines +1 to +25

Check failure

Code scanning / defsec

Ensure AKS cluster has Network Policy configured Error

Kubernetes cluster does not have a network policy set.
Comment on lines +1 to +25

Check failure

Code scanning / defsec

Ensure AKS has an API Server Authorized IP Ranges enabled Error

Cluster does not limit API access to specific IP addresses.
Comment on lines +1 to +25

Check warning

Code scanning / defsec

Ensure AKS logging to Azure Monitoring is Configured Warning

Cluster does not have logging enabled via OMS Agent.
Comment on lines +1 to +25

Check failure

Code scanning / defsec

Ensure RBAC is enabled on AKS clusters Error

Cluster has RBAC disabled
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure ephemeral disks are used for OS disks Error

Ensure ephemeral disks are used for OS disks
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure that the AKS cluster encrypt temp disks, caches, and data flows between Compute and Storage resources Error

Ensure that the AKS cluster encrypt temp disks, caches, and data flows between Compute and Storage resources
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure autorotation of Secrets Store CSI Driver secrets for AKS clusters Error

Ensure autorotation of Secrets Store CSI Driver secrets for AKS clusters
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure AKS logging to Azure Monitoring is Configured Error

Ensure AKS logging to Azure Monitoring is Configured
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure AKS has an API Server Authorized IP Ranges enabled Error

Ensure AKS has an API Server Authorized IP Ranges enabled
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure Kubernetes Dashboard is disabled Error

Ensure Kubernetes Dashboard is disabled
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure that AKS uses Azure Policies Add-on Error

Ensure that AKS uses Azure Policies Add-on
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure AKS cluster upgrade channel is chosen Error

Ensure AKS cluster upgrade channel is chosen
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure AKS local admin account is disabled Error

Ensure AKS local admin account is disabled
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure that AKS enables private clusters Error

Ensure that AKS enables private clusters
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure RBAC is enabled on AKS clusters Error

Ensure RBAC is enabled on AKS clusters
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure Azure Kubernetes Cluster (AKS) nodes should use a minimum number of 50 pods. Error

Ensure Azure Kubernetes Cluster (AKS) nodes should use a minimum number of 50 pods.
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure that AKS use the Paid Sku for its SLA Error

Ensure that AKS use the Paid Sku for its SLA
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure AKS cluster has Network Policy configured Error

Ensure AKS cluster has Network Policy configured
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure that only critical system pods run on system nodes Error

Ensure that only critical system pods run on system nodes
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure that AKS uses disk encryption set Error

Ensure that AKS uses disk encryption set
Comment on lines +1 to +25

Check failure

Code scanning / bridgecrew

Ensure AKS cluster has Azure CNI networking enabled Error

Ensure AKS cluster has Azure CNI networking enabled
Loading