wsl
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wsl [2025/07/28 19:58] – created - external edit 127.0.0.1 | wsl [2025/07/29 05:53] (current) – sjoerd | ||
---|---|---|---|
Line 3: | Line 3: | ||
**Summary**: | **Summary**: | ||
**Date**: 28 July 2025 \\ | **Date**: 28 July 2025 \\ | ||
- | {{tag> | + | {{tag> |
WSL is the Windows Subsystem for Linux, which allows you to run a Linux distribution alongside your Windows installation. This is particularly useful for DevOps engineers who need to work with tools that are more commonly used in Linux environments. | WSL is the Windows Subsystem for Linux, which allows you to run a Linux distribution alongside your Windows installation. This is particularly useful for DevOps engineers who need to work with tools that are more commonly used in Linux environments. | ||
Line 9: | Line 9: | ||
== Installing WSL == | == Installing WSL == | ||
- | To install WSL, you can simply run the command {{{wsl --install}}} in a PowerShell or Command Prompt window with administrator privileges. This will install the default Linux distribution (usually Ubuntu) and set up WSL 2. This is the preferred version as it provides better performance and compatibility with Linux applications. See the [[https:// | + | To install WSL, you can simply run the command {{{wsl --install}}} in a PowerShell or Command Prompt window with administrator privileges. This will install the default Linux distribution (usually Ubuntu) and set up WSL 2. This is the preferred version as it provides better performance and compatibility with Linux applications. See the [[https:// |
+ | |||
+ | > Note: After installation of WSL a reboot might be required. | ||
I also recommend to install the [[https:// | I also recommend to install the [[https:// | ||
Line 28: | Line 30: | ||
</ | </ | ||
- | < | + | < |
+ | |||
+ | === Azure CLI === | ||
+ | |||
+ | Azure CLI is a cross-platform command-line tool for managing Azure resources with interactive commands or scripts. To install [[https:// | ||
+ | |||
+ | <code bash> | ||
+ | curl -sL https:// | ||
+ | # Verify the installation | ||
+ | az version | ||
+ | </code> | ||
=== Kubectl === | === Kubectl === | ||
- | > Note that kubectl can also be installed using the Azure CLI as shown below. The following instructions are for manual installation. | + | > Note that kubectl can also be installed using the Azure CLI with {{{az aks install-cli}}}. The following instructions are for manual installation. |
Kubectl is the command-line tool for interacting with Kubernetes clusters. To install [[https:// | Kubectl is the command-line tool for interacting with Kubernetes clusters. To install [[https:// | ||
Line 123: | Line 135: | ||
# Verify the installation | # Verify the installation | ||
kustomize version | kustomize version | ||
- | </ | ||
- | |||
- | === Azure CLI === | ||
- | |||
- | The Azure CLI is a command-line tool for managing Azure resources. To install [[https:// | ||
- | |||
- | <code bash> | ||
- | # Download and install the Microsoft signing key | ||
- | # Download and install the Microsoft signing key | ||
- | sudo mkdir -p / | ||
- | curl -sLS https:// | ||
- | gpg --dearmor | | ||
- | sudo tee / | ||
- | sudo chmod go+r / | ||
- | # Add the Azure CLI software repository | ||
- | AZ_REPO=$(lsb_release -cs) | ||
- | echo "deb [arch=`dpkg --print-architecture` signed-by=/ | ||
- | sudo tee / | ||
- | # Update repository information and install the azure-cli package | ||
- | sudo apt-get update | ||
- | sudo apt-get install azure-cli -y | ||
- | # Verify the installation | ||
- | az version | ||
- | </ | ||
- | |||
- | ==== Azure CLI Extensions ==== | ||
- | |||
- | You can install Azure CLI extensions to enhance its functionality. For example, to install the Azure Kubernetes Service (AKS) extension, run: | ||
- | |||
- | <code bash> | ||
- | az extension add --name aks-preview | ||
- | # Use the following command to install kubectl and kubelogin using the Azure CLI | ||
- | az aks install-cli | ||
</ | </ | ||
=== Kubelogin === | === Kubelogin === | ||
- | > Note that kubelogin can also be installed using the Azure CLI as shown above. The following instructions are for manual installation. | + | > Note that kubelogin |
Kubelogin is a tool that allows you to authenticate to Kubernetes clusters using Azure Active Directory. To install [[https:// | Kubelogin is a tool that allows you to authenticate to Kubernetes clusters using Azure Active Directory. To install [[https:// |
wsl.1753732684.txt.gz · Last modified: by 127.0.0.1