Coder Social home page Coder Social logo

miniagent's Introduction

Miniagent

This repo contains a number of utility scripts to setup a virtualized OKD cluster using agent-based installer (ABI). The main goal is to provide a quick and easy playground for deploying OKD and experiment the various features of ABI, by using the simplest approach possible (meant for educational/testing purpouses only).

Limitations

The current scripts are limited to deploy just the Single Node OpenShift (SNO) topology only (so 1 node cluster).

Pre-requisites

Getting started

  1. Launch the setup script specifying the required release version (see the release page).
$ ./sno-setup.sh quay.io/openshift/okd:4.15.0-0.okd-2024-01-27-070424
  1. Wait for the installation to complete. The console will show a detailed output about each phase of the installation.
...
INFO Cluster is installed                         
INFO Install complete!                            
INFO To access the cluster as the system:admin user when using 'oc', run 
INFO     export KUBECONFIG=/tmp/agent/auth/kubeconfig 
...

NOTE: The IP of the node is 192.168.133.80

  1. Connect to your new cluster using the credentials stored in the asset folder.
$ export KUBECONFIG=/tmp/mini-agent/auth/kubeconfig
$ kubectl get nodes
NAME       STATUS   ROLES                         AGE   VERSION
master-0   Ready    control-plane,master,worker   36m   v1.28.6+0fb4726

Optionally, verify that the cluster has been correctly deployed:

$ kubectl get clusterversion version
NAME      VERSION                          AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.15.0-0.okd-2024-01-27-070424   True        False         51m     Cluster version is 4.15.0-0.okd-2024-01-27-070424
  1. Once done, to remove the cluster and cleanup the enviroment simply run the cleanup script.
$ ./sno-cleanup.sh

Troubleshooting

To access the node via SSH use the following command.

Thanks

These scripts were inspired thanks to the experience and contributions of the various authors of dev-scripts

miniagent's People

Contributors

andfasano avatar

Stargazers

Rickard Ernst Björn Lundin avatar Owen Howard avatar

Watchers

Diane Mueller avatar Christian Glombek avatar  avatar Timothée Ravier avatar

Forkers

kannon92

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.