To list available contexts: kubectl config get-contexts To show the current context: kubectl config current-context…
Create a Temporary File in PowerShell
$tempFile = [IO.Path]::GetTempFileName()
An empty file created immediately when you call this method. Remember to clean it up when are you done!
Chinh Do
I occasionally blog about programming (.NET, Node.js, Java, PowerShell, React, Angular, JavaScript, etc), gadgets, etc. Follow me on Twitter for tips on those same topics. You can also find me on GitHub.
See About for more info.
Related Posts
kubectl exec -it <podname> -- sh To get a list of running pods in the…
# Create a soft symbolic link from /mnt/original (file or folder) to ~/link ln -s…
git config --global user.name "<your name>" git config --global user.email "<youremail@somewhere.com>" Related Commands Show current…
TypeScript/JavaScript function getLastMonday(d: Date) { let d1 = new Date(d.getFullYear(), d.getMonth() + 1, 0); let…
I had to do some SMTP relay troubleshooting and it wasn't obvious how to view…
This Post Has 0 Comments