Commit e6e37ab6 authored by Ben Anderson's avatar Ben Anderson

Added deployment file

parent b36699b1
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: inventory-backend-deployment name: afp-products-deployment
spec: spec:
replicas: 2 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: inventory app: afp-products
template: template:
metadata: metadata:
labels: labels:
app: inventory app: afp-products
spec: spec:
containers: containers:
- name: inventory-container - name: afp-products-container
image: nexus.mynisum.com/inventory-backend:latest image: nexus.mynisum.com/afp-products:latest
imagePullPolicy: Always imagePullPolicy: Always
ports: ports:
- containerPort: 8080 - containerPort: 8080
...@@ -23,17 +23,15 @@ spec: ...@@ -23,17 +23,15 @@ spec:
value: "8080" value: "8080"
imagePullSecrets: imagePullSecrets:
- name: registry-creds - name: registry-creds
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: inventory-backend-service name: afp-products-service
spec: spec:
type: LoadBalancer type: LoadBalancer
ports: ports:
- port: 8080 - port: 8080
targetPort: 8080 targetPort: 8080
selector: 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