java-tutorials/spring-cloud/spring-cloud-kubernetes/client-service/client-service-deployment.yaml

33 lines
585 B
YAML
Raw Normal View History

2019-10-30 08:51:17 -04:00
kind: Service
apiVersion: v1
metadata:
name: client-service
spec:
selector:
app: client-service
ports:
- protocol: TCP
port: 8080
nodePort: 30083
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: client-service
spec:
selector:
matchLabels:
app: client-service
replicas: 1
template:
metadata:
labels:
app: client-service
spec:
containers:
- name: client-service
image: client-service:latest
imagePullPolicy: Never
ports:
- containerPort: 8080