Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

update deploy-storageos-cluster.sh #292

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

romdalf
Copy link

@romdalf romdalf commented May 14, 2021

Modify the script to:

  • render a more compact and beautiful for the overall script output
  • perform online checks for:
    • presence of kubectl
    • presence of at least 3 nodes
    • presence of an existing StorageOS on the target
  • allow variable settings for:
    • cluster name
    • StorageOS version
  • ask confirm installation
  • output only errors to reduce output
  • update some internals

Output examples:

If don't want to install:

curl -fsSL https://raw.githubusercontent.com/rovandep/storageos.github.io/rom-storageos.run/sh/deploy-storageos-cluster.sh |bash Welcome to the STORAGEOS self-evaluation installation script.
Self-Evaluation guide: https://docs.storageos.com/docs/self-eval
   This deployment is suitable for testing purposes only.

Checking requirements:
  Checking Kubectl.......................................OK
  Checking node count (minimum 3)........................OK (3)
  Checking for exiting STORAGEOS cluster.................NO

The script will deploy a STORAGEOS cluster: 
  STORAGEOS cluster named self-evaluation.
  STORAGEOS version v2.4.0-rc.1 into namespace kube-system.
    /!\ v2.4.0-rc.1: Release Candidate are not intended for production deployment.
  etcd into namespace storageos-etcd.
The installation process will stop on any encountered error.

Proceed with these settings? (y/n) n

Usage: ./deploy-storageos-cluster.sh [OPTION]...
Install a STORAGEOS Self-Evaluation cluster on Kubernetes.

  -c       STORAGEOS cluser name.
  -v       STORAGEOS version to deploy.
           Check https://github.com/storageos/cluster-operator/releases

Eg: ./deploy-storageos-cluster.sh -c demo-cluster -v v2.4.0-rc.1
    curl -fsSL https://storageos.run | bash -s -- -c demo-cluster -v v2.4.0-rc.1

Issues: https://github.com/storageos/storageos.github.io

If no variables:

curl -fsSL https://raw.githubusercontent.com/rovandep/storageos.github.io/rom-storageos.run/sh/deploy-storageos-cluster.sh |bash 

Welcome to the STORAGEOS self-evaluation installation script.
Self-Evaluation guide: https://docs.storageos.com/docs/self-eval
   This deployment is suitable for testing purposes only.

Checking requirements:
  Checking Kubectl.......................................OK
  Checking node count (minimum 3)........................OK (3)
  Checking for exiting STORAGEOS cluster.................NO

The script will deploy a STORAGEOS cluster: 
  STORAGEOS cluster named self-evaluation.
  STORAGEOS version v2.4.0-rc.1 into namespace kube-system.
    /!\ v2.4.0-rc.1: Release Candidate are not intended for production deployment.
  etcd into namespace storageos-etcd.
The installation process will stop on any encountered error.

Proceed with these settings? (y/n) y
Starting STORAGEOS deployment:
  Is it OpenShift?.......................................NO
  Creating etcd namespace................................OK (storageos-etcd)
  Creating etcd ClusterRoleBinding.......................OK
  Creating etcd ClusterRole..............................OK
  Creating etcd operator deployment......................OK
    Waiting on etcd operator to be running...............OK
  Creating etcd cluster..................................OK
  Creation STORAGEOS operator deployment.................OK (v2.4.0-rc.1)
    Waiting on STORAGEOS operator to be running..........OK
  Creating STORAGEOS API secret..........................OK
  Creating STORAGEOS cluster.............................OK (kube-system)
    Waiting on STORAGEOS pods to be running..............OK
  Deploying STORAGEOS CLI as a pod.......................OK
    Waiting on STORAGEOS CLI pod to be running...........OK

Your STORAGEOS Cluster now is up and running!

Now would be a good time to deploy your first volume - see
   https://docs.storageos.com/docs/self-eval/#a-namestorageosvolumeaprovision-a-storageos-volume
for an example of how to mount a StorageOS volume in a pod

Get your Free Forever Developer license - see
   https://docs.storageos.com/docs/operations/licensing/
A cluster can run unlicensed for 24 hours. Normal functioning of the cluster
can be unlocked by applying for a Free Forever Developer licence.

This cluster has been set up with an etcd based on ephemeral
storage. It is suitable for evaluation purposes only - for
production usage please see our etcd installation nodes at
   https://docs.storageos.com/docs/prerequisites/etcd/

with variables:

curl -fsSL https://raw.githubusercontent.com/rovandep/storageos.github.io/rom-storageos.run/sh/deploy-storageos-cluster.sh |bash -s -- -c demo-cluster -v v2.3.3Welcome to the STORAGEOS self-evaluation installation script.
Self-Evaluation guide: https://docs.storageos.com/docs/self-eval
   This deployment is suitable for testing purposes only.

Checking requirements:
  Checking Kubectl.......................................OK
  Checking node count (minimum 3)........................OK (3)
  Checking for exiting STORAGEOS cluster.................NO

The script will deploy a STORAGEOS cluster: 
  STORAGEOS cluster named demo-cluster.
  STORAGEOS version v2.3.3 into namespace kube-system.
  etcd into namespace storageos-etcd.
The installation process will stop on any encountered error.

Proceed with these settings? (y/n) y
Starting STORAGEOS deployment:
  Is it OpenShift?.......................................NO
  Creating etcd namespace................................OK (storageos-etcd)
  Creating etcd ClusterRoleBinding.......................OK
  Creating etcd ClusterRole..............................OK
  Creating etcd operator deployment......................OK
    Waiting on etcd operator to be running...............OK
  Creating etcd cluster..................................OK
  Creation STORAGEOS operator deployment.................OK (v2.3.3)
    Waiting on STORAGEOS operator to be running..........OK
  Creating STORAGEOS API secret..........................OK
  Creating STORAGEOS cluster.............................OK (kube-system)
    Waiting on STORAGEOS pods to be running..............OK
  Deploying STORAGEOS CLI as a pod.......................OK
    Waiting on STORAGEOS CLI pod to be running...........OK

Your STORAGEOS Cluster now is up and running!

Now would be a good time to deploy your first volume - see
   https://docs.storageos.com/docs/self-eval/#a-namestorageosvolumeaprovision-a-storageos-volume
for an example of how to mount a StorageOS volume in a pod

Get your Free Forever Developer license - see
   https://docs.storageos.com/docs/operations/licensing/
A cluster can run unlicensed for 24 hours. Normal functioning of the cluster
can be unlocked by applying for a Free Forever Developer licence.

This cluster has been set up with an etcd based on ephemeral
storage. It is suitable for evaluation purposes only - for
production usage please see our etcd installation nodes at
   https://docs.storageos.com/docs/prerequisites/etcd/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant