kubernetes

PyArango holds persistent connection with pod even after Node Death (Kubernetes)

PyArango holds persistent connection with pod even after Node Death (Kubernetes) Question: I have a Kubernetes Multinode system set up 3 three nodes. I am creating a connection between a pod on Node 2 to the Arango deployment using PyArango, the Arango Deployment has two coordinator pods one on Node 2 and one on Node …

Total answers: 2

How to execute a command on Jupyter Notebook Terminal via the Rest API or any Method

How to execute a command on Jupyter Notebook Terminal via the Rest API or any Method Question: I have deployed Jupyterhub on Kubernetes following this guide link, I have setup nbgrader and ngshare on jupyterhub using this guide link, I have a Learning management system(LMS) similar to moodle, I want to view the list of …

Total answers: 1

Django google kubernetes client not running exe inside the job

Django google kubernetes client not running exe inside the job Question: I have a docker image that I want to run inside my django code. Inside that image there is an executable that I have written using c++ that writes it’s output to google cloud storage. Normally when I run the django code like this: …

Total answers: 2

Configure volumes in airflow GKEStartPodOperator operator

Configure volumes in airflow GKEStartPodOperator operator Question: I have a google cloud composer environment. In my DAG I want to create a pod in GKE. When I come to deploy a simple app based on a docker container that doesn’t need any volume configuration or secrets, everything works fine, for example: kubernetes_max = GKEStartPodOperator( # …

Total answers: 1

How to read a Kubernetes Deployment with python kubernetes client

How to read a Kubernetes Deployment with python kubernetes client Question: what is python kubernetes client equivalent for kubectl get deploy -o yaml CRUD python Client example i referred this example for getting python deployment but there is no read deployment option Asked By: Pradeep Padmanaban C || Source Answers: read_namespaced_deployment() does the thing: from …

Total answers: 2

How to log raw HTTP request/response in Python FastAPI

How to log raw HTTP request/response in Python FastAPI? Question: We are writing a web service using Python FastAPI that is going to be hosted in Kubernetes. For auditing purposes, we need to save the raw JSON body of the request/response for specific routes. The body size of both request and response JSON is about …

Total answers: 3

How can I access the kube-apiserver from inside a Python pod?

How can I access the kube-apiserver from inside a Python pod? Question: I’m pretty new to Kubernetes/Dockers and planning to create a simple Python pod that runs on a cluster and maps the cluster nodes and pods in a constant interval (for example once a day). I’m planning to do it using the Kubernetes Python …

Total answers: 1

Why did I encounter an "Error syncing pod" with Dataflow pipeline?

Why did I encounter an "Error syncing pod" with Dataflow pipeline? Question: I experiment a weird error with my Dataflow pipeline when I want to use specific library from PyPI. I need jsonschema in a ParDo, so, in my requirements.txtfile, I added jsonschema==3.2.0. I launch my pipeline with the command line below: python -m gcs_to_all …

Total answers: 2