Does Azure Container apps support PID namespace sharing for multiple containers within Azure Container Apps

PS 150 Reputation points
2024-05-04T08:25:47.99+00:00

Does Azure Container Apps support pid namespace sharing among containers within the same app.
Equivalent to "shareProcessNamespace" option use in kubernetes spec
https://kubernetes.io/docs/tasks/configure-pod-container/share-process-namespace/

Could find any option in the Azure container apps portal or github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/appcontainers/armappcontainers which can be used to enable it

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
324 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshukatara-6769 6,795 Reputation points
    2024-05-15T08:10:18.41+00:00

    Hi , Welcome to MS Q&A

    Azure Container Apps does not directly support sharing PID namespaces among containers within the same app. However, you can achieve similar functionality by using Kubernetes on Azure Container Apps.

    In Kubernetes, you can indeed use the shareProcessNamespace option in a Pod spec to share the PID namespace among containers within the same Pod. This allows all containers in the Pod to view and signal processes in other containers within the same namespace.

    To leverage this functionality in Azure Container Apps, you would need to deploy your containers using Kubernetes. Azure provides Azure Kubernetes Service (AKS), which is a managed Kubernetes service that makes it easy to deploy, manage, and scale containerized applications using Kubernetes on Azure.

    By deploying your containers on AKS, you can create Pods with shared PID namespaces using the shareProcessNamespace option in the Pod spec, achieving the equivalent functionality of shareProcessNamespace in Kubernetes.

    Please check for ref -->

    User's image

    https://video2.skills-academy.com/en-us/azure/container-apps/compare-options

    Kindly accept answer if it helps, if you have further questions, please let me know Thanks!


0 additional answers

Sort by: Most helpful