We need to make configuration changes in the Xray system.yaml file. Hence we override the existing system.yaml in the values.yaml file. Adding the steps below to achieve the same.
1. Exec into the Xray pod using the below command and copy the system.yaml file.
2. Create an external system.yaml file locally and add the complete content copied in the previous step ( adding sample from my local) and add the catalog section mentioned below. Rename the filename to - xray-cus-sy.yaml
3. Create a Kubernetes secret for the updates system.yaml file with new file created
4. Now, pass that secret in the values.yaml under the systemYamlOverride section.
5. Perfrom the helm upgrade. The new system.yaml file in the server container should have catalog configuration.
6. Validate the Catalog and curation from UI.
1. Exec into the Xray pod using the below command and copy the system.yaml file.
kubectl exec -it <pod-name> -n <namespace> bash -c xray-server
2. Create an external system.yaml file locally and add the complete content copied in the previous step ( adding sample from my local) and add the catalog section mentioned below. Rename the filename to - xray-cus-sy.yaml
configVersion: 1 shared: logging: consoleLog: enabled: true jfrogUrl: "http://artifactory-artifactory.rt:8082" database: type: "postgresql" driver: "org.postgresql.Driver" username: "xray" url: "postgres://xray-postgresql:5432/xraydb?sslmode=disable" catalog: enabled: true central: enabled: true url: https://jfrogxraycatalog.jfrog.io/xray username: <USERNAME> password: <PASSWORD>
3. Create a Kubernetes secret for the updates system.yaml file with new file created
kubectl create secret generic sy --from-file ./xray-cus-sy.yaml
4. Now, pass that secret in the values.yaml under the systemYamlOverride section.
systemYamlOverride: existingSecret: sy dataKey: xray-cus-sy.yaml
5. Perfrom the helm upgrade. The new system.yaml file in the server container should have catalog configuration.
6. Validate the Catalog and curation from UI.