This section helps you integrate StackPoint with OpenEBS. It is possible to integrate StackPoint with OpenEBS in all major platforms such as AWS, Google Cloud (GKE & GCE), Azure, and Digital Ocean. Detailed procedure for installing OpenEBS using StackPoint in AWS is explained below.
- An AWS account.
- Ubuntu machine to run awscli.
Creating a User in AWS
To create a user in AWS, use the following procedure.
- Open AWS Management Console.
- Select the option IAM (Identity and Access Management) under the services category Security, Identity & Compliance.
- Select Users on the left pane in the dashboard.
- Click Add user. Provide a username, for example, devops.
- Select Access type as Programmatic access and click Next:Permissions.
- Select Attach existing policies directly as permission.
- Select the policy IAMFullAccess from the policies list. Type IAMFullAccess in the search box and select the policy.
- Click Next:review and click Create User.
A user will be created as seen in the following image. Note down the user's Access Key ID and Secret access key.
Now, the user account is created in AWS and you can go to stackpoint.io for creating cluster and installing OpenEBS.
Note: If you have already created a k8s cluster using stackpoint, you can Import OpenEBS Helm Charts.
Configure K8s Cluster
Go to Your Clusters section in stackpoint.io and click Add a Cluster now. Select AWS and the Cloud provider. Go to next page.
Add your AWS credentials such as Access Key ID and Secret Access Key and click Create. You can then edit your Node configuration details. The recommended configuration is One Master Node and 3 Worker Nodes.
Click Distribution and choose Ubuntu16.04 LTS.
Click on Submit to create your cluster. This should take around 5–8 minutes to bring up one Master and three Worker Kubernetes Cluster.
Select Solutions tab on the top of the screen. Select Trusted charts and OpenEBS from Trusted charts and then select Import Charts from the top pane.
Add the chart repo with the following details:
— name : openebs-charts
— type : packaged-charts
— Packaged Charts URL : https://openebs.github.io/charts/
Click Review Repository.
Ensure Access Verified displays OK and click Save Repository to finish adding the chart repo.
Adding OpenEBS to your Kubernetes Cluster
First, ensure that your cluster and all nodes are running.
On the Control Plane tab from stackpoint.io, click on your cluster name.
Once the Kubernetes cluster is running on AWS with Helm, click the Solutions tab and Add Solution.
Next,click My charts. Select openebs.
Edit the below value and Click on Install to deploy OpenEBS into your cluster.
- namespace : default
State field should be green after OpenEBS is successfully added.
Your cluster is ready. You can now install OpenEBS storage class templates on this kubernetes cluster using the following command.
kubectl apply -f https://raw.githubusercontent.com/openebs/openebs/master/k8s/openebs-storageclasses.yaml
The above command deploys storage class templates. You can run your workloads with openebs-standard storage class if you are using default storage class.
To confirm, click K8s Dashboard. This will bring up your Kubernetes Dashboard UI in a new window. You should be able to find the openebs-standard option under StorageClasses.