Skip to content

Commit b0fca7c

Browse files
authored
Add syntax highlighting to codeblocks. (#180)
Signed-off-by: Hannah Troisi <htroisi@pixielabs.ai>
1 parent 296a11d commit b0fca7c

15 files changed

Lines changed: 41 additions & 41 deletions

File tree

content/en/01-about-pixie/06-troubleshooting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This page describes how to troubleshoot Pixie. We frequently answer questions on
3131

3232
An initial overview of Pixie can be retrieved by listing all `Vizier` pods to verify whether all pods have the status `Running`:
3333

34-
```shell
34+
```bash
3535
$ px debug pods
3636
NAME PHASE RESTARTS MESSAGE REASON START TIME
3737
pl/pl-nats-0 RUNNING 0 2022-04-08T13:17:15-07:00

content/en/02-installing-pixie/02-setting-up-k8s/02-eks-setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,19 @@ If you don't have a cluster ready you can set one up based on the [Getting Start
2626

2727
Create a cluster with managed node-pools using [eksctl](https://eksctl.io/usage/creating-and-managing-clusters/):
2828

29-
```
29+
```bash
3030
eksctl create cluster
3131
```
3232

3333
Update kubeconfig to point to the right cluster:
3434

35-
```
35+
```bash
3636
aws eks update-kubeconfig --name <cluster-name>
3737
```
3838

3939
Verify that you are pointing to the right cluster
4040

41-
```
41+
```bash
4242
kubectl get svc
4343
```
4444

content/en/02-installing-pixie/02-setting-up-k8s/03-gke-setup.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ Install [gcloud SDK](https://cloud.google.com/sdk/install)
2121

2222
Install the `kubectl` by running:
2323

24-
```
24+
```bash
2525
gcloud components install kubectl
2626
```
2727

2828
Set a default project:
2929

30-
```
30+
```bash
3131
gcloud config set project project-id
3232
```
3333

3434
Set a default compute zone:
3535

36-
```
36+
```bash
3737
gcloud config set compute/zone compute-zone
3838
```
3939

4040
### Create the cluster
4141

4242
Run the following command to create a 2 node cluster:
4343

44-
```
44+
```bash
4545
gcloud container clusters create cluster-name --num-nodes=2 --machine-type=e2-standard-2
4646
```
4747

@@ -51,13 +51,13 @@ Please review, GCP's [docs](https://cloud.google.com/kubernetes-engine/docs/conc
5151

5252
Once created, get authentication credentials:
5353

54-
```
54+
```bash
5555
gcloud container clusters get-credentials cluster-name
5656
```
5757

5858
And, verify you have the intended nodes active:
5959

60-
```
60+
```bash
6161
kubectl get nodes
6262
```
6363

content/en/02-installing-pixie/02-setting-up-k8s/04-aks-setup.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ If you don't, follow the [AKS quick start](https://docs.microsoft.com/en-us/azur
2424

2525
Run the following command to create a 2 node cluster:
2626

27-
```
27+
```bash
2828
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 2 --enable-addons monitoring --generate-ssh-keys
2929
```
3030

@@ -34,13 +34,13 @@ Or, use the portal based on instructions [here](https://docs.microsoft.com/en-us
3434

3535
Update kubeconfig to point to the right cluster:
3636

37-
```
37+
```bash
3838
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
3939
```
4040

4141
And, verify you have the intended nodes active:
4242

43-
```
43+
```bash
4444
kubectl get nodes
4545
```
4646

content/en/02-installing-pixie/03-install-guides/01-community-cloud-for-pixie.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ If you don't have a Kubernetes cluster available, you can set up Minikube as a l
2525

2626
The easiest way to install Pixie's CLI is using the install script:
2727

28-
``` bash
28+
```bash
2929
# Copy and run command to install the Pixie CLI.
3030
bash -c "$(curl -fsSL https://withpixie.ai/install.sh)"
3131
```
@@ -46,7 +46,7 @@ To deploy Pixie using the CLI:
4646
Please refer to <a href="/reference/admin/environment-configs">Environment-Specific Configurations</a> for other configurations that should be set for your specific Kubernetes environment.
4747
</Alert>
4848

49-
``` bash
49+
```bash
5050
# List Pixie deployment options.
5151
px deploy --help
5252

@@ -117,7 +117,7 @@ kubectl get pods -n px-sock-shop
117117

118118
Use `px live` to run a script to demonstrate observability. The `http_data` script shows a sample of the HTTP/2 traffic flowing through your cluster.
119119

120-
``` bash
120+
```bash
121121
# List built-in scripts
122122
px scripts list
123123

content/en/02-installing-pixie/03-install-guides/02-self-hosted-pixie.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export PL_CLOUD_ADDR=dev.withpixie.dev
137137

138138
The easiest way to install Pixie's CLI is using the install script:
139139

140-
``` bash
140+
```bash
141141
# Copy and run command to install the Pixie CLI.
142142
bash -c "$(curl -fsSL https://withpixie.ai/install.sh)"
143143
```
@@ -158,7 +158,7 @@ To deploy Pixie using the CLI:
158158
Please refer to <a href="/reference/admin/environment-configs">Environment-Specific Configurations</a> for other configurations that should be set for your specific Kubernetes environment.
159159
</Alert>
160160

161-
``` bash
161+
```bash
162162
# Deploy the Pixie Platform in your K8s cluster (No OLM present on cluster).
163163
px deploy --dev_cloud_namespace plc
164164

content/en/02-installing-pixie/04-install-schemes/01-cli.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You can install the CLI in one of four ways:
1919

2020
### Using the install script (easiest)
2121

22-
``` bash
22+
```bash
2323
# Copy and run command to install the Pixie CLI.
2424
bash -c "$(curl -fsSL https://withpixie.ai/install.sh)"
2525
```
@@ -35,7 +35,7 @@ bash -c "$(curl -fsSL https://withpixie.ai/install.sh)"
3535

3636
Download the correct binary for your operating system and make it executable:
3737

38-
``` bash
38+
```bash
3939
# Download the latest Pixie linux binary.
4040
curl -o px https://storage.googleapis.com/pixie-dev-public/cli/latest/cli_linux_amd64
4141

@@ -53,7 +53,7 @@ mv px /usr/local/bin
5353

5454
### Using Docker
5555

56-
``` bash
56+
```bash
5757
alias px="docker run -i --rm -v ${HOME}/.pixie:/root/.pixie pixielabs/px"
5858
```
5959

@@ -66,7 +66,7 @@ Download the assets:
6666

6767
Install the Pixie package:
6868

69-
``` bash
69+
```bash
7070
# Install Pixie .deb package.
7171
dpkg -i pixie-px.x86_64.deb
7272
```
@@ -80,7 +80,7 @@ Download the assets:
8080

8181
Install the Pixie package:
8282

83-
``` bash
83+
```bash
8484
# Install Pixie .rpm package.
8585
rpm -i pixie-px.x86_64.rpm
8686
```
@@ -95,7 +95,7 @@ rpm -i pixie-px.x86_64.rpm
9595
Please refer to <a href="/reference/admin/environment-configs">Environment-Specific Configurations</a> for other configurations that should be set for your specific Kubernetes environment.
9696
</Alert>
9797

98-
``` bash
98+
```bash
9999
# List Pixie deployment options.
100100
px deploy --help
101101

content/en/02-installing-pixie/04-install-schemes/02-yaml.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Create a directory to save Pixie's manifest files and run the following CLI comm
4141
Please refer to <a href="/reference/admin/environment-configs">Environment-Specific Configurations</a> for other configurations that should be set for your specific Kubernetes environment.
4242
</Alert>
4343

44-
``` bash
44+
```bash
4545
# Extract YAML (No OLM present on cluster).
4646
px deploy --extract_yaml <NAME_OF_PIXIE_YAMLS_FOLDER> --deploy_key <PIXIE_DEPLOYMENT_KEY>
4747

@@ -59,7 +59,7 @@ px deploy --extract_yaml <NAME_OF_PIXIE_YAMLS_FOLDER> --deploy_key <PIXIE_DEPLOY
5959

6060
Deploy Pixie in your target cluster by running:
6161

62-
``` bash
62+
```bash
6363
# Deploy
6464
kubectl apply --recursive -f <NAME_OF_PIXIE_YAMLS_FOLDER>
6565
```
@@ -74,7 +74,7 @@ For more deploy options that you can specify to configure Pixie, refer to our [d
7474

7575
To verify that Pixie is running in your environment you can check the [admin page](https://work.withpixie.ai/admin) or run:
7676

77-
``` bash
77+
```bash
7878
# Check pods are up
7979
kubectl get pods -n pl
8080

content/en/02-installing-pixie/04-install-schemes/03-helm.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Deploy Pixie in your target cluster by running:
4343
Please refer to <a href="/reference/admin/environment-configs">Environment-Specific Configurations</a> for other configurations that should be set for your specific Kubernetes environment.
4444
</Alert>
4545

46-
``` bash
46+
```bash
4747
# Add the Pixie operator chart.
4848
helm repo add pixie-operator https://pixie-operator-charts.storage.googleapis.com
4949

@@ -70,7 +70,7 @@ For more deploy options that you can specify to configure Pixie, refer to our [d
7070

7171
To verify that Pixie is running in your environment you can check the [admin page](https://work.withpixie.ai/admin) or run:
7272

73-
``` bash
73+
```bash
7474
# Check pods are up
7575
kubectl get pods -n pl
7676

content/en/04-tutorials/01-pixie-101/06-profiler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Java support is a beta feature available in Pixie vizier version 0.10.22+, and m
2727

2828
To enable Java support when deploying Pixie with the [Pixie CLI](/installing-pixie/install-schemes/cli/), run:
2929

30-
```
30+
```bash
3131
px deploy --pem_flags=PL_PROFILER_JAVA_SYMBOLS=1
3232
```
3333

3434
To enable Java support when deploying Pixie with [Helm](/installing-pixie/install-schemes/helm/), run:
3535

36-
```
36+
```bash
3737
helm install pixie pixie-operator/pixie-operator-chart --set deployKey=<deploy-key-goes-here> --set clusterName=<cluster-name> --namespace pl --create-namespace --set dataCollectorParams.customPEMFlags.PL_PROFILER_JAVA_SYMBOLS=true
3838
```
3939

0 commit comments

Comments
 (0)