#
How to create an Angus environment
#
Preparing Kubernetes Cluster
If using Minikube follow these steps to expose the necessary components for external access:
- Start Minikube: If you didn't do it before:
minikube start
- Enable Ingress: Run the following command to enable the ingress addon in Minikube:
minikube addons enable ingress
- Retrieve Minikube’s IP Address: Check the cluster’s IP address using:
minikube ip
- Extend
/etc/hosts
file: Add this line to the end of it by using the previously obtained IP address (it may vary):plaintext192.168.49.2 angus-server.local angus-gateway.local
If using a remote cluster ensure that the Kubernetes cluster is accessible and that the necessary components are exposed for external access.
#
Registering as a New User
Before accessing Angus, you need to register and set up the command-line tools:
Create an Angus account: Visit the Angus Center Console: https://app.angusnext.io and register a new account.
Initialize Angusctl: Set up your environment:
angusctl init
Login: Log into Angus Center using your registered username and password:
angusctl center login
Register User and Organization: Add your user and organization information:
angusctl cluster register
#
Initializing the Cluster
Ensure your Kubernetes cluster is accessible and ready for Angus deployment.
- Verify Cluster Access: Confirm access with:
angusctl cluster info
- Cluster Initialization: Initialize the cluster:
angusctl cluster init
- Deploy Angus Integration: Follow the on-screen instructions to deploy the Angus integration components.
#
Creating and Running a New Chaincode Project
Once the setup is complete, you can create and deploy a new chaincode project.
- Create a Project: Use the following command to create a new chaincode project named example:
angusctl devstack create --name example
- Deploy Chaincode: Navigate to the project directory and deploy it using Skaffold:
cd example skaffold run
- Verify Deployment: Use
k9s
or any Kubernetes dashboard to monitor the deployment. The environment is ready when the Chaincode resource shows aReady
state. - Test the Setup: Check the health of your deployment with:
curl -s http://angus-gateway.local/maintenance/healthcheck -H "X-angus-userid: developer"