2019-10-31 21:43:47 -04:00
|
|
|
kind: Service
|
|
|
|
apiVersion: v1
|
|
|
|
metadata:
|
2023-11-09 05:55:32 -05:00
|
|
|
name: minikube-demo-backend
|
2019-10-31 21:43:47 -04:00
|
|
|
spec:
|
|
|
|
selector:
|
2023-11-09 05:55:32 -05:00
|
|
|
app: minikube-demo-backend
|
2019-10-31 21:43:47 -04:00
|
|
|
tier: backend
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
port: 8080
|
|
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
2023-11-09 05:55:32 -05:00
|
|
|
name: dminikube-demo-backend
|
2019-10-31 21:43:47 -04:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2023-11-09 05:55:32 -05:00
|
|
|
app: minikube-demo-backend
|
2019-10-31 21:43:47 -04:00
|
|
|
tier: backend
|
|
|
|
replicas: 3
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
2023-11-09 05:55:32 -05:00
|
|
|
app: minikube-demo-backend
|
2019-10-31 21:43:47 -04:00
|
|
|
tier: backend
|
|
|
|
spec:
|
|
|
|
containers:
|
2023-11-09 05:55:32 -05:00
|
|
|
- name: minikube-demo-backend
|
|
|
|
image: minikube-demo-backend:latest
|
2019-10-31 21:43:47 -04:00
|
|
|
imagePullPolicy: Never
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
|