question

Hitendra-9698 avatar image
0 Votes"
Hitendra-9698 asked Hitendra-9698 commented

Connect AKS pod inside private subnet to another subnet VM which is in same private Vnet.

Problem:
I have a private Vnet which is having multiple subnets which is private.
I have deployed an AKS cluster inside one of the subnets now I want to access the pod through a VM which is in another subnet.
I am trying to connect through cluster and public IP both but it's not working.

Please suggest a solution for the above scenario.

azure-kubernetes-service
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.

1 Answer

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered Hitendra-9698 commented
· 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.

Thanks for the response, yes have configured the azure CNI.
I have a private subnet where I have hosted the cluster and I need to connect the cluster pods within the same Vnet VMs.
Please suggest if you have any solution for the same.
Below is my yaml file.
Please assist if there is something I am missing




0 Votes 0 ·

apiVersion : apps/v1
kind: Deployment
metadata:
name: xoinsightmanager
spec:
replicas: 1
selector:
matchLabels:
app: xoinsightmanager
template:
metadata:
labels:
app: xoinsightmanager
spec:
containers:
- name: xoinsightmanager
image: x20newaksregistry.azurecr.io/xoinsightmanager
ports:
- containerPort: 80
hostPort: 5000
apiVersion: v1
kind: Service
metadata:
name: xoinsightmanager
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: "true"
service.beta.kubernetes.io/azure-load-balancer-internal-subnet: "backend"
spec:
type: LoadBalancer
loadBalancerIP: 10.242.255.33
ports:
- port: 5000
targetPort: 5000
selector:
app: xoinsightmanager

0 Votes 0 ·