Download and extract the Xray installer 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
Run the Ansible playbook manually.
Add your configuration under the
~/k3s-ansible/inventory/k3scluster/hosts.ini
.For example:
[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'
Add your VM username under
~/k3s-ansible/inventory/k3scluster/group_vars/all.yml
.ansible_user: vmUsername
Run the playbook.
ansible-playbook -v site.yml -i inventory/k3scluster/hosts.ini
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.
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.Add the following configuration in the Xray System 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
Restart the Xray service to enabled JAS.