Skip to content

AzureStorageAuthType SPN with Inline volume #839

Answered by andyzhangx
PLCyr asked this question in Q&A
Discussion options

You must be logged in to vote

try config like following:

kubectl create secret generic azure-secret --from-literal azurestoragespnclientsecret="xxx" --type=Opaque
  volumes:
    - name: persistent-storage
      csi:
        driver: blob.csi.azure.com
        volumeAttributes:
          resourceGroup: EXISTING_RESOURCE_GROUP_NAME
          storageAccount: EXISTING_STORAGE_ACCOUNT_NAME
          containerName: EXISTING_CONTAINER_NAME
          secretName: azure-secret
          AzureStorageAuthType: spn
          AzureStorageSPNClientID:
          AzureStorageSPNTenantID:
          AzureStorageAADEndpoint:
          mountOptions: "-o allow_other --file-cache-timeout-in-seconds=120"  # optional

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@andyzhangx
Comment options

@PLCyr
Comment options

@andyzhangx
Comment options

@PLCyr
Comment options

@andyzhangx
Comment options

Answer selected by andyzhangx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants