95 lines
2.2 KiB
YAML
95 lines
2.2 KiB
YAML
# Development/Testing values for Hades
|
|
# Override default values for ephemeral test environments
|
|
|
|
replicaCount: 1
|
|
|
|
# Common labels for Backstage Kubernetes plugin discovery
|
|
commonLabels:
|
|
backstage.io/kubernetes-id: "hades-service"
|
|
|
|
image:
|
|
repository: localhost:5001/europe-west1-docker.pkg.dev/os-docker-images/onlinesales/prod/services/java/hadesv2
|
|
pullPolicy: IfNotPresent
|
|
tag: "1764243003606"
|
|
|
|
# Reduced resources for test environments
|
|
resources:
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
|
|
# Faster health checks for 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: 30
|
|
periodSeconds: 20
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /schedulerService/jobTrigger?jsonQuery=%7B%22application%22%3A%22nagios%22%2C%22jobName%22%3A%22monitoring_scheduler_svc%22%7D
|
|
port: http
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
|
|
# Development environment variables
|
|
env:
|
|
- name: JAVA_OPTS
|
|
value: "-Djava.security.egd=file:/dev/./urandom -Xms256m -Xmx1024m -XX:+UseG1GC"
|
|
- name: CATALINA_OPTS
|
|
value: "-Dconfig.path=/app/config -Denv=development"
|
|
- name: TZ
|
|
value: "UTC"
|
|
- name: LOG_LEVEL
|
|
value: "DEBUG"
|
|
|
|
# No autoscaling in dev
|
|
autoscaling:
|
|
enabled: false
|
|
|
|
# Disable ingress in test environments
|
|
ingress:
|
|
enabled: false
|
|
|
|
# Simple service configuration
|
|
service:
|
|
type: ClusterIP
|
|
port: 8080
|
|
targetPort: 8080
|
|
|
|
# MySQL configuration for dev environments
|
|
mysql:
|
|
enabled: true
|
|
image:
|
|
registry: docker.io/bitnamilegacy
|
|
auth:
|
|
rootPassword: "dev-root-password"
|
|
database: "hadesdb"
|
|
username: "hades_user"
|
|
password: "dev-hades-password"
|
|
primary:
|
|
persistence:
|
|
enabled: false # Use emptyDir for faster cleanup in test environments
|
|
resources:
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
requests:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
metrics:
|
|
enabled: false
|
|
|
|
# Database initialization - disabled by default in dev
|
|
# Enable to run SQL migrations from sql/ directory
|
|
dbInit:
|
|
enabled: false
|