36 lines
622 B
YAML
36 lines
622 B
YAML
apiVersion: apps/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: server-deployment
|
|
namespace: grpc-mocker
|
|
labels:
|
|
app: server
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: gcd
|
|
replicas: 3
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: server
|
|
spec:
|
|
containers:
|
|
- name: server
|
|
image: harbor.strikerlulu.me/works/grpc-mocker/server
|
|
imagePullPolicy: Never
|
|
ports:
|
|
- name: grpc-server
|
|
containerPort: 3000
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: grpc-server
|
|
spec:
|
|
selector:
|
|
app: grpc-srever
|
|
ports:
|
|
- port: 3000
|
|
targetPort: grpc-server
|