|
| 1 | +apiVersion: science.sneaksanddata.com/v1 |
| 2 | +kind: NexusAlgorithmTemplate |
| 3 | +metadata: |
| 4 | + name: hello-world |
| 5 | + annotations: |
| 6 | + "helm.sh/hook": post-install,post-upgrade |
| 7 | + "helm.sh/hook-weight": "0" |
| 8 | + "helm.sh/hook-delete-policy": before-hook-creation |
| 9 | +spec: |
| 10 | + args: |
| 11 | + - main.py |
| 12 | + - '--sas-uri=%s' |
| 13 | + - '--request-id=%s' |
| 14 | + command: python |
| 15 | + computeResources: |
| 16 | + cpuLimit: 1000m |
| 17 | + memoryLimit: 1000Mi |
| 18 | + container: |
| 19 | + image: nexus-hello |
| 20 | + registry: ghcr.io/sneaksanddata |
| 21 | + serviceAccountName: nexus |
| 22 | + versionTag: 0.1.2 |
| 23 | + datadogIntegrationSettings: |
| 24 | + mountDatadogSocket: true |
| 25 | + errorHandlingBehaviour: |
| 26 | + fatalExitCodes: |
| 27 | + - 137 |
| 28 | + transientExitCodes: |
| 29 | + - 139 |
| 30 | + runtimeEnvironment: |
| 31 | + deadlineSeconds: 120 |
| 32 | + environmentVariables: |
| 33 | + - name: DD_AGENT_HOST |
| 34 | + valueFrom: |
| 35 | + fieldRef: |
| 36 | + fieldPath: status.hostIP |
| 37 | + - name: PROTEUS__DD_SITE |
| 38 | + value: datadoghq.eu |
| 39 | + - name: NEXUS__ALGORITHM_NAME |
| 40 | + value: nexus-hello |
| 41 | + - name: NEXUS__SCHEDULER_URL |
| 42 | + value: http://nexus.nexus.svc.cluster.local:8080 |
| 43 | + - name: NEXUS__RECEIVER_URL |
| 44 | + value: http://dockerhost.nexus.svc.cluster.local:8081 |
| 45 | + - name: NEXUS__STORAGE_CLIENT_CLASS |
| 46 | + value: adapta.storage.blob.s3_storage_client.S3StorageClient |
| 47 | + - name: ALGORITHM_STORAGE__BASE_PATH |
| 48 | + value: s3a://nexus/storage |
| 49 | + - name: NEXUS__ALGORITHM_OUTPUT_PATH |
| 50 | + value: s3a://nexus/result |
| 51 | + - name: NEXUS__TELEMETRY_PATH |
| 52 | + value: s3a://nexus/telemetry |
| 53 | + - name: ALGORITHM_STORAGE_TYPE |
| 54 | + value: S3 |
| 55 | + - name: PROTEUS__AWS_REGION |
| 56 | + value: us-east-1 |
| 57 | + - name: PROTEUS__AWS_ENDPOINT |
| 58 | + value: http://dockerhost.nexus.svc.cluster.local:9000 |
| 59 | + - name: PROTEUS__AWS_SECRET_ACCESS_KEY |
| 60 | + value: minioadmin |
| 61 | + - name: PROTEUS__AWS_ACCESS_KEY_ID |
| 62 | + value: minioadmin |
| 63 | + mappedEnvironmentVariables: [] |
| 64 | + maximumRetries: 1 |
| 65 | + workgroupRef: |
| 66 | + group: science.sneaksanddata.com |
| 67 | + kind: NexusAlgorithmWorkgroup |
| 68 | + name: default |
0 commit comments