kubectl¶
see also kubernetes
get kubernetes event log¶
...sorted by timestamp
tail logs¶
this will read the last 100 log entries and also keep following the log for new entries
download kubectl for arm architecture, like an raspberry pi¶
I don't know why they make it so hard, but here you go:
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/arm/kubectl"
run cronjob manually¶
get list of cron jobs:
run a manual job:
you might want to delete the job afterwards:
run one-off pod¶
example, run the minio/mc
container and override the command to end up in a shell instead of the default mc
entrypoint
run pod with registry secrets¶
update / replace registry-secret-name
and specify your image after --image
kubectl run -i --tty my-container --image=ghcr.io/example/private-image:latest --command /bin/sh --overrides='{ "spec": { "imagePullSecrets": [{"name": "registry-secret-name"}] } }'
port forwarding¶
you may want to omit --address=0.0.0.0
get a random local port: