Skip to content

Commit

Permalink
Merge pull request #81 from bpschmitt/demo
Browse files Browse the repository at this point in the history
Add services to demo apps
  • Loading branch information
bpschmitt authored Apr 10, 2024
2 parents f085c2b + 77e1cbb commit a1f6d7f
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
12 changes: 12 additions & 0 deletions demo/apps/dotnet_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,15 @@ spec:
value: 'http://+:4000'
ports:
- containerPort: 4000
---
apiVersion: v1
kind: Service
metadata:
name: dotnet-service
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 4000
selector:
app: aspnetapp
13 changes: 12 additions & 1 deletion demo/apps/java_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,15 @@ spec:
env:
- name: NEW_RELIC_APP_NAME
value: spring-petclinic-demo

---
apiVersion: v1
kind: Service
metadata:
name: spring-petclinic-service
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 8080
selector:
app: spring-petclinic
13 changes: 13 additions & 0 deletions demo/apps/nodejs_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,16 @@ spec:
env:
- name: NODE_PATH
value: /usr/local/lib/node_modules
---
apiVersion: v1
kind: Service
metadata:
name: express-hello-world-service
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 3000
selector:
app: express-hello-world

12 changes: 12 additions & 0 deletions demo/apps/python_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,15 @@ spec:
image: ghcr.io/anuraaga/flask-hello-world:latest
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: flask-hello-world-service
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 5000
selector:
app: flask-hello-world
2 changes: 1 addition & 1 deletion demo/loadgen/locust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ data:
@task
def get_endpoint_two(self):
self.client.get('http://spring-petclinic-service.ao-demo.svc.cluster.local/owners/find', headers=default_headers)
self.client.get('http://dotnet-service.ao-demo.svc.cluster.local/', headers=default_headers)
@task
def get_endpoint_three(self):
Expand Down

0 comments on commit a1f6d7f

Please sign in to comment.