Skip to content

Add DNS config and log analytics to AzureContainerInstanceOperator #39149

Closed

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

Activity

  1. boring-cyborg commented on Apr 20, 2024

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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