Files
scheduler/litecharms-scheduler-uat.yml
T
Khwezi Mngoma 44f71348a5
continuous-integration/drone/pr Build is passing
removed secrets from manifest, injecting them from cluster secret in namespace
2026-06-15 23:15:00 +02:00

79 lines
2.1 KiB
YAML

---
apiVersion: v1
kind: Namespace
metadata:
name: litecharms-scheduler-uat
---
apiVersion: v1
kind: ConfigMap
metadata:
name: scheduler-config
namespace: litecharms-scheduler-uat
data:
ASPNETCORE_ENVIRONMENT: "Development"
Monitoring__Address: "http://aspire-dashboard-service.aspire.svc.cluster.local:18889"
Monitoring__ServiceName: "LiteCharmsScheduler.Uat"
Email__Credentials__Username: "shop@litecharms.co.za"
Email__Host: "mail.litecharms.co.za"
Email__Port: "465"
Email__UseSsl: "true"
EmailProcessorCron: "0 */5 * * * ?"
HasherSettings__MinHashLength: "11"
BookshopS3Settings__ServiceUrl: "http://garage.garage.svc.cluster.local:3900"
BookshopS3Settings__Region: "garage"
BookshopS3Settings__BucketName: "bookshop"
BookshopS3Settings__CdnBaseUrl: "https://bookshop.cdn.khongisa.co.za"
PayfastSettings__CheckoutUrl: "https://sandbox.payfast.co.za/eng/process"
PayfastSettings__ValidHosts__0: "www.payfast.co.za"
PayfastSettings__ValidHosts__1: "sandbox.payfast.co.za"
PayfastSettings__ValidHosts__2: "ips.payfast.co.za"
PayfastSettings__ValidHosts__3: "api.payfast.co.za"
PayfastSettings__ValidHosts__4: "payment.payfast.io"
---
apiVersion: v1
kind: Service
metadata:
name: scheduler-worker-service
namespace: litecharms-scheduler-uat
spec:
clusterIP: None
selector:
app: scheduler
ports:
- port: 80
name: dummy-port
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: litecharms-scheduler-uat
namespace: litecharms-scheduler-uat
spec:
serviceName: "scheduler-worker-service"
replicas: 1
selector:
matchLabels:
app: scheduler
template:
metadata:
labels:
app: scheduler
spec:
containers:
- name: scheduler
image: nexus.khongisa.co.za/litecharms-scheduler:latest
imagePullPolicy: Always
resources:
limits:
memory: "2Gi"
cpu: "2000m"
requests:
memory: "256Mi"
cpu: "100m"
envFrom:
- configMapRef:
name: scheduler-config
- secretRef:
name: scheduler-secrets