Add DNS config and log analytics to AzureContainerInstanceOperator #39149
Labels
area:providers
good first issue
kind:feature
Feature Requests
provider:microsoft-azure
Azure-related issues
Description
When creating a container using the AzureContainerInstanceOperator, it would be good to have the ability to provide DNS configuration and to be able to hook up an existing log analytics workspace.
Example from Azure SDK:
https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerinstance/azure-mgmt-containerinstance/generated_samples/container_groups_create_or_update.py
Use case/motivation
When creating a container instance in a subnet/vnet, azure does not automatically resolve DNS (as it does for VMs). So we need to pass the custom name servers when creating the container group as per: https://learn.microsoft.com/en-us/azure/container-instances/container-instances-custom-dns
These settings already exist in the mgmt api used by the ContainerGroupsOperator so should be an easy addition.
additionally, it would nice to be able to hook up an existing log analytics workspace when creating a container instance. This is also available in the mgmt api.
happy to submit a PR.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: