Open Farzad-Jalali opened 4 years ago
Try moving aadpodidbinding to be under spec/template/metadata/labels like:
kind: Deployment
apiVersion: apps/v1
metadata:
name: nginx-secrets-store
labels:
app: nginx-secrets-store
spec:
selector:
matchLabels:
app: nginx-secrets-store
template:
metadata:
labels:
app: nginx-secrets-store
aadpodidbinding: azure-kv
spec:
containers:
- name: nginx
image: nginx
volumeMounts:
- name: secrets-store-inline
mountPath: "/mnt/secrets-store"
readOnly: true
volumes:
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: secret-provider-kv
Dear Houssem,
Thank you for sharing your code, It's really nice and I have to admit that I impressed, please continue the good work.
I'm playing with your code (the one in the below URL), it works just fine when you deploy your pods directly. https://github.com/HoussemDellai/aks-keyvault/blob/master/commands-identity.ps1
But I noticed when I use the "deployment kind" instead of the pod kind, something like the below example then it won't work,
When I describe the pods to see what is the error, I see the below output:
Here is the deployment yaml
here is the full error: