question

sanm-7576 avatar image
0 Votes"
sanm-7576 asked sanm-7576 commented

Issue to setup Luis docker Image on Kubernetes

Hi Team,

We are trying to run Luis Image on Kubernetes for that we have followed below steps.

(1) Pull Luis Image from (docker pull mcr.microsoft.com/azure-cognitive-services/language/luis:latest) url and pushed it to our Private repository.
(2) Created Azure cognitive service and referring the Endpoint and API key in our deployment yaml file
(3) Created and executed Deployment yaml (which include Luis Image environment variables like Eula,Billing,API Key,Http_Proxy) and service yaml

Issue:
After executing above steps we are getting Invalid Api Key error as below .

Container is not in a valid state. Subscription validation failed with status 'Invalid'. Api Key is invalid. You must provide an valid API key to run the container. Find your API key and service region under Keys and Endpoint at your Azure Cognitive Services resource blade in the Azure Portal.

Can anyone please help on this issue. TIA.

Note: we are referring below article to setup Luis image on Kubernetes.
https://docs.microsoft.com/en-us/azure/cognitive-services/luis/luis-container-howto?tabs=v3


azure-cognitive-services
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@sanyamkulshrestha-7576 I have tried the documentation and the container does come up with no issues with the docker run command specified.

104668-image.png

Which region is your resource created in? I think this is supported in westus, westeurope and australiaeast. See here.
Also, I have noticed that invalid API key error is seen if you use quotes around the API key while passing in the command. Please ensure you use the key as is and then pass the same in docker run command.


0 Votes 0 ·
image.png (129.0 KiB)

romungi-MSFT, Thank you for the reply. The one which you are running is in local. same I am also able to run it.
I am getting error while running on Kubernetes. Below are the steps i followed.
- Pull Docker image
- Pushed it to private repo
- Created deployment yaml where I have mentioned image repo path, env. variables (API Key,Eula,Billing,HTTP_Proxy) and other as usual setting
- Created service yaml set port 6000
- Executed both service and deployment yaml
- Now container is running and I can see the external IP also but in the pod logs shows Failed to reach billing endpoint:

Note: I have created cognitive resource under westeurope region only and passing correct API key and Billing Endpoint.
Any help much appreciated.

0 Votes 0 ·

0 Answers