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.

62 lines
1.7 KiB

apiVersion: apps/v1
kind: Deployment
metadata:
name: csi-streaming-etl
namespace: moh-prod
spec:
#replicas: 3
selector:
matchLabels:
app: csi-streaming-etl
tier: backend
track: stable
template:
metadata:
labels:
app: csi-streaming-etl
tier: backend
track: stable
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- csi-streaming-etl
topologyKey: "kubernetes.io/hostname"
containers:
- env:
- name: kafka_bootstrap_servers
valueFrom:
configMapKeyRef:
key: CSI_LOGS_KAFKA_BOOTSTRAPADDRESS
name: service-configs
- name: elk_log_topic
valueFrom:
configMapKeyRef:
key: CSI_LOGS_KAFKA_TOPIC
name: service-configs
envFrom:
- configMapRef:
name: service-configs-stream-etl
- secretRef:
name: service-stream-etl-secret
image: 'harbor.moh.gov.sa/vidamoh/csi-streaming-etl:4.1.1.20'
imagePullPolicy: IfNotPresent
name: csi-streaming-etl
ports:
- containerPort: 80
name: http
protocol: TCP
resources:
limits:
cpu: 500m
memory: 4Gi
requests:
cpu: 250m
memory: 500Mi
imagePullSecrets:
- name: regcred