---
updatedAt: 2026-09-16T10:25:23.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/installation/llms.txt
---

# Advanced Security Installation without Helm

Install JFrog Advanced Security without Helm using K3s-based Kubernetes for RPM, Debian, Linux Archive, or Docker Compose deployments.

<Callout icon="✅" theme="okay">
**Tip**

You are in **Step 2**, of the JFrog Advanced Security installation. For previous and next steps, refer to [Installing JFrog Advanced Security](installing-jfrog-advanced-security).
</Callout>

Advanced Security runs its workloads on a Kubernetes cluster. For users who don’t already have one, the installation includes a streamlined solution that uses the lightweight K3s distribution to create a Kubernetes cluster using virtual machines automatically.

<Callout icon="📘" theme="info">
**Note**

Starting from Xray version 3.105 and above, no additional self-signed certificate configuration is required for JAS. It will automatically inherit the settings from Xray if necessary.
</Callout>

Copy the ca certificate in pem base64 format to the `$XRAY_HOME/var/etc/security/trusted` folder.

Update the Xray `system.yaml` file with the following information. For more information, see [Xray System YAML](xray-system-yaml).

```yaml
executionService: 
  platformCertificatePath: "/path/to/certificate.pem"
```

Configure JAS to ensure it works without issues in an air-gapped environment. After completing these configurations, proceed with the installation.

## Port Configuration

Open the following ports before proceeding.

* Between Xray and k3s master VM - 6443,10250
* Between k3s VMs - Refer the <a href="https://docs.k3s.io/installation/requirements#inbound-rules-for-k3s-server-nodes" target="_blank">k3s documentation</a>
* Between k3s VMs and Artifactory - 8082

## Artifactory Configuration

Verify that JFConnect is running in air-gapped mode and that entitlements have been successfully loaded. For more information, see [Configure JFrog Platform in an Air-gapped Environment](configure-jfrog-platform-in-an-air-gapped-environment).

## Xray Configuration

Complete the Xray configuration on the Xray node, or on the first node if you use an HA setup.

1. Install Docker in the air-gapped Xray node so that you can run the Ansible playbook to set up the k3s infrastructure.
2. Run the following commands from a machine that has Internet access.

   ```bash
   docker pull releases-docker.jfrog.io/ansible/ansible:2.15.0
   docker save releases-docker.jfrog.io/ansible/ansible:2.15.0 | gzip > ansible.tar
   ```
3. Copy `ansible.tar`vfile to the Xray machine.
4. Run the following command in the Xray machine.

   ```bash
   docker load < ansible.tar
   ```
5. Make the following changes to the [Xray System YAML](xray-system-yaml) and restart the Xray service.

   ```yaml
   server:
       dbSync:
           version3:
               enabled: true
   ```

## k3s Node Configuration

Configure k3s node VMs. We recommend that you use three VMs - 1 as master and 2 as workers.

1. Create the VMs for k3s.
2. Download the following k3s resources from a machine that has Internet access.

   * k3s binaries (k3s version - 1.29.7+k3s1)

     ```bash
     wget https://releases.jfrog.io/artifactory/run/k3s/1.29.7/k3s
     ```
   * k3s airgapped images

     ```bash
     wget https://releases.jfrog.io/artifactory/run/k3s/1.29.7/k3s-airgap-images-amd64.tar.gz
     ```
3. Copy k3s binary to `/usr/local/bin` in the k3s VM and make it executable.

   ```bash
   sudo cp k3s /usr/local/bin
   sudo  chmod +x /usr/local/bin/k3s
   ```
4. Copy k3s images to `/var/lib/rancher/k3s/agent/images/` in the k3s VM.

   ```bash
   sudo mkdir -p /var/lib/rancher/k3s/agent/images/
   sudo cp k3s-airgap-images-amd64.tar.gz /var/lib/rancher/k3s/agent/images/
   ```

Complete the [prerequisites](#prerequisites-to-install-jas-without-helm) and the [configuration for an air-gapped environment](install-jfrog-advanced-security-on-your-self-hosted-environment-without-helm#k3s-node-configuration).

1. Download and extract the <a href="https://jfrog.com/download-jfrog-platform/" target="_blank">Xray installer</a> if required.
2. Run `configureJas.sh` from the extracted Xray installer directory and provide the necessary inputs as directed.

   * RPM - You can find the file in the following location, `jfrog-xray-<version>-rpm/configureJas.sh` .

   * Deb - You can find the file in the following location, `jfrog-xray-<version>-deb/configureJas.sh`.

   * Linux Archive - You can find the file in the following location, `jfrog-xray-<version>-linux/xray/app/bin/configureJas.sh`

<Callout icon="📘" theme="info">
     **User Account for Linux Archive Installation**

     Use the same user account to install Xray when you run `configureJas.sh`.

     Xray user used to run the script must have sudo permission to install Ansible from the official upstream package manager. If the user cannot have sudo permission, install Ansible before running this script.
</Callout>

* Docker Compose - You can find the file in the following location, `jfrog-xray-<version>-compose/configureJas.sh`

3. Enter the information required by the script.

4. When the installation is successful, you can find the `kube_config.yaml` file under `/opt/jfrog/xray/var/etc` in Deb/RPM installation, `<xray installation directory>/var/etc` in Linux Archive installation, and `/root/.jfrog/xray/var/etc` for Docker Compose installation.

   The installation also updates the [Xray System YAML](install-jfrog-advanced-security-on-your-self-hosted-environment-without-helm) file with the entries for JAS.

<Callout icon="📘" theme="info">
   **Note**

   If you install the k3s cluster on the same machine as Xray (for testing and not for production), and use the Docker Compose installation, update the IP in `kube_config.yaml` to match the IP of the machine. This ensures that Xray can access the k3s cluster from within the container.
</Callout>

5. Restart the Xray service to enable JAS.

### HA Installation

1. Copy `kube_config.yaml` from the first node to the additional nodes under the same path.

   You can find `kube_config.yaml` file under `/opt/jfrog/xray/var/etc` in Deb/RPM installation, `<xray installation directory>/var/etc` in Linux Archive installation, and `/root/.jfrog/xray/var/etc` for Docker Compose installation.
2. Run `configureJas.sh` .
3. Choose the option to use the existing `kube_config.yaml` file.
4. Restart the Xray service after the installation is complete.

##### Load Exposure and Contextual Analysis Images

You must load exposure and contextual analysis images to all k3s VMs.

<Callout icon="📘" theme="info">
**Note**

When you download an image, ensure that it is of the same architecture as the k3s machine.
</Callout>

1. Download images on a machine that has Internet connection.

   ```bash
   docker pull --platform=linux/amd64 releases-docker.jfrog.io/jfrog/xray-jas-exposures:<XRAY_VERSION>
   docker pull --platform=linux/amd64 releases-docker.jfrog.io/jfrog/xray-jas-contextual-analysis:<XRAY_VERSION>
   ```
2. Save the images as tar files.

   ```bash
   docker save releases-docker.jfrog.io/jfrog/xray-jas-exposures:<XRAY_VERSION> > jas_exposure.tar
   docker save releases-docker.jfrog.io/jfrog/xray-jas-contextual-analysis:<XRAY_VERSION> > jas_contextual_analysis.tar
   ```
3. Copy the tar files to all k3s nodes and load with the following commands.

   ```bash
   k3s ctr images import jas_exposure.tar
   k3s ctr images import jas_contextual_analysis.tar
   ```

## Prerequisites to Install JAS without Helm

Complete the following prerequisites before proceeding with installation.

##### Create Virtual Machines

Create virtual machines for running JAS before starting the installation. Ensure passwordless access to the VMs — for example, you must be able to access them using `ssh username@ip`. For more information on system requirements, see System Requirements.

The following operating systems are certified:

* RHEL 8
* RHEL 9
* Ubuntu 20
* Ubuntu 22

The user in the k3s VM must have passwordless `sudo` access and passwordless `ssh` access.

###### Configure Passwordless SSH Access to VM

The `user` in the procedure is the account username from which you run the script.

1. Add your private key to access the VM under `/user/.ssh/yourPrivateKey`.
2. Assign read and write access to the file.

   ```bash
   chmod 600 /user/.ssh/yourPrivateKey
   ```
3. Edit the file, `/user/.ssh/config`, and add the following line.

   ```properties
   IdentityFile /user/.ssh/yourPrivateKey
   ```

##### Installation of Ansible

The installer uses Ansible to set up JAS. You can install Ansible or use Ansible with Docker. We recommend that you use Docker.

###### Install with Docker (Recommended)

1. Install Docker manually in the Xray machine.

   Installation of k3s cluster on the same machine as Xray is not supported for Docker installation. You can install it with Ansible.
2. Copy the private content (that has access to all k3s VMs) to `k3s-ansible/keys/k3s_vms_private_key` in the installation directory before running `configureJas.sh`.

###### Install with Ansible

The installer downloads and installs Ansible when you run the installation process. If the installer fails to install ansible from the package manager of the OS or if the ansible version is lower than 2.9.x, try installing ansible manually, and ensure that the Ansible version is 2.9.x or later.

If you have limitations setting up Ansible on the same machine, you can follow the manual method to create a K3s cluster from any other machine. For more information, see [Run Ansible Playbook Manually](install-jfrog-advanced-security-on-your-self-hosted-environment-without-helm).

##### Configure Artifactory

1. Verify that the Artifactory version is 7.90.x or later.
2. Set up a valid license to use JAS in Artifactory.
3. Verify that the Base URL is configured for Artifactory.
4. **Verify internet access:** Verify that the JFrog Platform has internet connectivity to communicate with JFrog Backoffice and fetch entitlements. For required domains, see [Allowlisted URLs](allowlisted-urls-and-air-gapped-environment-considerations).
5. **Air-gapped Environments (if applicable):** If internet access is not available, configure the JFrog Platform to operate in an air-gapped environment. For instructions, see [Configure JFrog Platform in an Air-gapped Environment](configure-jfrog-platform-in-an-air-gapped-environment).

##### Install Xray

Before you install JAS, you must install Xray. The following sections provide detailed information on how you can install Xray based on your system.

* [Install Xray Single Node with Interactive Script](install-xray-single-node-with-interactive-script)
* [Install Xray Single Node with Linux Archive](install-xray-single-node-with-linux-archive)
* [Xray Single Node Manual Debian Installation](xray-single-node-manual-debian-installation)
* [Xray Single Node Manual RPM Installation](xray-single-node-manual-rpm-installation)
* [Xray Single Node Manual Docker Compose Installation](xray-single-node-manual-docker-compose-installation)
  <Callout icon="📘" theme="info">
  **Xray Version Requirements for non-Helm Installations**

  To install JAS with RPM, Debian or Linux Archive, you must use Xray version 3.73.5 and later.

  To install JAS with Docker Compose, you must use Xray version 3.73.8 and later.
  </Callout>

## JAS Interactive Script Installation

1. Download and extract the <a href="https://jfrog.com/download-jfrog-platform/" target="_blank">Xray installer</a> if required.
2. Run `configureJas.sh` from the extracted Xray installer directory and provide the necessary inputs as directed.

   * RPM - You can find the file in the following location, `jfrog-xray-<version>-rpm/configureJas.sh` .

   * Deb - You can find the file in the following location, `jfrog-xray-<version>-deb/configureJas.sh`.

   * Linux Archive - You can find the file in the following location, `jfrog-xray-<version>-linux/xray/app/bin/configureJas.sh`

<Callout icon="📘" theme="info">
     **User Account for Linux Archive Installation**

     Use the same user account to install Xray when you run `configureJas.sh`.

     Xray user used to run the script must have sudo permission to install Ansible from the official upstream package manager. If the user cannot have sudo permission, install Ansible before running this script.
</Callout>

* Docker Compose - You can find the file in the following location, `jfrog-xray-<version>-compose/configureJas.sh`

3. Enter the information required by the script.

4. When the installation is successful, you can find the `kube_config.yaml` file under `/opt/jfrog/xray/var/etc` in Deb/RPM installation, `<xray installation directory>/var/etc` in Linux Archive installation, and `/root/.jfrog/xray/var/etc` for Docker Compose installation.

   The installation also updates the [Xray System YAML](install-jfrog-advanced-security-on-your-self-hosted-environment-without-helm) file with the entries for JAS.

<Callout icon="📘" theme="info">
   **Note**

   If you install the k3s cluster on the same machine as Xray (for testing and not for production), and use the Docker Compose installation, update the IP in `kube_config.yaml` to match the IP of the machine. This ensures that Xray can access the k3s cluster from within the container.
</Callout>

5. Restart the Xray service to enable JAS.

##### HA Installation

1. Copy `kube_config.yaml` from the first node to the additional nodes under the same path.

   You can find `kube_config.yaml` file under `/opt/jfrog/xray/var/etc` in Deb/RPM installation, `<xray installation directory>/var/etc` in Linux Archive installation, and `/root/.jfrog/xray/var/etc` for Docker Compose installation.
2. Run `configureJas.sh` .
3. Choose the option to use the existing `kube_config.yaml` file.
4. Restart the Xray service after the installation is complete.

## JAS Manual Installation

1. Download and extract the <a href="https://jfrog.com/download-jfrog-platform/" target="_blank">Xray installer</a> if required.

   You can find the Ansible playbook in the following folders.

   * Linux Archive - `jfrog-xray-<version>-linux/xray/app/bin/k3s-ansible`
   * RPM - `jfrog-xray-<version>-rpm/k3s-ansible`
   * Deb - `jfrog-xray-<version>-deb/k3s-ansible`
2. Run the Ansible playbook manually.

   1. Add your configuration under the `~/k3s-ansible/inventory/k3scluster/hosts.ini`.

      For example:

      ```ini
      [master]
      10.90.184.25
      [node]
      10.90.122.151
      10.90.180.51
      [k3s_cluster:children]
      master
      node
      [all:vars]
      ansible_ssh_common_args='-o StrictHostKeyChecking=no'
      ```
   2. Add your VM username under `~/k3s-ansible/inventory/k3scluster/group_vars/all.yml`.

      ```yaml
      ansible_user: vmUsername
      ```
   3. Run the playbook.

      ```bash
      ansible-playbook -v site.yml -i inventory/k3scluster/hosts.ini
      ```
   4. When the run is complete, you can find the `kube_config.yaml` file in the same directory, which has the details to connect with the cluster.
3. Copy the `kube_config.yaml` and place it under `<xray installation directory>/var/etc` in LInux Archive installation or `/opt/jfrog/xray/var/etc` var/etc/kube\_config.yaml in Deb/RPM installation of the Xray instance.
4. Add the following configuration in the [Xray System YAML](xray-system-yaml).

   ```yaml
   executionService:
     jobAesKey: <Your execution key > // openssl rand -hex 16
     kubeconfig:
       path: /opt/jfrog/xray/var/etc/kube_config.yaml
       namespace: default
       context: default
       enabled: true
   ```
5. Restart the Xray service to enable JAS.

## Related Topics

* [Advanced Security Installation](installing-jfrog-advanced-security)
* [Advanced Security Prerequisites](jfrog-advanced-security-prerequisites)
* [Advanced Security Helm Installation](install-jfrog-advanced-security-on-your-self-hosted-environment-with-helm)
* [Advanced Security Additional Configurations](jfrog-advanced-security-additional-configurations)
* [Advanced Security Readiness Checking](jfrog-advanced-security-readiness-checking)