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

Update AKS module with default configuration #343

Merged
merged 11 commits into from
Oct 18, 2024

Conversation

sumanthreddy29
Copy link
Collaborator

This pull request includes multiple changes to the Terraform configuration for Azure, primarily focusing on enhancing the Kubernetes cluster setup and adding new variables for better configurability. The most important changes include updates to the README.md for new environment variables, modifications to the main Terraform files to support auto-scaling and network policies, and updates to the input schema and variable definitions.

Documentation Updates:

  • modules/terraform/azure/README.md: Added new environment variables NETWORK_POLICY and EBPF_DATA_PLANE for performance evaluation scenarios. ([[1]](https://github.com/Azure/telescope/pull/343/files#diff-6408a79a9cdb905ab9327763a955f3f5cd4d0af74ddb77f688f08a7f82e27ed0L19-R25), [[2]](https://github.com/Azure/telescope/pull/343/files#diff-6408a79a9cdb905ab9327763a955f3f5cd4d0af74ddb77f688f08a7f82e27ed0R64-R73))

Terraform Configuration Enhancements:

  • modules/terraform/azure/aks/main.tf: Enabled auto-scaling and added an auto-scaler profile and automatic channel upgrade settings for the Kubernetes cluster. ([[1]](https://github.com/Azure/telescope/pull/343/files#diff-4089bc0576048d82e335da51ad0374e2e9c0ae37db3d65c3c784e97871651fd7R31), [[2]](https://github.com/Azure/telescope/pull/343/files#diff-4089bc0576048d82e335da51ad0374e2e9c0ae37db3d65c3c784e97871651fd7R42-R47))
  • modules/terraform/azure/aks/main.tf: Removed deprecated settings oidc_issuer_enabled and workload_identity_enabled. ([modules/terraform/azure/aks/main.tfL52-L53](https://github.com/Azure/telescope/pull/343/files#diff-4089bc0576048d82e335da51ad0374e2e9c0ae37db3d65c3c784e97871651fd7L52-L53))

Variable and Schema Updates:

  • modules/terraform/azure/aks/variables.tf: Updated default values for network_plugin and network_plugin_mode and added new optional variables aks_network_policy and aks_ebpf_data_plane. ([modules/terraform/azure/aks/variables.tfL44-R45](https://github.com/Azure/telescope/pull/343/files#diff-e0b25de6470cd5774403141e8997adee371642381fd8430d6dd467f86d13b59eL44-R45))
  • modules/terraform/azure/azure_input_schema.json: Added new fields aks_network_policy and aks_ebpf_data_plane to the input schema. ([modules/terraform/azure/azure_input_schema.jsonR13-R18](https://github.com/Azure/telescope/pull/343/files#diff-4f17a00034a463e9bcadcda2dcc8f0e03cd95603ec9329474618c9f7aad5deaeR13-R18))
  • modules/terraform/azure/main.tf: Updated local variables to include new network policy settings and modified the logic for merging configurations. ([[1]](https://github.com/Azure/telescope/pull/343/files#diff-0f7f598ee8901914ae02cf0a5c9c9c1237e1bbe208688856f72a3af4e1cc12bbR5-R6), [[2]](https://github.com/Azure/telescope/pull/343/files#diff-0f7f598ee8901914ae02cf0a5c9c9c1237e1bbe208688856f72a3af4e1cc12bbL17-R46))
  • modules/terraform/azure/variables.tf: Added new optional variables aks_network_policy and aks_ebpf_data_plane to the JSON input variable definition. ([modules/terraform/azure/variables.tfR7-R8](https://github.com/Azure/telescope/pull/343/files#diff-a70d527b3b015f3aa3103f024416bbf9c1e2828c82890a61a97316c23e5402efR7-R8))

@sumanthreddy29 sumanthreddy29 changed the title Support to override network profile Update AKS module with default configuration Oct 18, 2024
anson627
anson627 previously approved these changes Oct 18, 2024
anson627
anson627 previously approved these changes Oct 18, 2024
jobs/competitive-test.yml Outdated Show resolved Hide resolved
@sumanthreddy29 sumanthreddy29 force-pushed the override-aks-network-policy branch from 89f835f to 6d760cc Compare October 18, 2024 19:08
@sumanthreddy29 sumanthreddy29 marked this pull request as ready for review October 18, 2024 19:08
Copy link
Collaborator

@alyssa1303 alyssa1303 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run an internal test before merging

@sumanthreddy29 sumanthreddy29 merged commit 6f5a77e into main Oct 18, 2024
9 checks passed
sumanthreddy29 added a commit that referenced this pull request Oct 21, 2024
sumanthreddy29 added a commit that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants