storageos / storageos.github.io

Public documentation for StorageOS, persistent storage for Docker and Kubernetes
https://docs.storageos.com
16 stars 17 forks source link

update deploy-storageos-cluster.sh #292

Open romdalf opened 3 years ago

romdalf commented 3 years ago

Modify the script to:

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/