You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.6 KiB
63 lines
1.6 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: csi-rf-jdbc-sink
|
|
namespace: moh-prod
|
|
spec:
|
|
#replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app: csi-rf-jdbc-sink
|
|
tier: backend
|
|
track: stable
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: csi-rf-jdbc-sink
|
|
module: rf
|
|
tier: backend
|
|
track: stable
|
|
spec:
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchExpressions:
|
|
- key: app
|
|
operator: In
|
|
values:
|
|
- csi-rf-jdbc-sink
|
|
topologyKey: "kubernetes.io/hostname"
|
|
containers:
|
|
- env:
|
|
- name: METADATA_TOPIC
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: METADATA_TOPIC
|
|
name: service-configs-jdbc-sink
|
|
- name: DATA_TOPIC
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
key: DATA_TOPIC
|
|
name: service-configs-jdbc-sink
|
|
envFrom:
|
|
- configMapRef:
|
|
name: service-configs-jdbc-sink
|
|
- secretRef:
|
|
name: service-jdbc-sink-secret
|
|
image: harbor.moh.gov.sa/vidamoh/csi-rf-jdbc-sink:4.1.1.5
|
|
imagePullPolicy: IfNotPresent
|
|
name: csi-rf-jdbc-sink
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
protocol: TCP
|
|
resources:
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 2Gi
|
|
requests:
|
|
cpu: 150m
|
|
memory: 1Gi
|
|
imagePullSecrets:
|
|
- name: regcred |