node-test/deploy.yaml

33 lines
568 B
YAML

apiVersion: v1
kind: Service
metadata:
name: node-test
spec:
selector:
app: node-test
ports:
- port: 80
targetPort: 8900
nodePort: 30900
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: node-test
spec:
replicas: 5
selector:
matchLabels:
app: node-test
template:
metadata:
labels:
app: node-test
spec:
containers:
- name: node-test
image: git.fjla.uk/fred.boniface/node-test:latest
ports:
- containerPort: 8900
imagePullPolicy: Always