xray
by Helm
Universal component scan for security and license inventory and impact analysis
About this chart
JFrog Xray HA on Helm Chart
IMPORTANT! Our Helm Chart docs have moved to our main documentation site. Below you will find the basic instructions for installing and deleting Xray. For all other information, refer to Installing Xray.
Prerequisites Details
- Kubernetes 1.14+
Chart Details
This chart will do the following:
- Optionally deploy PostgreSQL (NOTE: For production grade installations it is recommended to use an external PostgreSQL)
- Deploy RabbitMQ (optionally as an HA cluster)
- Deploy JFrog Xray micro-services
Requirements
- A running Kubernetes cluster
- Dynamic storage provisioning enabled
- Default StorageClass set to allow services using the default StorageClass for persistent storage
- A running Artifactory
- Kubectl installed and setup to use the cluster
- Helm v2 or v3 installed
Install JFrog Xray
Add the JFrog Helm Repository
Before installing JFrog helm charts, you will need to add the JFrog helm repository to your Helm client.
helm repo add jfrog https://charts.jfrog.io
helm repo update
Install the Chart
Artifactory Connection Details
To connect Xray to your Artifactory installation, you will need to use a join key. To learn how to retrieve the connection details of your Artifactory installation (join key and JFrog URL) from the UI, see https://www.jfrog.com/confluence/display/JFROG/General+Security+Settings#GeneralSecuritySettings-ViewingtheJoinKey.
Initiate Installation
Provide the join key and JFrog URL as a parameter to the Xray chart installation:
helm upgrade --install xray --set xray.joinKey=<YOUR_PREVIOUSLY_RETIREVED_JOIN_KEY> \
--set xray.jfrogUrl=<YOUR_PREVIOUSLY_RETIREVED_BASE_URL> jfrog/xray --namespace xray --create-namespace
Apply Sizing configurations to the Chart
To apply the chart with recommended sizing configurations : For small configurations :
helm upgrade --install xray jfrog/xray -f sizing/xray-sizing-small.yaml --namespace xray --create-namespace
Uninstalling Xray
IMPORTANT: Uninstalling Xray using the commands below will also delete your data volumes and you will lose all of your data. You must back up all this information before deletion.
To uninstall Xray use the following command.
helm uninstall xray --namespace xray && sleep 90 && kubectl delete pvc -l app=xray
Deploy xray with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has xray on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartxray is pinned at v103.150.37 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply