apiVersion: v1 kind: Pod metadata: name: get-sp spec: containers: - image: mcr.microsoft.com/azure-cli securityContext: privileged: true name: sp-app command: ["/bin/sh", "-c", "--"] args: ["while true; do sleep 5; done;"] volumeMounts: - name: host-sp mountPath: /host/azure.json readOnly: false volumes: - name: host-sp hostPath: # this file contains the cluster service-principal, it exists on every node by default path: /etc/kubernetes/azure.json type: File