This commit is contained in:
@ -1,15 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: output-service-rdb-config
|
||||
name: sample-service-config
|
||||
labels:
|
||||
app: output-service-rdb
|
||||
app: sample-service
|
||||
namespace: birbnetes
|
||||
data:
|
||||
PORT: "8080"
|
||||
DB_URL: "jdbc:postgresql://output-postgres:5432/output-service"
|
||||
DB_USER: output-service
|
||||
DB_PASSWORD: output-service-supersecret
|
||||
DB_URL: "jdbc:postgresql://sample-postgres:5432/sample-service"
|
||||
DB_USER: sample-service
|
||||
DB_PASSWORD: sample-service-supersecret
|
||||
MQ_HOST: birb-rabbitmq
|
||||
MQ_USERNAME: user
|
||||
MQ_PASSWORD: F3ACadDRsT
|
||||
|
@ -1,29 +1,29 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: output-service-rdb
|
||||
name: sample-service
|
||||
namespace: birbnetes
|
||||
labels:
|
||||
app: output-service-rdb
|
||||
app: sample-service
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: output-service-rdb
|
||||
app: sample-service
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: output-service-rdb
|
||||
app: sample-service
|
||||
spec:
|
||||
containers:
|
||||
- image: registry.kmlabz.com/birbnetes/output-service-rdb
|
||||
- image: registry.kmlabz.com/birbnetes/sample-service
|
||||
imagePullPolicy: Always
|
||||
name: output-service-rdb
|
||||
name: sample-service
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: output-service-rdb-config
|
||||
name: sample-service-config
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
imagePullSecrets:
|
||||
|
@ -1,16 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: output-service-rdb
|
||||
name: sample-service
|
||||
namespace: birbnetes
|
||||
labels:
|
||||
app: output-service-rdb
|
||||
app: sample-service
|
||||
spec:
|
||||
ports:
|
||||
- name: output-service-rdb
|
||||
- name: sample-service
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: output-service-rdb
|
||||
app: sample-service
|
||||
type: ClusterIP
|
Reference in New Issue
Block a user