Skip to content

Instantly share code, notes, and snippets.

@Sakib37
Created September 7, 2019 09:38
Show Gist options
  • Save Sakib37/ca8e94f3fcb5fe7d1a739a5d706bb6b7 to your computer and use it in GitHub Desktop.
Save Sakib37/ca8e94f3fcb5fe7d1a739a5d706bb6b7 to your computer and use it in GitHub Desktop.
aws-cli:
==========
apiVersion: v1
kind: Pod
metadata:
name: aws-cli
labels:
name: aws-cli
annotations:
iam.amazonaws.com/role: $IAM_ROLE
containers:
- image: fstab/aws-cli
command:
- "/home/aws/aws/env/bin/aws"
args:
- "s3"
- "ls"
- "s3://bucket_name/"
name: aws-cli
Init-container:
===============
- name: cleanup
image: busybox:1.31.0
command: ['sh', '-c', 'rm -rf /usr/share/data/registry']
volumeMounts:
- name: data
mountPath: /usr/share/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment