Commit e6e37ab6 authored by Ben Anderson's avatar Ben Anderson

Added deployment file

parent b36699b1
apiVersion: apps/v1
kind: Deployment
metadata:
name: inventory-backend-deployment
name: afp-products-deployment
spec:
replicas: 2
selector:
matchLabels:
app: inventory
app: afp-products
template:
metadata:
labels:
app: inventory
app: afp-products
spec:
containers:
- name: inventory-container
image: nexus.mynisum.com/inventory-backend:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: PORT
value: "8080"
- name: afp-products-container
image: nexus.mynisum.com/afp-products:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: PORT
value: "8080"
imagePullSecrets:
- name: registry-creds
- name: registry-creds
---
apiVersion: v1
kind: Service
metadata:
name: inventory-backend-service
name: afp-products-service
spec:
type: LoadBalancer
ports:
- port: 8080
targetPort: 8080
- port: 8080
targetPort: 8080
selector:
app: inventory
app: afp-products
\ No newline at end of file
db.password=wHXHvtngAwKVdjZl
\ No newline at end of file
db.password=wHXHvtngAwKVdjZl
\ 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