# Local development configuration for Kind cluster replicaCount: 1 # CRITICAL: Same Backstage label for local discovery commonLabels: backstage.io/kubernetes-id: "schedulerservice" image: repository: gcr.io/prj-onlinesales-stag-01/schedulerservice pullPolicy: IfNotPresent tag: "latest" # Relaxed security for local development podSecurityContext: fsGroup: 1000 runAsNonRoot: false runAsUser: 0 securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: false runAsNonRoot: false runAsUser: 0 capabilities: drop: - ALL 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" # MySQL enabled for local development mysql: enabled: true image: "mysql" imageTag: "8.0" mysqlRootPassword: "rootpassword" mysqlUser: "scheduler_user" mysqlPassword: "localpassword" mysqlDatabase: "os_scheduling_db" fullnameOverride: "schedulerservice-mysql" persistence: enabled: false resources: {} podLabels: backstage.io/kubernetes-id: "schedulerservice" configurationFiles: mysql.cnf: |- [mysqld] max_connections=200 character-set-server=utf8mb4 collation-server=utf8mb4_unicode_ci