Last active
September 12, 2019 11:23
-
-
Save jwmatthews/ac1c174bfafcee3d935a67646231e60d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NOOBAA_CMD=noobaa-linux-v1.1.1 | |
NOOBAA_NAMESPACE="noobaa" | |
wget https://github.com/noobaa/noobaa-operator/releases/download/v1.1.1/${NOOBAA_CMD} | |
chmod +x ./${NOOBAA_CMD} | |
./${NOOBAA_CMD} install --namespace ${NOOBAA_NAMESPACE} | |
oc expose svc s3 -n ${NOOBAA_NAMESPACE} | |
S3_ENDPOINT=`oc get route s3 -n ${NOOBAA_NAMESPACE} -o go-template='{{ .spec.host }}'` | |
AWS_ACCESS_KEY_ID=`oc get secret noobaa-admin -n ${NOOBAA_NAMESPACE} -o go-template='{{ .data.AWS_ACCESS_KEY_ID }}' | base64 -d` | |
AWS_SECRET_ACCESS_KEY=`oc get secret noobaa-admin -n ${NOOBAA_NAMESPACE} -o go-template='{{ .data.AWS_SECRET_ACCESS_KEY }}' | base64 -d` | |
echo "S3 endpoint of: '${S3_ENDPOINT}'" | |
echo "AWS_ACCESS_KEY_ID of '${AWS_ACCESS_KEY_ID}'" | |
echo "AWS_SECRET_KEY of '${AWS_SECRET_ACCESS_KEY}'" | |
# Example using aws cli to interact | |
# Need to set env vars of AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as above | |
# aws --no-verify-ssl --endpoint $S3_ENDPOINT s3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment