Skip to content

Instantly share code, notes, and snippets.

@abhinavdhasmana
Created April 26, 2023 13:26
Show Gist options
  • Save abhinavdhasmana/5d51b3117d3286fbe0c8b976b3098caa to your computer and use it in GitHub Desktop.
Save abhinavdhasmana/5d51b3117d3286fbe0c8b976b3098caa to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: server
name: server
spec:
replicas: 1
selector:
matchLabels:
app: server
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: server
spec:
containers:
- image: abhinavdhasmana/simple-grpc-server
name: simple-grpc-server
env:
- name: POD_IP
valueFrom:
fieldRef:
fieldPath: metadata.name
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: server
name: my-grpc-service
spec:
ports:
- port: 8090
protocol: TCP
targetPort: 8090
selector:
app: server
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: client
name: client
spec:
replicas: 1
selector:
matchLabels:
app: client
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: client
spec:
containers:
- image: abhinavdhasmana/simple-grpc-client
name: simple-grpc-client
resources: {}
status: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment