|
| 1 | +## Settings ## |
| 2 | + |
| 3 | +Settings provide hub configuration. |
| 4 | + |
| 5 | +The `T` specifies the type: |
| 6 | +- `I` = integer |
| 7 | +- `S` = string |
| 8 | +- `B` = boolean (0|1|true|false) |
| 9 | + |
| 10 | +### Main ### |
| 11 | + |
| 12 | +These settings pertain to the Hub in general. |
| 13 | + |
| 14 | +| Name | T | Envar | Default | Definition | |
| 15 | +|---------------------------|---|-----------------------|-----------------|---------------------------------------------------| |
| 16 | +| Build | S | BUILD | | Hub build version. | |
| 17 | +| Namespace | S | NAMESPACE | konveyor-tackle | Home k8s Namespace. | |
| 18 | +| **DB**.Path | S | DB_PATH | /tmp/tackle.db | Path to sqlite file. | |
| 19 | +| **DB**.MaxConnections | I | DB_MAX_CONNECTION | 1 | Number of DB connections. | |
| 20 | +| **DB**.SeedPath | S | DB_SEED_PATH | /tmp/seed | Path to seed files. | |
| 21 | +| **Bucket**.Path | S | BUCKET_PATH | /tmp/bucket | Path to bucket storage directory. | |
| 22 | +| **Bucket**.TTL | I | BUCKET_TTL | 1 (minute) | Orphaned buckets TTL (minutes). | |
| 23 | +| **File**.TTL | I | FILE_TTL | 1 (minute) | Orphaned files TTL (minutes). | |
| 24 | +| **Cache**.RWX | B | RWX_SUPPORTED | FALSE | Cache volume supports RWX. | |
| 25 | +| **Cache**.Path | S | CACHE_PATH | /cache | Cache volume mount path. | |
| 26 | +| **Cache**.PVC | S | CACHE_PVC | cache | Cache PVC name. Used when RWX suppored. | |
| 27 | +| **Shared**.Path | S | SHARED_PATH | /shared | Shared volume mount path. | |
| 28 | +| **Encryption**.Passphrase | S | ENCRYPTION_PASSPHRASE | tackle | RSA encryption passphrase. | |
| 29 | +| Development | B | DEVELOPMENT | FALSE | Development mode. | |
| 30 | +| Disconnected | B | DISCONNECTED | FALSE | Not connected to a cluster. | |
| 31 | +| Product | S | APP_NAME | tackle | Product/application name. Affects target seeding. | |
| 32 | +| **Metrics**.Enabled | B | METRICS_ENABLED | TRUE | Metrics reporting enabled. | |
| 33 | +| **Metrics**.Port | I | METRICS_PORT | | Metrics reporting (listen) port number. | |
| 34 | + |
| 35 | +### Auth ### |
| 36 | + |
| 37 | +These settings pertain to authentication and authorization. |
| 38 | + |
| 39 | +| Name | T | Envar | Default | Definition | |
| 40 | +|-----------|---|---------------|-----------------|--------------------------------------------| |
| 41 | +| Required | B | AUTH_REQUIRED | FALSE | API enforces authentication/authorization. | |
| 42 | +| RolePath | S | RULE_PATH | /tmp/roles.yaml | Path to file used to seed roles. | |
| 43 | +| UserPath | S | USER_PATH | /tmp/users/yaml | Path to file used to seed users. | |
| 44 | +| Token.Key | S | ADDON_TOKEN | | Key used to sign tokens. | |
| 45 | + |
| 46 | +### Task Manager ### |
| 47 | + |
| 48 | +These settings pertain to the tasking system. |
| 49 | + |
| 50 | +| Name | T | Envar | Default | Definition | |
| 51 | +|-------------------------|---|---------------------------|------------|----------------------------------------------------------------------------------| |
| 52 | +| SA | S | TASK_SA | | Task pod service account name. | |
| 53 | +| Retries | I | TASK_RETRIES | 1 | Task pod creation retires. | |
| 54 | +| Reaper.Created | I | TASK_REAP_CREATED | 72 (hour) | (seconds) task may remain in state=CREATED before deleted. | |
| 55 | +| Reaper.Succeeded | I | TASK_REAP_SUCCEEDED | 72 (hour) | (seconds) before SUCCEEDED task's bucket released. | |
| 56 | +| Reaper.Failed | I | TASK_REAP_FAILED | 30 (day) | (seconds) before FAILED task's bucket is bucket released. | |
| 57 | +| Preemption.Enabled | B | TASK_PREEMPT_ENABLED | FALSE | Task.Policy.Preempt.Enabled default. | |
| 58 | +| Preemption.Delayed | I | TASK_PREEMPT_DELAYED | 1 (minute) | (seconds) before READY task is deemed to be _blocked_ and my trigger preemption. | |
| 59 | +| Preemption.Postponed | I | TASK_PREEMPT_POSTPONED | 1 (minute) | (seconds) before task with PREEMPTED event will be postponed. | |
| 60 | +| Preemption.Rate | I | TASK_PREEMPT_RATE | 10% | (percent) of lower priority RUNNING tasks to be preempted each pass. | |
| 61 | +| Pod.Retention.Succeeded | I | TASK_POD_RETAIN_SUCCEEDED | 1 (minute) | (minutes) before SUCCEEDED task pod is reaped (deleted). | |
| 62 | +| Pod.Retention.Failed | I | TASK_POD_RETAIN_FAILED | 72 (hour) | (minutes) before FAILED task pod is reaped (deleted). | |
| 63 | +| Pod.UID | S | TASK_UID | | Task pod run-as user id. | |
| 64 | + |
| 65 | +### Intervals/Frequencies ### |
| 66 | + |
| 67 | +These settings pertain to the frequency of _manager_ main loops. |
| 68 | + |
| 69 | +| Name | T | Envar | Default | Definition | |
| 70 | +|--------|---|------------------|------------|--------------------------------------| |
| 71 | +| Task | I | FREQUENCY_TASK | 1 (second) | (seconds) between each manager pass. | |
| 72 | +| Reaper | I | FREQUENCY_REAPER | 1 (minute) | (minutes) between each reaper pass. | |
| 73 | + |
| 74 | +### Analysis ### |
| 75 | + |
| 76 | +These settings pertain to analysis. |
| 77 | + |
| 78 | +| Name | T | Envar | Default | Definition | |
| 79 | +|-----------------|---|---------------------------|-----------------------|---------------------------------| |
| 80 | +| ReportPath | S | ANALYSIS_REPORT_PATH | /tmp/analysis/report | Path to static analysis report. | |
| 81 | +| ArchiverEnabled | B | ANALYSIS_ARCHIVER_ENABLED | TRUE | Analysis report auto-archived. | |
| 82 | + |
| 83 | +### Discovery ### |
| 84 | + |
| 85 | +These settings pertain to the auto-create of lang-discovery tasks. |
| 86 | + |
| 87 | +| Name | T | Envar | Default | Definition | |
| 88 | +|---------|---|-------------------|----------------------------|-----------------------------------------------| |
| 89 | +| Enabled | B | DISCOVERY_ENABLED | TRUE when not DISCONNECTED | Trigger discover tasks on application update. | |
| 90 | +| Label | S | DISCOVERY_LABEL | konveyor.io/discovery | k8s label use to select lang-discover tasks. | |
| 91 | + |
| 92 | +### Addon ### |
| 93 | + |
| 94 | +These settings are intended to be shared by the hub and the (Go) addons. |
| 95 | + |
| 96 | +| Name | T | Envar | Default | Definition | |
| 97 | +|-----------|---|--------------|-----------------------|---------------------------------| |
| 98 | +| HomeDir | S | ADDON_HOME | /addon | Addon home (working) directory. | |
| 99 | +| Hub.URL | S | HUB_BASE_URL | http://localhost:8080 | Hub (base) URL. | |
| 100 | +| Hub.Token | S | TOKEN | | Auth token for hub API. | |
| 101 | +| Task.ID | I | TASK | | Task addon working on. | |
| 102 | + |
| 103 | + |
| 104 | +### KEYCLOAK ### |
| 105 | + |
| 106 | +| Name | T | Envar | Default | Definition | |
| 107 | +|------------------------|---|--------------------------|---------|----------------------------| |
| 108 | +| RequirePasswordUpdate | B | KEYCLOAK_REQ_PASS_UPDATE | TRUE | User must change password. | |
| 109 | +| Host | S | KEYCLOAK_HOST | | Service hostname. | |
| 110 | +| Realm | S | KEYCLOAK_REALM | | Realm name. | |
| 111 | +| ClientID | S | KEYCLOAK_CLIENT_ID | | Client id. | |
| 112 | +| ClientSecret | S | KEYCLOAK_CLIENT_SECRET | | Client secret. | |
| 113 | +| Admin.User | S | KEYCLOAK_ADMIN_USER | | Admin client user. | |
| 114 | +| Admin.Password | S | KEYCLOAK_ADMIN_PASS | | Admin client password. | |
| 115 | +| Admin.Realm | S | KEYCLOAK_ADMIN_REALM | | Admin client realm. | |
0 commit comments