114 lines
3.0 KiB
YAML
114 lines
3.0 KiB
YAML
# Local development configuration for Kind cluster
|
|
replicaCount: 1
|
|
|
|
# CRITICAL: Same Backstage label for local discovery
|
|
commonLabels:
|
|
backstage.io/kubernetes-id: "schedulerservice"
|
|
|
|
image:
|
|
repository: europe-west1-docker.pkg.dev/prj-onlinesales-stag-01/os-docker-images/onlinesales/prod/services/java/schedulerservice
|
|
pullPolicy: IfNotPresent
|
|
tag: "1767770163300"
|
|
|
|
# Relaxed security for local development - Tomcat needs permissive settings
|
|
podSecurityContext: {}
|
|
|
|
securityContext: {}
|
|
|
|
service:
|
|
type: ClusterIP
|
|
port: 8080
|
|
targetPort: 8080
|
|
|
|
# Enable ingress for local access
|
|
ingress:
|
|
enabled: true
|
|
className: "nginx"
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
|
hosts:
|
|
- host: schedulerservice.cnoe.localtest.me
|
|
paths:
|
|
- path: /schedulerService
|
|
pathType: Prefix
|
|
|
|
# No resource limits for local development
|
|
resources: {}
|
|
|
|
# Relaxed probes for local development
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /schedulerService/jobTrigger?jsonQuery=%7B%22application%22%3A%22nagios%22%2C%22jobName%22%3A%22monitoring_scheduler_svc%22%7D
|
|
port: http
|
|
initialDelaySeconds: 60
|
|
periodSeconds: 10
|
|
timeoutSeconds: 30
|
|
failureThreshold: 10
|
|
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /schedulerService/jobTrigger?jsonQuery=%7B%22application%22%3A%22nagios%22%2C%22jobName%22%3A%22monitoring_scheduler_svc%22%7D
|
|
port: http
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
timeoutSeconds: 30
|
|
failureThreshold: 10
|
|
|
|
startupProbe:
|
|
httpGet:
|
|
path: /schedulerService/jobTrigger?jsonQuery=%7B%22application%22%3A%22nagios%22%2C%22jobName%22%3A%22monitoring_scheduler_svc%22%7D
|
|
port: http
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 5
|
|
timeoutSeconds: 30
|
|
failureThreshold: 60
|
|
|
|
# Disable autoscaling and PDB for local
|
|
autoscaling:
|
|
enabled: false
|
|
|
|
pdb:
|
|
enabled: false
|
|
|
|
nodeSelector: {}
|
|
tolerations: []
|
|
affinity: {}
|
|
|
|
# External service dependencies for local
|
|
externalServices: {}
|
|
|
|
config:
|
|
enabled: true
|
|
mountPath: /etc/onlinesales/config/schedulerService
|
|
files:
|
|
schedulerService.cfg: |
|
|
LOG_CONFIG_FILE=/etc/onlinesales/config/schedulerService/log.cfg
|
|
DB_CONFIG_FILE=/etc/onlinesales/config/schedulerService/hibernate.cfg.xml
|
|
authConfig.cfg: |
|
|
{
|
|
"authEnable": false,
|
|
"authServiceUrl": "http://hades-service/hades/authorize"
|
|
}
|
|
log.cfg: |
|
|
log4j.rootLogger=DEBUG, stdout
|
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
|
|
|
|
env:
|
|
- name: APP_ENV
|
|
value: "local"
|
|
- name: LOG_LEVEL
|
|
value: "DEBUG"
|
|
|
|
# External Database configuration for local development
|
|
# Host must be set at deploy time - Backstage prefixes release names
|
|
# Example: if MySQL release is "shared-mysql" in namespace "ns-123",
|
|
# the service will be "ns-123-shared-mysql"
|
|
externalDatabase:
|
|
host: "" # Set at deploy time via Backstage UI
|
|
port: "3306"
|
|
database: "os_scheduling_db"
|
|
username: "scheduler_user"
|
|
password: "localpassword"
|