Skip to content

This script is for demo purposes only. It deploys a bare minimum, single-node K3s Kubernetes cluster, Longhorn Storage, and StackRox OSS and provides links to the interfaces and login information.

Notifications You must be signed in to change notification settings

AlphaBravoCompany/stackrox-demo-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

StackRox Demo Server

About StackRox OSS

The StackRox Kubernetes Security Platform performs a risk analysis of the container environment, delivers visibility and runtime alerts, and provides recommendations to proactively improve security by hardening the environment. StackRox integrates with every stage of container lifecycle: build, deploy and runtime.

Note: the StackRox Kubernetes Security platform is built on the foundation of the product formerly known as Prevent, which itself was called Mitigate and Apollo. You may find references to these previous names in code or documentation.

Learn more about StackRox

Intended usage of this script

This script is for demo purposes only. It deploys a bare minimum, single-node K3s Kubernetes cluster, Longhorn Storage, and StackRox OSS and provides links to the interfaces and login information.

Prerequisites

  • Ubuntu 20.04+ Server
  • Minimum Recommended 8vCPU and 8GB (16GB may be better if you want to run test workloads) of RAM (Try Hetzner or DigitalOcean)
  • DNS or Hosts file entry pointing to server IP

Installed as part of script

  • Helm
  • K3s
  • Rancher UI
  • Longhorn Storage
  • cert-manager
  • StackRox OSS

Full Server Setup with roxctl tool

  1. git clone https://github.com/AlphaBravoCompany/StackRox-demo-server.git
  2. cd StackRox-demo-server
  3. chmod +x install-StackRox.sh
  4. ./install-StackRox.sh subdomain.yourdomain.tld
  5. Install will take approximately 10 minutes and will output links and login information for Rancher and your StackRox installation.
  6. Details for accessing StackRox and Rancher will be printed to the screen once the script completes and saved to server-details.txt

Updating the StackRox OSS Version

  • Visit the https://quay.io/organization/stackrox-io/ registry page and find the image tag you want to use. Choosing main and viewing the tags will likely be sufficient as it seems all images have the same tagging applied.
  • Edit the install-stackrox.sh file and update the rox_version variable to use the new image tag.
  • Uninstall using the below method and rerun the install-stackrox.sh script as before.

Uninstall Methods

  1. From within the stackrox-demo-server directory, run /usr/local/bin/k3s-uninstall.sh && rm -rf central-bundle/ sensor-k3s/ && rm server-details.txt (removes K3s, Rancher, Longhorn and StackRox)

Special Thanks

Thanks to Andy Clemenko for his expertise and repos for providing the foundation for this script.

About Alphabravo

AlphaBravo provides products, services, and training for Kubernetes, Cloud, and DevSecOps.

Contact AB today to learn how we can help you.

About

This script is for demo purposes only. It deploys a bare minimum, single-node K3s Kubernetes cluster, Longhorn Storage, and StackRox OSS and provides links to the interfaces and login information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages