Skip to content

Commit

Permalink
deploy config for oracle jdbc
Browse files Browse the repository at this point in the history
  • Loading branch information
jaise-aot committed Nov 2, 2023
1 parent f337b26 commit 0fcb48d
Showing 1 changed file with 151 additions and 0 deletions.
151 changes: 151 additions & 0 deletions openshift/templates/etl/debezium-jdbc.deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
---
kind: Template
apiVersion: template.openshift.io/v1
metadata:
annotations:
description: Deployment template for Debezium JDBC Connector.
tags: "${API_NAME}"
name: "${API_NAME}-deploy"
objects:
- kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
name: "${API_NAME}"
labels:
app: "${API_NAME}"
app-group: "${APP_GROUP}"
template: "${API_NAME}-deploy"
spec:
strategy:
type: Rolling
rollingParams:
updatePeriodSeconds: 1
intervalSeconds: 1
timeoutSeconds: 600
maxUnavailable: 25%
maxSurge: 25%
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- "${API_NAME}"
from:
kind: ImageStreamTag
namespace: "${IMAGE_NAMESPACE}"
name: "${API_NAME}:${TAG_NAME}"
replicas: 1
test: false
selector:
app: "${API_NAME}"
deploymentconfig: "${API_NAME}"
template:
metadata:
labels:
app: "${API_NAME}"
app-group: "${APP_GROUP}"
deploymentconfig: "${API_NAME}"
template: "${API_NAME}-deploy"
role: api
spec:
containers:
- name: "${API_NAME}"
image: "${API_NAME}"
imagePullPolicy: Always
ports:
- containerPort: 9092
protocol: TCP
env:
- name: BOOTSTRAP_SERVERS
value: "kafka:9092"
- name: GROUP_ID
value: "1"
- name: CONFIG_STORAGE_TOPIC
value: "epd_connect_configs"
- name: OFFSET_STORAGE_TOPIC
value: "epd_connect_offsets"
- name: STATUS_STORAGE_TOPIC
value: "epd_connect_statuses"
- name: KAFKA_DEBUG
value: "true"
- name: DEBUG_SUSPEND_FLAG
value: "n"
resources:
requests:
cpu: "50m"
memory: "250Mi"
limits:
cpu: "150m"
memory: "500Mi"
terminationMessagePath: "/dev/termination-log"
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
- kind: Service
apiVersion: v1
metadata:
name: "${API_NAME}"
creationTimestamp:
labels:
app: "${API_NAME}"
app-group: "${APP_GROUP}"
template: "${API_NAME}-deploy"
spec:
ports:
- name: 8083-tcp
protocol: TCP
port: 8083
targetPort: 8083
selector:
deploymentconfig: "${API_NAME}"
type: ClusterIP
sessionAffinity: None
# status:
# loadBalancer: {}
- kind: Route
apiVersion: v1
metadata:
name: "${API_NAME}"
labels:
app: "${API_NAME}"
app-group: "${APP_GROUP}"
template: "${API_NAME}-deploy"
spec:
to:
kind: Service
name: "${API_NAME}"
weight: 100
port:
targetPort: 8083-tcp
tls:
termination: edge
wildcardPolicy: None
host: "${API_NAME}-${TAG_NAME}.apps.silver.devops.gov.bc.ca"
parameters:
- name: API_NAME
displayName: Name
description: The name assigned to all of the OpenShift resources associated to the
server instance.
required: true
value: debezium-jdbc
- name: APP_GROUP
displayName: App Group
description: The name assigned to all of the deployments in this project.
required: true
value: epd
- name: IMAGE_NAMESPACE
displayName: Image Namespace
required: true
description: The namespace of the OpenShift project containing the imagestream for
the application.
value: c6a6e5-tools
- name: TAG_NAME
displayName: Environment TAG name
description: The TAG name for this environment, e.g., dev, test, prod
required: true
value: latest

0 comments on commit 0fcb48d

Please sign in to comment.