Skip to content

Instantly share code, notes, and snippets.

@levid0s
Created March 26, 2024 11:04
Show Gist options
  • Save levid0s/5dd154b246246c289a83e0b858c93929 to your computer and use it in GitHub Desktop.
Save levid0s/5dd154b246246c289a83e0b858c93929 to your computer and use it in GitHub Desktop.
K9S Certinfo Plugin
plugins:
certinfo:
shortCut: Shift-I
confirm: false
description: Get TLS Cert Info
scopes:
- secret
command: sh
background: false
args:
- -c
- >-
kubectl
get secret
--context $CONTEXT
-n $NAMESPACE
$NAME -o json
| jq -r '.data."tls.crt"'
| base64 -d
| certinfo
| less -K
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment