Skip to content

Instantly share code, notes, and snippets.

@fatihtepe
fatihtepe / kubectl.md
Created February 11, 2023 17:30 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@fatihtepe
fatihtepe / aws-s3-list-objects.py
Created June 7, 2022 19:05 — forked from mindyyy-hsu/aws-s3-list-objects.py
AWS Simple-Storage-Service (S3) objects list and export to csv.
import boto3
import pandas
AWS_ACCESS_KEY_ID = 'YOUR_AWS_ACCESS_KEY_ID'
AWS_SECRET_ACCESS_KEY = 'YOUR_AWS_SECRET_ACCESS_KEY'
# connect to s3
s3 = boto3.client(
's3',
aws_access_key_id=AWS_ACCESS_KEY_ID,