My .NET Core 8 application in AKS Container is in running start, but its application is not started application is not getting started.
Updated with by inserting container port 8080 instead of 80 updated with env variable in deployment file
- name: ASPNETCORE_ENVIRONMENT
value: "Demo"
- name: ASPNETCORE_HTTP_PORTS
value: "80"
- name: ASPNETCORE_HTTPS_PORTS
value: "443"
- name: ASPNETCORE_URLS
value: "http://*:80;https://*:443"
ports:
- containerPort: 8080
name: http
- containerPort: 8081
name: https
Exposed port 8080 in docker files and below is my service file
type: ClusterIP
selector:
env: demo
app: standard8
ports:
- targetPort: 8080
protocol: TCP
port: 8080
name: http
- targetPort: 8081
protocol: TCP
port: 8081
name: https
After running the above deployment & service & deployment file application is getting 502