37 lines
639 B
YAML
37 lines
639 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: nodeapp-deployment
|
||
|
labels:
|
||
|
app: nodeapp
|
||
|
type: front-end
|
||
|
spec:
|
||
|
template:
|
||
|
metadata:
|
||
|
name: nodejsapp-pod
|
||
|
labels:
|
||
|
app: nodejsapp
|
||
|
type: front-end
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: nodejsapp-erp
|
||
|
image: "bharathirajatut/erp:1.0"
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
type: front-end
|
||
|
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: nodejs-service
|
||
|
spec:
|
||
|
selector:
|
||
|
app: nodejsapp
|
||
|
type: LoadBalancer
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
targetPort: 3000
|
||
|
port: 80
|
||
|
nodePort: 30000
|