Category : azure-aks

I have a Python program which is to be executed in the Azure Kubernetes. Below is my docker file – I have Python installed #Ubuntu Base image with openjdk8 with TomEE FROM demo.azurecr.io/ubuntu/tomee/openjdk8:8.0.x RUN apt-get update && apt-get install -y telnet && apt-get install -y ksh && apt-get install -y python2.7.x && apt-get -y clean ..

Read more

I couldn’t find any previous questions regarding this so I’m posting my own. Tl;dr I can log on to Azure, but I don’t know how to use this information when using requests.get(). I’ve tried requests.get(url, stream=True, headers={ ‘Authorization’ : ‘Bearer’ + token}) but it seems to get stuck at the logon page. Long description: I ..

Read more

I am getting following error when trying to deploy machine learning model and when i deployed last time (1 month ago) with same score.py file it was deployed successfully, can anyone tell me why its giving error now Error message as below service.get_logs() Received bad response from Model Management Service: Response Code: 404 Headers: {‘Date’: ..

Read more

gRpc Client: Python:3.8 grpcio: 1.38.1 gRpc Server: Dotnet core 5.0 LoadBalancer AKS: 1.19.7 I’m getting below error when my python client calls a method. Any help to resolve is really appreciated. Python code snippet with open(‘chain.pem’, ‘rb’) as f: trusted_certs = f.read() credentials = channel = grpc.ssl_channel_credentials(root certificates=trusted_certs) # 10.200.3.24 is the K8S service IP ..

Read more

I recently deployed a python script using a docker image within a AKS pod. The python code to do the request: response = requests.get("https://google.com") The Pod deployment file: apiVersion: v1 kind: Pod metadata: name: test1 spec: containers: – name: test1 image: <linktodockerfile> imagePullSecrets: – name: test1 However I seem to get a ‘Connection aborted.’, ConnectionResetError(104, ..

Read more

I have deployed a model in private Azure Kubernetes Service and got the HTTPS endpoint to consume the model. In order to authenticate, we are using the certificate. import requests import pandas as pd import json data = pd.read_csv(‘./testinput.csv’, sep=’;’) data = data.drop(["quality"], axis=1)[:10] query_input = data.to_json(orient=’split’) query_input = eval(query_input) query_input.pop(‘index’, None) service_key=None headers = ..

Read more

I´m trying create a Python client to connect and exec a command in a pod on AKS Cluster, however when try connect i get message error from my client 401 Unauthorized.Has anyone experienced this problem in the API? API EXCEPTION MESSAGE: kubernetes.client.rest.ApiException: (401) Reason: Unauthorized HTTP response headers: HTTPHeaderDict({‘Audit-Id’: ‘ba23c2b3-d65b-4200-b802-161300119860’, ‘Cache-Control’: ‘no-cache, private’, ‘Content-Type’: ‘application/json’, ..

Read more