Skip to content

ClaudioTag/mcmdemo

Repository files navigation

Nationwide MCM PoC - Phase 2: myNationwide

Clusters

How to demo

  • Deploy mynw-app chart to Hubcluster from the ICP catalogue or via CLI:
$ helm install <chart name>-<version number>.tgz --name <release name> --tls
$ kubectl edit pp <placement_policy_name>

How to build and deploy applications

  • 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 in mynw-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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •