Skip to content

Add DNS config and log analytics to AzureContainerInstanceOperator #39149

@Kylea650

Description

@Kylea650

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?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions