forked from pixie-io/pixie
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Adds a finagle demo to the pixie cli. I thought this would be a good addition especially with the eBPF talk later this month. As part of Twitter's hackathon week, we created sedarG/finagle-helloworld to demonstrate Pixie's mux protocol tracing. I've modified that repo to match the same setup as the pixie-labs/microservice-kafka repo (using kompose, kustomize, etc). Test Plan: docker-compose example works locally Verify that the client and server work on minikube Reviewers: vihang Reviewed By: vihang Signed-off-by: Dom Del Nano <ddelnano@twitter.com> Differential Revision: https://phab.corp.pixielabs.ai/D12353 GitOrigin-RevId: ea4582bf4bf7b63f054967f9f3afbd041b35abf7
- Loading branch information
1 parent
39aa963
commit a11e107
Showing
5 changed files
with
154 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
This code is originally from: https://github.com/SedarG/finagle-helloworld. | ||
Copyright is held by original copyright owners. | ||
|
||
Original License Noted Below. | ||
---------------------------------------------------------------------------------------- | ||
|
||
MIT License | ||
|
||
Copyright (c) 2022 Sedar Gokbulut | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: px-finagle | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f ../docker/docker-compose.yml | ||
kompose.version: 1.26.1 (a9d05d509) | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: finagle-server | ||
name: finagle-server | ||
namespace: px-finagle | ||
spec: | ||
ports: | ||
- name: "9992" | ||
port: 9992 | ||
targetPort: 9992 | ||
selector: | ||
io.kompose.service: finagle-server | ||
status: | ||
loadBalancer: {} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f ../docker/docker-compose.yml | ||
kompose.version: 1.26.1 (a9d05d509) | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: finagle-client | ||
name: finagle-client | ||
namespace: px-finagle | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: finagle-client | ||
strategy: {} | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f ../docker/docker-compose.yml | ||
kompose.version: 1.26.1 (a9d05d509) | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: finagle-client | ||
spec: | ||
containers: | ||
- args: | ||
- client/run | ||
image: gcr.io/pixie-prod/demos/finagle/hello:1.0 | ||
name: finagle-client | ||
resources: {} | ||
restartPolicy: Always | ||
status: {} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f ../docker/docker-compose.yml | ||
kompose.version: 1.26.1 (a9d05d509) | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: finagle-server | ||
name: finagle-server | ||
namespace: px-finagle | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
io.kompose.service: finagle-server | ||
strategy: {} | ||
template: | ||
metadata: | ||
annotations: | ||
kompose.cmd: kompose convert -f ../docker/docker-compose.yml | ||
kompose.version: 1.26.1 (a9d05d509) | ||
creationTimestamp: null | ||
labels: | ||
io.kompose.service: finagle-server | ||
spec: | ||
containers: | ||
- image: gcr.io/pixie-prod/demos/finagle/hello:1.0 | ||
name: finagle-server | ||
ports: | ||
- containerPort: 9992 | ||
resources: {} | ||
restartPolicy: Always | ||
status: {} |
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