SIENTIAPDE-1017
Update liveness and readiness probes, enhance Redis connection, and refine OPC tag data structure
This commit is contained in:
@@ -66,16 +66,23 @@ resources: {}
|
||||
|
||||
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 4840
|
||||
initialDelaySeconds: 150
|
||||
periodSeconds: 15
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- pgrep -f "ingestor.app"
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 30
|
||||
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 4840
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 10
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- pgrep -f "ingestor.app"
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 15
|
||||
|
||||
|
||||
# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
|
||||
autoscaling:
|
||||
@@ -114,25 +121,35 @@ service:
|
||||
env:
|
||||
# Entrypoint variables
|
||||
- name: GITHUB_REPO_URL
|
||||
value: git@github.com:Aignosi/sientia-dataops-opc-ingestor.git
|
||||
value: "git@github.com:Aignosi/sientia-dataops-opc-ingestor.git"
|
||||
- name: GITHUB_BRANCH
|
||||
value: SIENTIAPDE-988-criar-ingestor-opc
|
||||
value: "SIENTIAPDE-1017-criar-helm-generico-para-os-modulos-do-sientia"
|
||||
- name: PYTHON_APP
|
||||
value: ingestor.app
|
||||
value: "ingestor.app"
|
||||
|
||||
# Application variables
|
||||
- name: KAFKA_SERVERS
|
||||
value: kafka.kafka.svc.cluster.local:9092
|
||||
value: "kafka.kafka.svc.cluster.local:9092"
|
||||
- name: REDIS_HOST
|
||||
value: redis-master.redis.svc.cluster.local
|
||||
value: "redis-master.redis.svc.cluster.local"
|
||||
- name: REDIS_PORT
|
||||
value: "6379"
|
||||
- name: REDIS_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: redis
|
||||
key: redis-username
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: redis
|
||||
key: redis-password
|
||||
- name: LEASE_TTL
|
||||
value: 10
|
||||
value: "10"
|
||||
- name: HEARTBEAT_TTL
|
||||
value: 20
|
||||
value: "20"
|
||||
- name: POLL_INTERVAL
|
||||
value: 5
|
||||
value: "5"
|
||||
|
||||
|
||||
ssh:
|
||||
@@ -142,4 +159,4 @@ ssh:
|
||||
knownHostsPath: /mnt/known_hosts
|
||||
|
||||
# kubectl create secret docker-registry docker-hub-secret --namespace sientia-opc --docker-server=http://aignosi.azurecr.io --docker-username=aignosi --docker-password=5I5zpQ6sRaHqX1hD3dr+2mo647yO3FRc359/wu6gsP+ACRDRz5mp
|
||||
# helm upgrade --install sientia-dataops-opc-simulator ./sientia-module -n sientia-opc --create-namespace
|
||||
# helm upgrade --install sientia-dataops-opc-ingestor ./helm -n sientia-opc --create-namespace
|
||||
Reference in New Issue
Block a user