mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-27 23:46:26 +00:00
Neil Hanlon
656f7b5a4f
* deploy(apollo-rhworker): add preCommand and postCommand values for cronjobs We don't want to assume a user will be running this with Istio as the RESF is, so we don't always need to kill the istio proxy in this manner This change moves the existing trap/curl command to terminate the istio proxy into values.yaml for our deployment allowing it to be overwritten for others needs * feat: automatically terminate cronjob after 5 minutes
98 lines
2.3 KiB
YAML
98 lines
2.3 KiB
YAML
# Default values for apollo-rhworker.
|
|
# This is a YAML-formatted file.
|
|
# Declare variables to be passed into your templates.
|
|
|
|
replicaCount: 1
|
|
|
|
image:
|
|
repository: ghcr.io/resf/apollo-rhworker
|
|
pullPolicy: IfNotPresent
|
|
# Overrides the image tag whose default is the chart appVersion.
|
|
tag: "7c43d9b"
|
|
|
|
imagePullSecrets: []
|
|
nameOverride: ""
|
|
fullnameOverride: ""
|
|
|
|
serviceAccount:
|
|
# Specifies whether a service account should be created
|
|
create: true
|
|
# Annotations to add to the service account
|
|
annotations: {}
|
|
# The name of the service account to use.
|
|
# If not set and create is true, a name is generated using the fullname template
|
|
name: ""
|
|
|
|
podAnnotations: {}
|
|
|
|
podSecurityContext: {}
|
|
# fsGroup: 2000
|
|
|
|
securityContext: {}
|
|
# capabilities:
|
|
# drop:
|
|
# - ALL
|
|
# readOnlyRootFilesystem: true
|
|
# runAsNonRoot: true
|
|
# runAsUser: 1000
|
|
|
|
database:
|
|
host: resf-peridot-dev.ctxqgglmfofx.us-east-2.rds.amazonaws.com
|
|
user: apollo2production
|
|
password:
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: db
|
|
key: password
|
|
|
|
ingress:
|
|
enabled: false
|
|
className: ""
|
|
annotations: {}
|
|
# kubernetes.io/ingress.class: nginx
|
|
# kubernetes.io/tls-acme: "true"
|
|
hosts:
|
|
- host: chart-example.local
|
|
paths:
|
|
- path: /
|
|
pathType: ImplementationSpecific
|
|
tls: []
|
|
# - secretName: chart-example-tls
|
|
# hosts:
|
|
# - chart-example.local
|
|
|
|
resources: {}
|
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
|
# choice for the user. This also increases chances charts run on environments with little
|
|
# resources, such as Minikube. If you do want to specify resources, uncomment the following
|
|
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
|
|
# limits:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
# requests:
|
|
# cpu: 100m
|
|
# memory: 128Mi
|
|
|
|
autoscaling:
|
|
enabled: false
|
|
minReplicas: 1
|
|
maxReplicas: 100
|
|
targetCPUUtilizationPercentage: 80
|
|
# targetMemoryUtilizationPercentage: 80
|
|
|
|
cron:
|
|
enabled: true
|
|
schedule: "*/15 * * * *"
|
|
preCommand:
|
|
- trap 'curl --max-time 2 -s -f -XPOST http://127.0.0.1:15020/quitquitquit' EXIT
|
|
- while ! curl -s -f http://127.0.0.1:15020/healthz/ready; do sleep 1; done
|
|
- echo "Ready!"
|
|
postCommand:
|
|
- echo "Complete!"
|
|
|
|
nodeSelector: {}
|
|
|
|
tolerations: []
|
|
|
|
affinity: {}
|