...
Packaging AWS GGC Public Cloud Edge (PCE) Application
Prepare Edge Cluster and Download AWS GGC Docker Image
Perform the following tasks on the edge_k8s-2 VM/Cluster. For the purposes of this guide, a local Docker registry is deployed on the edge cluster. Any other registry can be used.
Code Block | ||
---|---|---|
| ||
# SSH to the EMCO Cluster (use the ssh key is ssh-ing from you laptop:
ssh -i ~/.ssh/pcei-emco onaplab@10.121.7.146
## Install AWS CLI on EMCO cluster
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
## Configure AWS auth - supply Access Key and Secret Access Key:
aws configure
Access Key ID:
XXXXXXX
Secret Access Key:
YYYYYYY
## Pull GGC docker image from AWS ACR
awspass=`sudo aws ecr get-login-password --region us-west-2`
sudo docker login --username AWS --password $awspass https://216483018798.dkr.ecr.us-west-2.amazonaws.com
sudo docker pull 216483018798.dkr.ecr.us-west-2.amazonaws.com/aws-iot-greengrass:latest
### Start local docker repo on worker cluster
sudo docker run -d -p 5000:5000 --restart=always --name registry registry:2
## Tag AWS GGC docker image
sudo docker tag 216483018798.dkr.ecr.us-west-2.amazonaws.com/aws-iot-greengrass localhost:5000/aws-iot-greengrass
## Push AWS GGC docker image to local registry
sudo docker push localhost:5000/aws-iot-greengrass
|
Prepare and Package AWS GGC Helm Charts
Defining AWS GGC Service in PCEI
...