I am developing an application which uses Pod Identity to connect to Azure Sql Database.
After deploying it on Azure Kubernetes Service (AKS), POD(application) connects to Azure Sql using PodIdentity (Managed Identity).
How can I assign the same identity to POD while running on my local k8s cluster?
My deployment yaml looks like
kind: Deployment
metadata:
name: xxx
labels:
app: xxx
spec:
selector:
matchLabels:
appName: xxx
replicas: 1
template:
metadata:
labels:
appName: xxx
aadpodidbinding: samplepodidentity
spec:
containers:
- name: xxx
image: xxx
env:
- name: xxx
value: "xxx"
- name: UpdateDbTraceEndpoint
value: "xxx"
ports:
- containerPort: 80