Finalised demo.
This commit is contained in:
@ -0,0 +1,40 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: payment-processor
|
||||
name: payment-processor
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: payment-processor
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: payment-processor
|
||||
spec:
|
||||
containers:
|
||||
- name: payment-processor
|
||||
image: quay.io/skupper/patient-portal-payment-processor
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: payment-processor
|
||||
name: payment-processor
|
||||
namespace: demo-onprem
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app: payment-processor
|
||||
sessionAffinity: None
|
||||
type: ClusterIP
|
||||
@ -0,0 +1,40 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: database
|
||||
name: database
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: database
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: database
|
||||
spec:
|
||||
containers:
|
||||
- name: database
|
||||
image: quay.io/skupper/patient-portal-database
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: database
|
||||
name: database
|
||||
namespace: demo-onprem
|
||||
spec:
|
||||
ports:
|
||||
- port: 5432
|
||||
protocol: TCP
|
||||
targetPort: 5432
|
||||
selector:
|
||||
app: database
|
||||
sessionAffinity: None
|
||||
type: ClusterIP
|
||||
@ -0,0 +1,46 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: frontend
|
||||
name: frontend
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: frontend
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: frontend
|
||||
spec:
|
||||
containers:
|
||||
- name: frontend
|
||||
image: quay.io/skupper/patient-portal-frontend
|
||||
env:
|
||||
- name: DATABASE_SERVICE_HOST
|
||||
value: database
|
||||
- name: DATABASE_SERVICE_PORT
|
||||
value: "5432"
|
||||
- name: PAYMENT_PROCESSOR_SERVICE_HOST
|
||||
value: payment-processor
|
||||
- name: PAYMENT_PROCESSOR_SERVICE_PORT
|
||||
value: "8080"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: frontend
|
||||
name: frontend
|
||||
spec:
|
||||
ports:
|
||||
- port: 8080
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
selector:
|
||||
app: frontend
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user