Skip to content

Commit 2278a7f

Browse files
authored
Merge pull request #151771 from phillipgibson/phillipgibson-osm-preview-docs
updated osm preview docs
2 parents df558c3 + c7cd496 commit 2278a7f

21 files changed

+3166
-419
lines changed

articles/aks/TOC.yml

Lines changed: 395 additions & 411 deletions
Large diffs are not rendered by default.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
author: phillipgibson
3+
4+
ms.topic: include
5+
ms.date: 03/15/2021
6+
ms.author: phillipgibson
7+
---
8+
9+
## Download and install the OSM client binary
10+
11+
In a bash-based shell on Linux or [Windows Subsystem for Linux][install-wsl], use `curl` to download the OSM release and then extract with `tar` as follows:
12+
13+
```bash
14+
# Specify the OSM version that will be leveraged throughout these instructions
15+
OSM_VERSION=v0.8.2
16+
17+
curl -sL "https://github.com/openservicemesh/osm/releases/download/$OSM_VERSION/osm-$OSM_VERSION-linux-amd64.tar.gz" | tar -vxzf -
18+
```
19+
20+
The `osm` client binary runs on your client machine and allows you to manage OSM in your AKS cluster. Use the following commands to install the OSM `osm` client binary in a bash-based shell on Linux or [Windows Subsystem for Linux][install-wsl]. These commands copy the `osm` client binary to the standard user program location in your `PATH`.
21+
22+
```bash
23+
sudo mv ./linux-amd64/osm /usr/local/bin/osm
24+
sudo chmod +x /usr/local/bin/osm
25+
```
26+
27+
You can verify the `osm` client library has been correctly added to your path and its version number with the following command.
28+
29+
```
30+
osm version
31+
```
32+
33+
<!-- LINKS - external -->
34+
35+
[install-wsl]: /windows/wsl/install-win10
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
author: phillipgibson
3+
4+
ms.topic: include
5+
ms.date: 03/15/2021
6+
ms.author: phillipgibson
7+
---
8+
9+
## Download and install the OSM client binary
10+
11+
In a bash-based shell, use `curl` to download the OSM release and then extract with `tar` as follows:
12+
13+
```bash
14+
# Specify the OSM version that will be leveraged throughout these instructions
15+
OSM_VERSION=v0.8.2
16+
17+
curl -sL "https://github.com/openservicemesh/osm/releases/download/$OSM_VERSION/osm-$OSM_VERSION-darwin-amd64.tar.gz" | tar -vxzf -
18+
```
19+
20+
The `osm` client binary runs on your client machine and allows you to manage OSM in your AKS cluster. Use the following commands to install the OSM `osm` client binary in a bash-based shell. These commands copy the `osm` client binary to the standard user program location in your `PATH`.
21+
22+
```bash
23+
sudo mv ./darwin-amd64/osm /usr/local/bin/osm
24+
sudo chmod +x /usr/local/bin/osm
25+
```
26+
27+
You can verify the `osm` client library has been correctly added to your path and its version number with the following command.
28+
29+
```
30+
osm version
31+
```
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
author: phillipgibson
3+
4+
ms.topic: include
5+
ms.date: 03/15/2021
6+
ms.author: pgibson
7+
---
8+
9+
## Download and install the OSM client binary
10+
11+
In a PowerShell-based shell on Windows, use `Invoke-WebRequest` to download the Istio release and then extract with `Expand-Archive` as follows:
12+
13+
```powershell
14+
# Specify the OSM version that will be leveraged throughout these instructions
15+
$OSM_VERSION="v0.8.2"
16+
17+
[Net.ServicePointManager]::SecurityProtocol = "tls12"
18+
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -URI "https://github.com/openservicemesh/osm/releases/download/$OSM_VERSION/osm-$OSM_VERSION-windows-amd64.zip" -OutFile "osm-$OSM_VERSION.zip"
19+
Expand-Archive -Path "osm-$OSM_VERSION.zip" -DestinationPath .
20+
```
21+
22+
The `osm` client binary runs on your client machine and allows you to manage the OSM controller in your AKS cluster. Use the following commands to install the OSM `osm` client binary in a PowerShell-based shell on Windows. These commands copy the `osm` client binary to an OSM folder and then make it available both immediately (in current shell) and permanently (across shell restarts) via your `PATH`. You don't need elevated (Admin) privileges to run these commands and you don't need to restart your shell.
23+
24+
```powershell
25+
# Copy osm.exe to C:\OSM
26+
New-Item -ItemType Directory -Force -Path "C:\OSM"
27+
Move-Item -Path .\windows-amd64\osm.exe -Destination "C:\OSM\"
28+
29+
# Add C:\OSM to PATH.
30+
# Make the new PATH permanently available for the current User
31+
$USER_PATH = [environment]::GetEnvironmentVariable("PATH", "User") + ";C:\OSM\"
32+
[environment]::SetEnvironmentVariable("PATH", $USER_PATH, "User")
33+
# Make the new PATH immediately available in the current shell
34+
$env:PATH += ";C:\OSM\"
35+
```
103 KB
Loading
42.3 KB
Loading
40.4 KB
Loading
46.7 KB
Loading
43.4 KB
Loading
34.8 KB
Loading

0 commit comments

Comments
 (0)