Updated pod.yml with new secrets configuration for aws #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added 2 files under the k8s secrets named
prp-s3-credentials,/root/.aws/credentialsand/root/.s3cfg(for s3cmd, which I summarily declare trounces awscli for usability).I've updated the pod.yml example here as follows:
volumeMountsnow mount only the file, not the entire folder (the mount is read-only, so that's useful).awsclirespect a non AWS endpoint without a complex install of the endpoint plugin which was beyond what we should be doing in the secrets file. See: Ability to specify endpoint-url in profile aws/aws-cli#1270. So I just configured nautilus S3 as default and removed profile. Note: If someone needs to access AWS s3 they will need to modify these files anyway which they can't because they're read only under secrets, so some other solution will be necessary anyway..s3cfgconfig fors3cmdwhich contains the credentials as well. Theprp-s3-credentialssecret contains two files now.awscliands3cmdwork in a pod as seen below.