Usage¶
CLI Tool¶
(OPTIONAL) Create and activate a Python virtual environment to isolate project dependencies from the system’s global libraries.
python3 -m venv .venv
. ./.venv/bin/activate
Install the package using:
pip install uptainer
Download the latest config sample from Github
wget "https://raw.githubusercontent.com/asbarbati/uptainer/refs/heads/develop/config.sample.yaml"
Edit the config based your scenarios follow the configuration guide.
Export the environment variable named “GITHUB_API_TOKEN” (How to create the tokens)
export GITHUB_API_TOKEN="ghp_...."
Run it using:
uptainer --config-file <path of your config yml>
Verify the results on the logs.
Helm Chart¶
Adding Helm repository
helm repo add asbarbati-helm https://asbarbati.github.io/helm-charts/
Download the latest package using
helm fetch asbarbati-helm/uptainer
De-compress the package
tar xfz uptainer-<VERSION>.tgz
Create a secret with the SSH private key.
kubectl create secret generic uptainer-sshkey --from-file=ssh-privatekey=/path/to/.ssh/id_rsa
Adding the reference in the values.yaml file like
- name: sshkey
secret:
secretName: uptainer-sshkey
Edit the values for your scenarios.
Install it
helm install uptainer asbarbati-helm/uptainer -f values.yaml