- Hub cluster: https://184.172.241.13:8443/multicloud/overview
- AWS cluster: https://icp-e526-console-62d49fd43e0570d3.elb.eu-west-2.amazonaws.com:8443
- Deploy mynw-app chart to Hubcluster from the ICP catalogue or via CLI:
$ helm install <chart name>-<version number>.tgz --name <release name> --tls
- Show application view: https://184.172.241.11:8443/hcmconsole/applications/default/mynw-app/topology
- Ping ingresses on hubcluster:
- Ping ingresses on awscluster:
- Show application via mobile front end (running it on xcode locally)
- Get placement policy:
kubectl get pp
- Edit placement policy to scale replicas and change cluster selector:
$ kubectl edit pp <placement_policy_name>
- Get AWS token to access docker registry:
- Login to AWS account: 038180458258
- Go to users admin page: https://console.aws.amazon.com/iam/home?region=eu-west-1#/users
- Click on name > Security Credentials > Create access key
- Type
aws configure
in terminal and use the following values:- Fill out key and secret from the above step
Default region
=eu-west-1
- Leave all other options as default (just press enter)
- Type
aws --region eu-west-1 ecr get-login --no-include-email
to attain login token
- In both clusters, create the following 3 secrets to pull docker images from the AWS Docker registry:
$ kubectl create secret docker-registry regsecret-chatbot --docker-server=038180458258.dkr.ecr.eu-west-1.amazonaws.com/chatbot --docker-username=AWS --docker-password=<AWS token> --docker-email=test@mail.com -n default
$ kubectl create secret docker-registry regsecret-creds --docker-server=038180458258.dkr.ecr.eu-west-1.amazonaws.com/creds --docker-username=AWS --docker-password=<AWS token> --docker-email=test@mail.com -n default
$ kubectl create secret docker-registry regsecret --docker-server=038180458258.dkr.ecr.eu-west-1.amazonaws.com/monitoring --docker-username=AWS --docker-password=<AWS token> --docker-email=test@mail.com -n default
Note: secrets expire every 12 hours.
- Change AWS cluster prefix by editing the
name: AWSIPSTART
value inmynw-chatbot/template/bot-deployment.yaml
file. Use the first two octects of the AWS IP address where ICP is running. - Package components via
helm package
and upload them to this git repository - Point deployable files to the charts in this github repository
- Update version number
- Package application:
helm package mynw-app
- Upload chart to ICP hubcluster:
$ cloudctl catalog load-chart --archive <chart name>-<version number>.tgz
- Deploy via ICP catalogue or CLI