We deployed our app, Pod and Service in Azure Kubernetes Service but we cannot connect to our container app from the VM from another Virtual Network. It seems that Service Type internal load balancer cannot be used for those purpose when we want to establish network connection from Azure resource (VM) from another Virtual Network/SubNet, compared to AKS Pod. I read docs https://docs.microsoft.com/en-us/azure/aks/ingress-internal-ip but I am still confused how I should modify my YAML definition in order to deploy our app with "Ingress-Controller with type Internal LB". Can you please assist me how YAML should be modified? And do I really need to install something with Helm (I have never used it before) and from where that needs to be installed.. I would like to AVOID that if possible. I do not understand that concept desribed in docs. For us I think it is ok if we have ingress controller in the same namespace.
Thank you!
apiVersion: apps/v1
kind: Deployment
metadata:
name: fa-ads-deployment
labels:
app: fa-ads-deployment
spec:
replicas: 1
template:
metadata:
name: frontarena-ads-aks-test
labels:
app: frontarena-ads-aks-test
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
restartPolicy: Always
containers:
- name: frontarena-ads-aks-test
image: faselect.dev/frontarena/ads:test1
ports:
- containerPort: 9000
selector:
matchLabels:
app: frontarena-ads-aks-test
---
apiVersion: v1
kind: Service
metadata:
name: frontarena-ads-aks-test
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 9000
selector:
app: frontarena-ads-aks-test