|
| 1 | +# Read-only development server |
| 2 | +# |
| 3 | +# Topology: Deployment (single) · isReadOnly · sidecar PostgreSQL · ephemeral storage · Varnish cache |
| 4 | +# |
| 5 | +# Suitable for a development or evaluation instance on any Kubernetes cluster |
| 6 | +# (AKS, EKS, GKE, on-prem). Not suitable for production — storage is ephemeral |
| 7 | +# so the Lucene index is rebuilt from syndication feeds on every pod restart. |
| 8 | +# |
| 9 | +# Prerequisites on the cluster: |
| 10 | +# - Envoy Gateway installed and a GatewayClass named "envoy-gateway-class" |
| 11 | +# https://gateway.envoyproxy.io/docs/install/install-helm/ |
| 12 | +# - (Optional) cert-manager for automatic TLS certificates |
| 13 | +# https://cert-manager.io/docs/installation/ |
| 14 | +# |
| 15 | +# Customise before applying: |
| 16 | +# 1. Replace <YOUR-HOSTNAME> with your actual DNS name (e.g. ontoserver-dev.example.com) |
| 17 | +# 2. Set quay.io credentials — either inline (not recommended for production) |
| 18 | +# or via a pre-created pull secret and ontoserver.deployment.imagePullSecrets |
| 19 | +# 3. Uncomment the syndication subscription block and point it at your feed |
| 20 | +# 4. Uncomment the TLS / cert-manager block if you want HTTPS |
| 21 | +# |
| 22 | +# Apply to your ArgoCD instance: |
| 23 | +# kubectl apply -f dev-readonly.yaml -n argocd |
| 24 | + |
| 25 | +apiVersion: argoproj.io/v1alpha1 |
| 26 | +kind: Application |
| 27 | +metadata: |
| 28 | + name: ontoserver-dev |
| 29 | + namespace: argocd |
| 30 | + finalizers: |
| 31 | + - resources-finalizer.argocd.argoproj.io |
| 32 | +spec: |
| 33 | + project: default |
| 34 | + destination: |
| 35 | + server: https://kubernetes.default.svc |
| 36 | + namespace: ontoserver-dev |
| 37 | + sources: |
| 38 | + # ── ontoserver ───────────────────────────────────────────────────────────── |
| 39 | + - repoURL: https://github.com/aehrc/ontoserver-deploy |
| 40 | + targetRevision: HEAD |
| 41 | + path: charts/ontoserver |
| 42 | + helm: |
| 43 | + valuesObject: |
| 44 | + ontoserver: |
| 45 | + deployment: |
| 46 | + kind: Deployment |
| 47 | + type: single |
| 48 | + isReadOnly: true |
| 49 | + replicas: 1 |
| 50 | + db: |
| 51 | + enabled: true # sidecar PostgreSQL — no external database needed |
| 52 | + |
| 53 | + imageCredentials: |
| 54 | + username: your-quay-username |
| 55 | + password: your-quay-password |
| 56 | + |
| 57 | + serverName: <YOUR-HOSTNAME> |
| 58 | + hostNames: |
| 59 | + - <YOUR-HOSTNAME> |
| 60 | + |
| 61 | + timeZone: Australia/Brisbane |
| 62 | + language: en_AU |
| 63 | + |
| 64 | + resources: |
| 65 | + ontoserver: |
| 66 | + requests: |
| 67 | + cpu: "500m" |
| 68 | + memory: "2Gi" |
| 69 | + limits: |
| 70 | + cpu: "2000m" |
| 71 | + memory: "4Gi" |
| 72 | + initialHeapSize: "512m" |
| 73 | + maxHeapSize: "3000m" |
| 74 | + db: |
| 75 | + requests: |
| 76 | + cpu: "100m" |
| 77 | + memory: "256Mi" |
| 78 | + limits: |
| 79 | + cpu: "500m" |
| 80 | + memory: "512Mi" |
| 81 | + |
| 82 | + # -l: hold the pod unready while the startup preload is running. |
| 83 | + # Traffic is allowed as soon as the preload finishes. |
| 84 | + healthCheckOption: -l |
| 85 | + |
| 86 | + gateway: |
| 87 | + enabled: true |
| 88 | + className: envoy-gateway-class |
| 89 | + requestTimeout: 120s |
| 90 | + # Route all requests through the Varnish service deployed below. |
| 91 | + # The service name is always <ArgoCD-app-name>-varnish-service. |
| 92 | + backendServiceNameOverride: ontoserver-dev-varnish-service |
| 93 | + |
| 94 | + # Uncomment to enable HTTPS via cert-manager: |
| 95 | + # tls: |
| 96 | + # enabled: true |
| 97 | + # certRef: ontoserver-dev-tls |
| 98 | + # certmanager: |
| 99 | + # enabled: true |
| 100 | + # email: your-email@example.com |
| 101 | + |
| 102 | + # Configure what terminology to load on startup. |
| 103 | + # Add subscriptions to your syndication server here: |
| 104 | + # config: |
| 105 | + # ontoserver.syndication.plus.subscriptions.0.uri: https://your-syndication-server/fhir/SubscriptionDefinition/... |
| 106 | + |
| 107 | + # ── ontoserver-extras (Varnish) ──────────────────────────────────────────── |
| 108 | + - repoURL: https://github.com/aehrc/ontoserver-deploy |
| 109 | + targetRevision: HEAD |
| 110 | + path: charts/ontoserver-extras |
| 111 | + helm: |
| 112 | + valuesObject: |
| 113 | + varnish: |
| 114 | + enabled: true |
| 115 | + # 30 s grace period: serve stale content if ontoserver is temporarily |
| 116 | + # unavailable (e.g. during a pod restart). |
| 117 | + graceSeconds: 30 |
| 118 | + cache: |
| 119 | + time200: 10m |
| 120 | + time404: 1m |
| 121 | + |
| 122 | + syncPolicy: |
| 123 | + automated: |
| 124 | + prune: true |
| 125 | + selfHeal: true |
| 126 | + syncOptions: |
| 127 | + - CreateNamespace=true |
0 commit comments