37 lines
646 B
YAML
37 lines
646 B
YAML
apiVersion: apps/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: client-deployment
|
|
namespace: grpc-mocker
|
|
labels:
|
|
app: client
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: client
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: client
|
|
spec:
|
|
containers:
|
|
- name: client
|
|
image: harbor.strikerlulu.me/works/grpc-mocker/client
|
|
imagePullPolicy: Never
|
|
ports:
|
|
- name: client-service
|
|
containerPort: 3000
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: client-service
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: client
|
|
ports:
|
|
- port: 3000
|
|
targetPort: client-service
|