-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes include: - use battle-tested proxy for collectin application metrics (envoy proxy) - support grpc - add grpc example workloads - update documentation to reflect above
- Loading branch information
1 parent
dbf03d5
commit e942b6f
Showing
14 changed files
with
254 additions
and
112 deletions.
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,35 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: fortune-teller-app | ||
labels: | ||
k8s-app: fortune-teller-app | ||
slo: slo-webapps | ||
annotations: | ||
valence.io/optimizer.configure: "true" | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
k8s-app: fortune-teller-app | ||
slo: slo-webapps | ||
spec: | ||
containers: | ||
- name: envoy | ||
image: valencenet/envoyproxy:0.3.0 | ||
imagePullPolicy: IfNotPresent | ||
env: | ||
- name: SERVICE_PORT_VALUE | ||
value: "50051" | ||
ports: | ||
- containerPort: 8081 | ||
name: envoy-sidecar | ||
- containerPort: 8181 | ||
name: envoy-metrics | ||
- name: fortune-teller-app | ||
image: quay.io/kubernetes-ingress-controller/grpc-fortune-teller:0.1 | ||
ports: | ||
- containerPort: 50051 | ||
name: grpc |
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,3 @@ | ||
# basic bash script for load testing the grpc service. | ||
kubectl port-forward svc/fortune-teller-app 8080:80 & | ||
for i in {1..1200}; do grpcurl -v -plaintext localhost:8080 build.stack.fortune.FortuneTeller/Predict; done |
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,17 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: fortune-teller-app | ||
namespace: default | ||
labels: | ||
valence.net/prometheus: "true" | ||
spec: | ||
selector: | ||
k8s-app: fortune-teller-app | ||
ports: | ||
- name: http2 | ||
port: 80 | ||
targetPort: 8081 | ||
- name: prometheus | ||
port: 8181 | ||
targetPort: 8181 |
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,13 @@ | ||
apiVersion: optimizer.valence.io/v1alpha1 | ||
kind: ServiceLevelObjective | ||
metadata: | ||
name: slo-grpc | ||
spec: | ||
selector: | ||
slo: slo-grpc | ||
objectives: | ||
- type: HTTP | ||
http: | ||
latency: | ||
percentile: 95 | ||
responseTime: 100ms |
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
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
Oops, something went wrong.