Skip to content

Commit

Permalink
Merge pull request #19 from georgep1ckers/combine-service-and-deploym…
Browse files Browse the repository at this point in the history
…ent-yamls

combining service and deployment yamls
  • Loading branch information
georgep1ckers authored Nov 1, 2023
2 parents 303e6a8 + 18bf44c commit 25631aa
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 36 deletions.
11 changes: 0 additions & 11 deletions order-processor-service.yaml

This file was deleted.

14 changes: 13 additions & 1 deletion order-processor-deployment.yaml → order-processor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,16 @@ spec:
apiVersion: v1
fieldPath: spec.nodeName
- name: OTEL_HOST
value: "$(KUBE_NODE_NAME):4317"
value: "$(KUBE_NODE_NAME):4317"
---
apiVersion: v1
kind: Service
metadata:
name: order-processor
spec:
selector:
app: order-processor
ports:
- protocol: TCP
port: 8080
targetPort: 8080
11 changes: 0 additions & 11 deletions stock-controller-service.yaml

This file was deleted.

14 changes: 13 additions & 1 deletion stock-controller-deployment.yaml → stock-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,16 @@ spec:
apiVersion: v1
fieldPath: spec.nodeName
- name: OTEL_HOST
value: "$(KUBE_NODE_NAME):4317"
value: "$(KUBE_NODE_NAME):4317"
---
apiVersion: v1
kind: Service
metadata:
name: stock-controller
spec:
selector:
app: stock-controller
ports:
- protocol: TCP
port: 8081
targetPort: 8081
18 changes: 6 additions & 12 deletions tracey-run.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#!/bin/bash

# Create tracey stock-controller deployment
kubectl apply -f stock-controller-deployment.yaml
# Create tracey stock-controller deployment & service combined yaml
kubectl apply -f stock-controller.yaml

# Create tracey stock-controller service
kubectl apply -f stock-controller-service.yaml
# Create tracey processor deployment & service combined yaml
kubectl apply -f order-processor.yaml

# Create tracey processor deployment
kubectl apply -f order-processor-deployment.yaml

# Create tracey processor service
kubectl apply -f order-processor-service.yaml

# Create tracey interface deployment
kubectl apply -f warehouse-interface-deployment.yaml
# Create tracey interface deployment yaml
kubectl apply -f warehouse-interface.yaml
File renamed without changes.

0 comments on commit 25631aa

Please sign in to comment.