8000 GitHub - pirsoscom/cp4mcm_install
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pirsoscom/cp4mcm_install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Script for IBM Cloud Pack for Multicloud Management 2.0 on OCP 4.3 IBM ROKS

Preparing for installation

1) Prerequisites

You need the following installed and running:

  • Docker
  • kubectl (with kubernetes context set to the Cluster where you want to install)
  • oc
  • helm (the helm2 command line tool) - Helm 3 won't work!
  • cloudctl

2) Adapt config file (01_config-modules.sh)

Select the components that you want to install.

3) Default Storage Class

You have to have a Default Storage Class defined (should be the case for IBM ROKS).

If not add the annotation to the class (typically ibmc-block-gold):

storageclass.kubernetes.io/is-default-class=true

Installing

1. Install CP4MCM Base

./10_install_cp4mcm.sh -t <MY_REGISTRY_TOKEN>

2. Register HUB Cluster manually

3. Install CP4MCM additional modules, relaunch

./10_install_cp4mcm.sh -t <MY_REGISTRY_TOKEN>

4. Register other clusters

You need at least one cluster with:

  • 	region: EU
    
  • 	environment: Prod
    
  1. Register Cluster

  2. Execute on each cluster

    kubectl create secret docker-registry pull-secret-hub --docker-username=ekey --docker-password=<MY ENTITLEMENT KEY> --docker-email=demo@ibm.com --docker-server=cp.icr.io -n multicluster-endpoint
  3. Add cluster namespace to team

  4. Label each cluster with ibm.com/cloud-native-monitoring=enabled

  5. Check that all Applications have been deployed to the Prod Cluster

5. Monitoring

  1. Create DC

  2. Execute on each cluster

    kubectl -n cp4mcm-cloud-native-monitoring create secret generic ibm-agent-https-secret --from-file=./ibm-cloud-apm-dc-configpack/keyfiles/cert.pem --from-file=./ibm-cloud-apm-dc-configpack/keyfiles/ca.pem --from-file=./ibm-cloud-apm-dc-configpack/keyfiles/key.pem
    	
    kubectl create secret docker-registry pull-secret-hub --docker-username=ekey --docker-password=<MY ENTITLEMENT KEY> --docker-email=demo@ibm.com --docker-server=cp.icr.io -n cp4mcm-cloud-native-monitoring
  3. Create Teams

    • SRE Team1
    • SME Apps Team1
  4. Create Slack integration

  5. Create Baselines

    Kubernetes Pod:CPU Usage Millicores

  6. Create Resource Group

    • SRE Bookinfo: Productpage Service and Pod
    • SRE Kubetoy: kubetoy pod
  7. Create Runbook from ./DEMO/EXAMPLES/apm/runbook.md

  8. Create SLOs

    kubectl apply -f tools/apm/slo-synth-bookinfo.yaml	  	kubectl apply -f tools/apm/slo-synth-modresort.yaml
  9. Create Policies

    1. Event Policy KubeToy Resource Name contains kubetoy Assign Runbook

    2. Incident Policy KubeToy Resource Name contains kubetoy Priority 1 Add to Group SRE Team1 and Demo user

  10. Enable Instrumentation for Bookinfo

  tar -xf ibm-cloud-apm-dc-configpack.tar
  kubectl -n bookinfo create secret generic ibm-agent-https-secret --from-file=./ibm-cloud-apm-dc-configpack/keyfiles/cert.pem --from-file=./ibm-cloud-apm-dc-configpack/keyfiles/ca.pem --from-file=./ibm-cloud-apm-dc-configpack/keyfiles/key.pem

6. Infrastructure Management

  1. Register AWS, Google, ...

  2. Enable Data collection

    1. Configuration (cog upper right)
    2. CP4MCM:IM Region "Region 0 [0]" - C&U Collection / Switch on both
    3. Settings Server "EVM [1]" (current) - Switch on the three Capacity&Utilization XXX
    4. Switch on Embedded Ansible
  3. Import resources under ./DEMO/EXAMPLES/infrastructure-management

    1. ansible-repo.md
    2. Automation_Customization_ServiceDialog.yml
    3. Automation_Datastore.zip
    4. Policies_ALL.yaml
    5. Reports_Chargeback.yaml
  4. Schedule

    • Compliance for VM and Container
    • VM and Instance Analysis
  5. Schedule Reports

  6. Create Services

  7. Chargeback

    • Copy Rates
    • Assign Rates

7. Service Management

  1. Create connections

    • AWS: "EC2"
    • Google Cloud: "GoogleCloud"
  2. Import Services from ./DEMO/EXAMPLES/service-management

  3. Publish and make available by adding mcm-hub namespace

8. Additional

  1. Virtual MAchine Discovery
  kubectl apply -f ./tools/infra/VirtualMachineDiscover.yaml

  kubectl get VirtualMachine --all-namespaces

9. DEMO

On the PROD Cluster!

  1. Start Bookinfo load generator
  kubectl scale -n deployments/bookinfo-create-load --replicas=1	  
  1. Stop Bookinfo load generator
  kubectl scale -n deployments/bookinfo-create-load --replicas=0	  

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0