Git Product home page Git Product logo

openshift-config's Introduction

openshift-config

This is a script which has some configuration modules for a fresh and clean OpenShift installation. If you've been using the Single Node OpenShift installation, you need some persistant volumens and you need to make the internal registry able to store your images.

This is what the script does right now:

  • Creating 30 persistant volumens (locally on the OpenShift VM)
  • Configuring the internal registry to be able to store images
  • Installing some operators (namely gitops and pipelines) for demo purposes
  • Setting up a 'ci' namespace with nexus and Gogs ready to use
  • Setting up a htpasswd identity provider for 2 users

Usage

In order to use this script for the following modules, you first need to be logged into OpenShift as a user with cluster-admin role. This is typically the kubeadmin user after a fresh installation.

  • persistant-volumes
  • registry
  • operators
  • create-users

The ci module does only need to have a user context (devel or developer).

The typical workflow after installing a OpenShift SNO from this page is:

  • Create the OpenShift SNO
  • ./config-snc.sh persistant-volumes
  • ./config-snc.sh registry
  • ./config-snc.sh create-users

persistant-volumes

$> ./config-snc.sh persistant-volumes -h 192.168.2.23

This creates 30 volumens within /mnt/pv-data on the SNO host at 192.168.2.23. Make sure, you're able to ssh into the machine. By default you should be able to do so without password, as the installer has your public key.

registry

$> ./config-snc.sh registry 

This switches the internal registry to "Managed" and binds it to a PV called pv0001. For this module, you must be logged in as kube:admin in your cluster.

operators

$> ./config-snc.sh operators

This installs the gitops and the pipelines operators. Please make sure to be logged into the openshift instance as cluster-admin. And you already should have persistant volumes available.

ci

$> ./config-snc.sh ci

This installs a Nexus and Gogs into a newly created namespace called ci. It also clones 3 repositories from github.com into Gogs. After that it prints out the access to both instances. By default, we are using

  • Nexus: admin/admin123
  • Gogs: gogs/gogs

create-users

$> ./config-snc.sh create-users 

This adds a HTPasswd identity provider to the cluster with 2 users in it:

  • admin/admin123 -> cluster-admin
  • devel/devel -> normal user

You need to be logged into OpenShift with cluster-admin rights.

openshift-config's People

Contributors

wpernath avatar arw-thomasm avatar

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.