router: serviceRegistry: insecure: false shared: logging: consoleLog: enabled: false extraJavaOpts: > -Dartifactory.access.client.max.connections=50 database: type: postgresql url: "jdbc:postgresql://jfrt-postgresql:5432/artifactory" driver: org.postgresql.Driver username: "artifactory" artifactory: database: maxOpenConnections: 80 tomcat: maintenanceConnector: port: 8091 connector: maxThreads: 200 sendReasonPhrase: false extraConfig: acceptCount="100" frontend: session: timeMinutes: "30" access: database: maxOpenConnections: 80 tomcat: connector: maxThreads: 50 sendReasonPhrase: false extraConfig: acceptCount="100" metadata: database: maxOpenConnections: 80 jfconnect: enabled: true
Note: By default the secrets will be encoded and decoded using the base64 format.
Hence, we can prefer using any external encoding/decoding tools to convert the string available in the dataKey.system.yaml.
Once it is decoded, update the system.yaml content with the necessary changes and then encode the yaml file content again as suggested above.
Here, we have updated the system.yaml content with following values shown below:
router: serviceRegistry: insecure: false shared: logging: consoleLog: enabled: false extraJavaOpts: > -Dartifactory.access.client.max.connections=250 -Dartifactory.async.corePoolSize=16 database: type: postgresql url: "jdbc:postgresql://jfrt-postgresql:5432/artifactory" driver: org.postgresql.Driver username: "artifactory" artifactory: database: maxOpenConnections: 300 tomcat: maintenanceConnector: port: 8091 connector: maxThreads: 1200 sendReasonPhrase: false extraConfig: acceptCount="100" frontend: session: timeMinutes: "30" access: database: maxOpenConnections: 300 tomcat: connector: maxThreads: 250 sendReasonPhrase: false extraConfig: acceptCount="100" metadata: database: maxOpenConnections: 300 jfconnect: enabled: true
We will encode the above updated system YAML file content again:
cm91dGVyOgogIHNlcnZpY2VSZWdpc3RyeToKICAgIGluc2VjdXJlOiBmYWxzZQpzaGFyZWQ6CiAg bG9nZ2luZzoKICAgIGNvbnNvbGVMb2c6CiAgICAgIGVuYWJsZWQ6IGZhbHNlCiAgZXh0cmFKYXZh T3B0czogPgogICAgLURhcnRpZmFjdG9yeS5hY2Nlc3MuY2xpZW50Lm1heC5jb25uZWN0aW9ucz0y NTAgLURhcnRpZmFjdG9yeS5hc3luYy5jb3JlUG9vbFNpemU9MTYKICBkYXRhYmFzZToKICAgIHR5 cGU6IHBvc3RncmVzcWwKICAgIHVybDogImpkYmM6cG9zdGdyZXNxbDovL2pmcnQtcG9zdGdyZXNx bDo1NDMyL2FydGlmYWN0b3J5IgogICAgZHJpdmVyOiBvcmcucG9zdGdyZXNxbC5Ecml2ZXIKICAg IHVzZXJuYW1lOiAiYXJ0aWZhY3RvcnkiCmFydGlmYWN0b3J5OgogIGRhdGFiYXNlOgogICAgbWF4 T3BlbkNvbm5lY3Rpb25zOiAzMDAKICB0b21jYXQ6CiAgICBtYWludGVuYW5jZUNvbm5lY3RvcjoK ICAgICAgcG9ydDogODA5MQogICAgY29ubmVjdG9yOgogICAgICBtYXhUaHJlYWRzOiAxMjAwCiAg ICAgIHNlbmRSZWFzb25QaHJhc2U6IGZhbHNlCiAgICAgIGV4dHJhQ29uZmlnOiBhY2NlcHRDb3Vu dD0iMTAwIgpmcm9udGVuZDoKICBzZXNzaW9uOgogICAgdGltZU1pbnV0ZXM6ICIzMCIKYWNjZXNz OgogIGRhdGFiYXNlOgogICAgbWF4T3BlbkNvbm5lY3Rpb25zOiAzMDAKICB0b21jYXQ6CiAgICBj b25uZWN0b3I6CiAgICAgIG1heFRocmVhZHM6IDI1MAogICAgICBzZW5kUmVhc29uUGhyYXNlOiBm YWxzZQogICAgICBleHRyYUNvbmZpZzogYWNjZXB0Q291bnQ9IjEwMCIKbWV0YWRhdGE6CiAgZGF0 YWJhc2U6CiAgICBtYXhPcGVuQ29ubmVjdGlvbnM6IDMwMApqZmNvbm5lY3Q6CiAgZW5hYmxlZDog dHJ1ZQo=
As a next step, edit the secret (kubectl edit secret <secret name>) and replace the new encoded key under the dataKey.system.yaml, then save it (:wq).
Finally, restart the Artifactory pods for the changes to take effect.