You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Andrew Mac
mciverza
@mciverza on twitter
Loves Open Source, Cloud Native, his wife and kids, and lasagne
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kubernetes DaemonSet that enables a direct shell on each Node using SSH to localhost
Getting a shell on each node
I run several K8S cluster on EKS and by default do not setup inbound SSH to the nodes. Sometimes I need to get into each node to check things or run a one-off tool.
Rather than update my terraform, rebuild the launch templates and redeploy brand new nodes, I decided to use kubernetes to access each node directly.
A friend of mine was spending about an hour a day performing manual data entry for his daily appointments. His administrative assistant would book appointments using commercial (and rather expensive) software. The software did not provide a straightforward method of exporting the appointment information; however, it did allow the admin assistant to print the appointments as a PDF document. My friend would then read paper-printed PDF documents and the fields into an Excel spreadsheet. This method was error-prone and tedious, and took him considerable time (since he wasn't a fast keyboard user to begin with).
My goal was to automate his workflow, and to produce a .csv file that he could easily incorporate into his database.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A postman pre-request script to fetch a valid token from Red Hat SSO (Keycloak) and set it to a template variable to use in request headers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tmate is used as the "free reverse ssh tunnel". It is not super secure because a key is not required to connect, but it sure is conventient.
Tmux is used inside the Tmate session to share multiple terminal windows
Here's the situation.
You've createe a new tmux session where you will do your work named foo.