Update deployment.yml

parent fdd09a24
apiVersion: apps/v1
kind: Deployment
metadata:
name: afp-products-deployment
name: inventory-backend-deployment
spec:
replicas: 2
selector:
matchLabels:
app: afp-products
app: inventory-backend
template:
metadata:
labels:
app: afp-products
app: inventory-backend
spec:
containers:
- name: afp-products-container
image: nexus.mynisum.com/afp-products:latest
- name: inventory-backend-container
image: nexus.mynisum.com/inventory-backend:2
imagePullPolicy: Always
ports:
- containerPort: 8080
......@@ -27,11 +27,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: afp-products-service
name: inventory-backend-service
spec:
type: LoadBalancer
ports:
- port: 8080
targetPort: 8080
selector:
app: afp-products
\ No newline at end of file
app: inventory-backend
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment