-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathadvanced-features-compliance-upgrade-scaling.yaml
More file actions
104 lines (98 loc) · 3.37 KB
/
Copy pathadvanced-features-compliance-upgrade-scaling.yaml
File metadata and controls
104 lines (98 loc) · 3.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Example: Jurisdictional Compliance + Hitless Upgrade + Predictive Scaling
#
# This manifest demonstrates all four new features:
# - Issue #500: OIDC authentication (configured in operator-config.yaml)
# - Issue #503: Hitless upgrade for Stellar Core peer connections
# - Issue #504: Jurisdictional compliance for node placement
# - Issue #505: Predictive auto-scaling for Horizon nodes
#
# ============================================================================
# Validator with Jurisdictional Compliance + Hitless Upgrade (Issues #503, #504)
# ============================================================================
apiVersion: stellar.org/v1alpha1
kind: StellarNode
metadata:
name: eu-validator
namespace: stellar
spec:
nodeType: Validator
network: mainnet
version: "v21.0.0"
storage:
storageClass: "standard"
size: "200Gi"
retentionPolicy: Retain
validatorConfig:
seedSecretRef: "eu-validator-seed"
enableHistoryArchive: true
# Issue #504: Jurisdictional compliance
# Restricts this validator to EU regions only (GDPR / financial regulation compliance)
placement:
jurisdiction:
code: "EU"
regions:
- "eu-west-1"
- "eu-central-1"
- "eu-north-1"
labelKey: "topology.kubernetes.io/region"
tolerations:
- key: "jurisdiction"
operator: "Equal"
value: "EU"
effect: "NoSchedule"
# Issue #503: Hitless upgrade
# Injects the stellar-handoff sidecar for zero-interruption peer connection handoff
hitlessUpgrade:
enabled: true
handoffTimeoutSeconds: 10
fallbackToRollingRestart: true
# sidecarImage: "stellar-k8s/handoff-sidecar:v0.1.0" # optional override
---
# ============================================================================
# Horizon with Predictive Auto-Scaling (Issue #505)
# ============================================================================
apiVersion: stellar.org/v1alpha1
kind: StellarNode
metadata:
name: horizon-predictive
namespace: stellar
spec:
nodeType: Horizon
network: mainnet
version: "v2.28.0"
replicas: 3
autoscaling:
minReplicas: 2
maxReplicas: 20
targetCpuUtilizationPercentage: 70
# Issue #505: Predictive scaling
# Uses Holt-Winters double exponential smoothing to forecast ledger volume
# and pre-emptively adjusts minReplicas before traffic spikes
predictiveScaling:
enabled: true
prometheusUrl: "http://prometheus-operated.monitoring:9090"
ledgerVolumeMetric: "stellar_horizon_ledger_ingestion_rate"
forecastWindowMinutes: 60
scalingFactor: 1.2
alpha: 0.3
beta: 0.1
tpsPerReplica: 1000.0
---
# ============================================================================
# OIDC Configuration (Issue #500)
# Add to operator-config.yaml or the stellar-operator-config ConfigMap:
#
# oidc:
# issuer: "https://accounts.google.com"
# audience: "stellar-operator"
# jwksUri: "https://www.googleapis.com/oauth2/v3/certs"
# rolesClaim: "roles"
#
# JWT tokens must include a "roles" claim with one of:
# - "Reader" – read-only access to GET endpoints
# - "Admin" – full access including mutating endpoints
#
# Example: Compliance report endpoint (requires Reader or Admin role)
# GET /api/v1/compliance/report
# Authorization: Bearer <jwt-token>
# ============================================================================