-
Notifications
You must be signed in to change notification settings - Fork 68
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
Feat/mariner deploy aws gateway. #1767
Conversation
b86127b
to
d431343
Compare
d431343
to
04dfd7b
Compare
accessModes: | ||
- ReadWriteMany | ||
nfs: | ||
server: 172.24.211.63 |
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.
this should not be hardcoded, but need to get this dynamically, either from manifest or programmatically.
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.
AWS CLI can return this:
aws storagegateway describe-gateway-information --gateway-arn <gateway_arn> | jq -r '.GatewayNetworkInterfaces[].Ipv4Address'
The only thing we'll need a gateway ARN somewhere in the manifest, unless we can map S3 bucket to gateway ARN and use that.
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.
Actually, we can use aws storagegateway list-file-shares
to list available file shares, use aws storagegateway describe-nfs-file-shares --file-share-arn-list <file_share_arn>
to get S3 bucket.
Something like this:
aws storagegateway describe-gateway-information --gateway-arn \
$(aws storagegateway describe-nfs-file-shares \
--file-share-arn-list \
$(aws storagegateway list-file-shares | jq -r '.FileShareInfoList[].FileShareARN') \
| jq -r '.NFSFileShareInfoList[] | select(.Path == "<replace_this_by_mount_path>") | .GatewayARN') \
| jq -r '.GatewayNetworkInterfaces[].Ipv4Address'
In this case, <replace_this_by_mount_path>
equals to /newstoragegw-poc
.
Also, there may be multiple file share to the same bucket and mount path, so it's probably should be configurable. And there may be multiple IP addresses.
fc21d8d
to
816bd26
Compare
816bd26
to
0c817a2
Compare
0c817a2
to
98a50ab
Compare
Jira Ticket: PXP-8909
New Features