-
Notifications
You must be signed in to change notification settings - Fork 90
doc: add blobfuse mount with managed identity doc #1464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hi @umagnus. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
az identity list -g "$resourcegroup" --query "[?name == 'aks-fuseblob-mi-agentpool'].clientId" -o tsv | ||
``` | ||
|
||
## Using a dedicated user-assigned managed indentity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
option#2:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
az storage blob upload \ | ||
--account-name myaksblob \ | ||
--container-name mycontainer \ | ||
--name test.htm \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this application example, make it simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
--- | ||
|
||
apiVersion: v1 | ||
kind: Service |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this example, make it simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
1. Now you can use the persistent volume claim ``pv-blob2`` in another deployment. | ||
|
||
# Security consideration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's remove this , make it simple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mountstorage --> blobfuse-mi
and pls also add dynamic provisioning example
|
||
--- | ||
|
||
apiVersion: v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove service
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
volumeHandle: pv-blob1 | ||
volumeAttributes: | ||
protocol: fuse | ||
resourceGroup: aks-fuseblob-mi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename as blobfuse-mi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
volumeHandle: pv-blob1 | ||
volumeAttributes: | ||
protocol: fuse | ||
resourceGroup: aks-fuseblob-mi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blobfuse-mi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
- Create a storage account container, e.g. | ||
```bash | ||
resourcegroup="aks-fuseblob-mi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blobfuse-mi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
app: nginx-app1 | ||
spec: | ||
containers: | ||
- image: mcr.microsoft.com/oss/nginx/nginx:1.19.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use this example config:
blob-csi-driver/deploy/example/deployment.yaml
Lines 35 to 39 in 12d5f64
image: mcr.microsoft.com/oss/nginx/nginx:1.17.3-alpine | |
command: | |
- "/bin/sh" | |
- "-c" | |
- while true; do echo $(date) >> /mnt/blob/outfile; sleep 1; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
added dynamic provisioning example |
storageAccount: EXISTING_STORAGE_ACCOUNT_NAME # optional, if use existing storage account | ||
containerName: EXISTING_CONTAINER_NAME # optional, if use existing container | ||
AzureStorageAuthType: MSI | ||
AzureStorageIdentityClientID: "92926dfd-e61b-4730-85ab-5be73b374e82" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use `xxx-xx ..' for this
@@ -0,0 +1,27 @@ | |||
apiVersion: v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename as deploy/example/blobfuse-mi/pv-blobfuse-mi.yaml
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: pvc-blob2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't need this, just use existing pvc-blob-csi-static.yaml
under example dir
apiVersion: v1 | ||
kind: PersistentVolume | ||
metadata: | ||
name: pv-blob2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just use pv-blobfuse-csi
, then you could reuse existing pvc-blob-csi-static.yaml
storageAccount: EXISTING_STORAGE_ACCOUNT_NAME # optional, if use existing storage account | ||
containerName: EXISTING_CONTAINER_NAME # optional, if use existing container | ||
AzureStorageAuthType: MSI | ||
AzureStorageIdentityClientID: "xxxxx-xxxx-xxx-xxx-xxxxxxx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how is this AzureStorageIdentityClientID generated? I think you need to add get ClientID into Before you begin
section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add it
@umagnus: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, umagnus The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind documentation
What this PR does / why we need it:
doc: add mount azure blob storage doc
referring to https://github.com/qxsch/Azure-Aks/tree/master/aks-blobfuse-mi
Which issue(s) this PR fixes:
Fixes #
Requirements:
Special notes for your reviewer:
Release note: