How to install python in AKS

Shunrui Cao 46 Reputation points
2022-04-11T08:48:59.593+00:00

Hi teams,
In my opinion, there are two way to use python in AKS. And do you have the detail procdure about anyone?
I tried first way to install python but failure to mount the nfs to aks.
First way, make a azure storage and install NFS, install python at here and then mount it to AKS.
Second way, install python to a pv and use python as image.

Best regards
Shunrui

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
398 questions
0 comments No comments
{count} votes

Accepted answer
  1. KarishmaTiwari-MSFT 18,527 Reputation points Microsoft Employee
    2022-04-11T19:16:51.39+00:00

    @Shunrui Cao Thanks for posting your query.

    Issue description:
    Get started with AKS using Python

    Recommended solution:
    In order to be able to use AKS with Python, you should not need to have use NFS or Persistent volume in general.
    I would recommend going through the following documentation on how to get started with using Kubernetes with Python.
    https://kubernetes.io/blog/2019/07/23/get-started-with-kubernetes-using-python/

    Steps would include:

    1. Get the Python application code and run the application locally
    2. Create an image and run the Python application in Docker
    3. Create a deployment and run the application in Kubernetes/AKS

    Please let me know if you have any further questions and I would be happy to help. Thanks.


0 additional answers

Sort by: Most helpful