2025-02-21 12:42:32 +00:00
|
|
|
global:
|
|
|
|
|
registry: docker.io
|
|
|
|
|
repository: freeleaps
|
|
|
|
|
nodeSelector: {}
|
2025-03-21 17:03:59 +00:00
|
|
|
dashboard:
|
|
|
|
|
enabled: false
|
2025-04-21 14:03:00 +00:00
|
|
|
logIngest:
|
|
|
|
|
enabled: true
|
|
|
|
|
lokiEndpoint: http://loki-gateway.freeleaps-logging-system
|
|
|
|
|
logPathPattern: /app/log/payment/*.log
|
|
|
|
|
logPath: /app/log/payment
|
2025-02-21 12:42:32 +00:00
|
|
|
payment:
|
|
|
|
|
replicas: 1
|
|
|
|
|
image:
|
2025-02-22 12:59:01 +00:00
|
|
|
registry: docker.io
|
|
|
|
|
repository: null
|
2025-02-21 12:42:32 +00:00
|
|
|
name: payment
|
2025-10-23 06:17:40 +00:00
|
|
|
tag: snapshot-cad00ce
|
2025-02-21 12:42:32 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
ports:
|
2025-02-22 12:59:01 +00:00
|
|
|
- name: http
|
|
|
|
|
containerPort: 8006
|
|
|
|
|
protocol: TCP
|
2025-02-21 12:42:32 +00:00
|
|
|
resources:
|
|
|
|
|
requests:
|
2025-03-17 10:38:17 +00:00
|
|
|
cpu: 50m
|
2025-09-24 06:23:58 +00:00
|
|
|
memory: 128Mi
|
2025-03-08 12:31:11 +00:00
|
|
|
limits:
|
2025-03-17 10:38:17 +00:00
|
|
|
cpu: 100m
|
2025-09-24 06:23:58 +00:00
|
|
|
memory: 256Mi
|
2025-03-21 17:03:59 +00:00
|
|
|
probes:
|
|
|
|
|
readiness:
|
|
|
|
|
type: httpGet
|
|
|
|
|
config:
|
|
|
|
|
path: /api/_/readyz
|
|
|
|
|
port: 8006
|
2025-09-26 01:02:17 +00:00
|
|
|
initialDelaySeconds: 90
|
2025-03-21 17:03:59 +00:00
|
|
|
periodSeconds: 30
|
|
|
|
|
timeoutSeconds: 3
|
|
|
|
|
successThreshold: 1
|
2025-09-26 01:02:17 +00:00
|
|
|
failureThreshold: 8
|
2025-03-21 17:03:59 +00:00
|
|
|
liveness:
|
|
|
|
|
type: httpGet
|
|
|
|
|
config:
|
|
|
|
|
path: /api/_/livez
|
|
|
|
|
port: 8006
|
2025-09-26 01:02:17 +00:00
|
|
|
initialDelaySeconds: 90
|
2025-03-21 17:03:59 +00:00
|
|
|
periodSeconds: 15
|
|
|
|
|
timeoutSeconds: 3
|
|
|
|
|
successThreshold: 1
|
2025-09-26 01:02:17 +00:00
|
|
|
failureThreshold: 8
|
2025-03-21 17:03:59 +00:00
|
|
|
terminationGracePeriodSeconds: 30
|
2025-02-21 12:42:32 +00:00
|
|
|
services:
|
2025-02-22 12:59:01 +00:00
|
|
|
- name: payment-service
|
|
|
|
|
type: ClusterIP
|
|
|
|
|
port: 8006
|
|
|
|
|
targetPort: 8006
|
2025-03-21 17:03:59 +00:00
|
|
|
serviceMonitor:
|
|
|
|
|
enabled: false
|
2025-02-22 16:09:55 +00:00
|
|
|
ingresses:
|
2025-02-22 15:11:15 +00:00
|
|
|
- name: payment-ingress
|
2025-04-10 17:22:29 +00:00
|
|
|
host: payment.freeleaps-alpha.com
|
2025-02-22 15:11:15 +00:00
|
|
|
class: nginx
|
|
|
|
|
rules:
|
2025-02-22 17:18:24 +00:00
|
|
|
- path: /
|
|
|
|
|
pathType: Prefix
|
2025-02-22 15:11:15 +00:00
|
|
|
backend:
|
|
|
|
|
service:
|
|
|
|
|
name: payment-service
|
|
|
|
|
port:
|
|
|
|
|
number: 8006
|
|
|
|
|
tls:
|
|
|
|
|
exists: false
|
|
|
|
|
issuerRef:
|
2025-04-10 17:22:29 +00:00
|
|
|
name: freeleaps-alpha-dot-com
|
2025-02-22 15:11:15 +00:00
|
|
|
kind: ClusterIssuer
|
2025-04-10 17:22:29 +00:00
|
|
|
name: payment.freeleaps-alpha.com-cert
|
2025-02-21 12:42:32 +00:00
|
|
|
configs:
|
2025-02-22 16:26:06 +00:00
|
|
|
tz: UTC
|
2025-02-22 12:59:01 +00:00
|
|
|
appName: payment
|
2025-09-25 08:51:10 +00:00
|
|
|
appEnv: alpha
|
2025-02-22 12:59:01 +00:00
|
|
|
serviceApiAccessHost: 0.0.0.0
|
2025-02-22 16:14:48 +00:00
|
|
|
serviceApiAccessPort: 8006
|
2025-02-22 12:59:01 +00:00
|
|
|
mongodbName: freeleaps2
|
2025-02-22 16:14:48 +00:00
|
|
|
mongodbPort: 27017
|
2025-04-10 17:22:29 +00:00
|
|
|
siteUrlRoot: https://freeleaps-alpha.com
|
2025-03-21 17:39:48 +00:00
|
|
|
metricsEnabled: 'false'
|
|
|
|
|
probesEnabled: 'true'
|
2025-08-18 13:41:21 +00:00
|
|
|
secrets:
|
|
|
|
|
secretStoreRef:
|
|
|
|
|
kind: FreeleapsSecretStore
|
|
|
|
|
name: freeleaps-main-secret-store
|
|
|
|
|
target:
|
|
|
|
|
name: freeleaps-payment-secrets
|
|
|
|
|
creationPolicy: Owner
|
|
|
|
|
refreshInterval: 30s
|
|
|
|
|
data:
|
2025-09-18 09:45:46 +00:00
|
|
|
- key: mongodbUri
|
|
|
|
|
remoteRef:
|
|
|
|
|
key: freeleaps-alpha-mongodb-uri
|
|
|
|
|
type: Secret
|
|
|
|
|
- key: stripeApiKey
|
|
|
|
|
remoteRef:
|
|
|
|
|
key: freeleaps-alpha-stripe-api-key
|
|
|
|
|
type: Secret
|
2025-06-10 15:53:31 +00:00
|
|
|
vpa:
|
|
|
|
|
minAllowed:
|
|
|
|
|
enabled: false
|
2025-07-23 13:54:06 +00:00
|
|
|
cpu: 50m
|
|
|
|
|
memory: 64Mi
|
2025-06-10 15:53:31 +00:00
|
|
|
maxAllowed:
|
|
|
|
|
enabled: true
|
2025-07-23 13:54:06 +00:00
|
|
|
cpu: 100m
|
2025-09-24 06:23:58 +00:00
|
|
|
memory: 256Mi
|
2025-06-10 15:53:31 +00:00
|
|
|
controlledResources:
|
2025-07-23 13:54:06 +00:00
|
|
|
- cpu
|
|
|
|
|
- memory
|
2025-10-21 01:31:25 +00:00
|
|
|
prometheusRule:
|
|
|
|
|
name: freepeals-alpha-payment
|
|
|
|
|
enabled: false
|
|
|
|
|
namespace: freeleaps-monitoring-system
|
|
|
|
|
labels:
|
|
|
|
|
release: kube-prometheus-stack
|
|
|
|
|
rules:
|
|
|
|
|
- alert: FreeleapsPaymentServiceDown
|
|
|
|
|
expr: up{job="payment-service"} == 0
|
|
|
|
|
for: 1m
|
|
|
|
|
labels:
|
|
|
|
|
severity: critical
|
|
|
|
|
service: payment-service
|
|
|
|
|
annotations:
|
|
|
|
|
summary: Freeleaps Payment service is down (instance {{ $labels.instance }})
|
|
|
|
|
description: Freeleaps Payment service has been down for more than 1 minutes.
|
|
|
|
|
runbook_url: https://netorgft10898514.sharepoint.com/:w:/s/FreeleapsEngineeringTeam/EUlvzumTsPxCpPAzI3gm9OIB0DCLTjQzzYVL6VsHYZFjxg?e=0dxVr7
|
|
|
|
|
- alert: FreeleapsPaymentServiceHighErrorRate
|
|
|
|
|
expr: rate(http_requests_total{job="payment-service",status=~"5.."}[5m]) > 0.1
|
|
|
|
|
for: 5m
|
|
|
|
|
labels:
|
|
|
|
|
severity: warning
|
|
|
|
|
service: payment-service
|
|
|
|
|
annotations:
|
|
|
|
|
summary: High error rate in freeleaps payment service (instance {{ $labels.instance }})
|
|
|
|
|
description: Freeleaps Payment service error rate is {{ $value }} errors per second.
|
|
|
|
|
runbook_url: https://netorgft10898514.sharepoint.com/:w:/s/FreeleapsEngineeringTeam/EUlvzumTsPxCpPAzI3gm9OIB0DCLTjQzzYVL6VsHYZFjxg?e=0dxVr7
|