29th August Newsletter
Kubernetes Tip of the Week
krew
Have you used apt for ubuntu, yum for red hat Linux, or homebrew for mac to install software, then Krew is your go-to destination for finding and installing the packages, and tools for Kubernetes. Till today, over 200 plugins are available on krew.
Installation
Installation of krew is not a straightforward process. Right now for mac Homebrew package is broken and not apt or yum packages for Linux-based systems. But the official krew documentation gave some commands to set up krew properly
Use the below steps to install krew on mac/Linux
Install git
run below command
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( set -x; cd "$(mktemp -d)" && OS="$(uname | tr '[:upper:]' '[:lower:]')" && ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" && KREW="krew-${OS}_${ARCH}" && curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" && tar zxvf "${KREW}.tar.gz" && ./"${KREW}" install krew ) Add the $HOME/.krew/bin directory to your PATH environment variable. To do this, update your .bashrc and append the following line:
$ export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
Restart your shell to run krew
$ k krew
Usage
To download the plugin list:
$ kubectl krew update
Discover plugins available on Krew:
$ kubectl krew search
Choose a plugin from the list and install it:
$ kubectl krew install access-matrix
To use the installed plug-ins
$ kubectl access-matrix
Uninstall a plugin
$ kubectl krew uninstall access-matrix
Note:-
krew is only compatible withkubectl
v1.12 or later.
Java Tip of the Week
Spring Cloud is one of the handy liberraris for developers to work in Cloud Native environment. Spring clouds give capabilities for good out of box experience for typical use cases and extensibility mechanism to cover others. Spring cloud involves following projects.
Spring Cloud Config :- Give capability for externalise the configuration.
Spring cloid Netfilx:- Integration with various Netflix OSS components
Spring Cloud Secirity:- Provide support for different authentication and authorization technique.
Spring Cloud Slooth:- Distributed tracing for Spring Cloud applications, compatible with Zipkin, HTrace and log-based (e.g. ELK) tracing.
Many more projects are listed here.
Below video is basic introduction for Spring Cloud. From next week we are going deep dive in each Spring Cloud project and check how to implement it.
Short course the Week
Wants to learn Spring boot from scratch? Go through below hands on course available on Linkedin Learning.
https://www.linkedin.com/learning/creating-your-first-spring-boot-microservice