Skip to content

Commit

Permalink
feat(k8s): add Pixie
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao committed May 13, 2022
1 parent 9a9a8bf commit 2e76dfa
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ Personal cutting-edge technology lab.

This diagram shows the architecture of this repository.

It is way over-engineering. Please make sure to know the tradeoffs before onboarding any technology to your project!
It is way over-engineering. Please make sure to know the tradeoffs before onboarding any technology to your project.

![Architecture](https://user-images.githubusercontent.com/3375461/167378081-c185f31c-4c48-413f-aabb-b85a765d2eb9.png)
![Architecture](https://user-images.githubusercontent.com/3375461/168262611-81cf5572-cdcb-403a-b5bd-a0b01fe4d7c8.png)

## Setup

Expand Down Expand Up @@ -338,6 +338,10 @@ make clean

![Linkerd screenshot](https://user-images.githubusercontent.com/3375461/127684629-a0d9d76b-cbc6-465f-80ea-10c3e06f7eac.png)

#### Pixie - Kubernetes Application Observing

![Pixie screenshot](https://user-images.githubusercontent.com/3375461/168262670-d9df3e60-aa61-4656-a417-61ddda455ee1.jpg)

#### Hasura - GraphQL Engine

![Hasura GraphQL Engine screenshot](https://user-images.githubusercontent.com/3375461/167373764-3fd97b12-034c-42bd-84d5-c65ecd068ae1.jpg)
Expand Down
1 change: 1 addition & 0 deletions kubernetes/bin/utils/installHasura.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cp -r hasura-graphql-engine/metadata/ kubernetes/data/hasura/hasura-graphql-engi

kubectl apply --filename=kubernetes/manifests/hasura/hm-hasura-namespace.yaml
kubectl apply --filename=kubernetes/manifests/hasura
# kubectl delete --filename=kubernetes/manifests/hasura
echo "=================================================="

echo "# Add seed data in opa_db"
Expand Down
33 changes: 33 additions & 0 deletions kubernetes/bin/utils/installPixie.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash
set -e

# https://docs.px.dev/installing-pixie/install-guides/self-hosted-pixie/

echo "# Deploy Pixie Cloud"
git clone https://github.com/pixie-io/pixie.git
cd pixie

# brew install mkcert
mkcert -install

kubectl create namespace plc
./scripts/create_cloud_secrets.sh
kustomize build k8s/cloud_deps/base/elastic/operator | kubectl apply --filename=-
kustomize build k8s/cloud_deps/public | kubectl apply --filename=-
kustomize build k8s/cloud/public/ | kubectl apply --filename=-

# Set up DNS
kubectl get service cloud-proxy-service -n plc
kubectl get service vzconn-service -n plc
go build src/utils/dev_dns_updater/dev_dns_updater.go
./dev_dns_updater --domain-name="dev.withpixie.dev" --kubeconfig=$HOME/.kube/config --n=plc
echo "=================================================="

echo "# Install the Pixie CLI"
export PL_CLOUD_ADDR=dev.withpixie.dev
bash -c "$(curl -fsSL https://withpixie.ai/install.sh)"
echo "=================================================="

echo "# Deploy Pixie"
px deploy --dev_cloud_namespace plc
echo "=================================================="
12 changes: 12 additions & 0 deletions kubernetes/bin/utils/installPixieCloud.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e

# https://docs.px.dev/installing-pixie/install-guides/community-cloud-for-pixie/

echo "# Install the Pixie CLI"
bash -c "$(curl -fsSL https://withpixie.ai/install.sh)"
echo "=================================================="

echo "# Deploy Pixie"
px deploy
echo "=================================================="

0 comments on commit 2e76dfa

Please sign in to comment.