Skip to content

Commit

Permalink
Merge pull request #2519 from sgayangi/1.2.0-alpha-testing
Browse files Browse the repository at this point in the history
Add sample GRPC backends
  • Loading branch information
CrowleyRajapakse authored Oct 1, 2024
2 parents 468373f + 7325369 commit af45db8
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
36 changes: 36 additions & 0 deletions developer/tryout/samples/order-sample-backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: order-backend
labels:
app: order-backend
spec:
replicas: 1
selector:
matchLabels:
app: order-backend
template:
metadata:
labels:
app: order-backend
spec:
containers:
- name: order-backend
image: sega1234/order-backend:1.0.0
ports:
- containerPort: 6566
imagePullPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: order-backend
spec:
selector:
app: order-backend
ports:
- protocol: TCP
port: 6566
targetPort: 6566
type: ClusterIP
34 changes: 34 additions & 0 deletions developer/tryout/samples/student-sample-backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: v1
kind: Service
metadata:
name: student-backend
spec:
selector:
app: student-backend
ports:
- protocol: TCP
port: 6565
targetPort: 9090
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: student-backend
labels:
app: student-backend
spec:
replicas: 1
selector:
matchLabels:
app: student-backend
template:
metadata:
labels:
app: student-backend
spec:
containers:
- name: student-backend
image: sega1234/student-service:1.0.0
imagePullPolicy: Always
ports:
- containerPort: 9090

0 comments on commit af45db8

Please sign in to comment.