or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing
xxxxxxxxxx
Introduction to krew
About me
https://rewanthtammana.com/
Rewanth Tammana is a security ninja, open-source contributor, independent consultant & SME at Uptycs. Previously, Senior Security Architect at Emirates NBD. Passionate about DevSecOps, Application, and Container Security. Added 17,000+ lines of code to Nmap. Holds industry certifications like CKS, CKA, etc.
About me
https://twitter.com/rewanthtammana
Speaker & trainer at international security conferences worldwide including Black Hat, Defcon, Hack In The Box (Dubai and Amsterdam), CRESTCon UK, PHDays, Nullcon, Bsides, CISO Platform, null chapters and multiple others.
About me
https://linkedin.com/in/rewanthtammana
One of the MVP researchers on Bugcrowd (2018) and identified vulnerabilities in several organizations. Published an IEEE research paper on an offensive attack in Machine Learning and Security. Also, part of the renowned Google Summer of Code program.
Basics
Reference
Basics
Reference
Introduction to krew
Krew is the plugin manager for kubectl CLI.
Krew helps you:
Kubernetes is complex
Discover krew plugins
Using krew plugins
Sample plugin outline
https://github.com/kubernetes/sample-cli-plugin
Switching namespace
Lengthy 🫤🫤
Simple plugin
Let's create a plugin to switch namespace with ease
End goal ⏬
Simple plugin
Why?
A simple bash script can achieve the above result.
Why write code and make it complex?
Why?
For advanced use cases. Visualization, sniffing network traffic, exploring other Kubernetes components, complex operations, etc.
My plugins
Kubectl fields
https://github.com/rewanthtammana/kubectl-fields
Kubectl fields
https://github.com/rewanthtammana/kubectl-fields
Kubectl whisper secrets
https://github.com/rewanthtammana/kubectl-whisper-secret
More plugins
https://krew.sigs.k8s.io/plugins/
My personal favorite
Lists the users who can perform certain operation on specific resource
Conclusion
Simple interpretation
References
https://krew.sigs.k8s.io/