SlideShare ist ein Scribd-Unternehmen logo
1 von 23
Downloaden Sie, um offline zu lesen
INTEGRATE OPENSHIFT WITH
CLOUDFORMS 4
Technical presentation
Michael Lessard
Senior Solutions Architect
February 2016
Cloudforms 4 :: Openshift 3
Agenda
2
● Demonstration
● Install and configure Cloudforms 4
○ Add Openshift 3.1 as a container provider
● Getting the metrics in Cloudforms
○ Configure Hawkular (Openshift doc way)
○ Modify the Hawkular config
LET’S START WITH THE DEMO
Cloudforms 4 :: Openshift 3
My Openshift setup
4
● Openshift domain : os3.mlc.dom
● Openshift app domain : app.os3.mlc.dom
Cloudforms 4 :: Openshift 3
Requirements
5
● Virtual machine, 40Gig of space, 4 Gig of ram
● Openshift 3.1.1 installed
● Cloudforms 4 image downloaded (cfme-rhos-5.5.2.4-1.x86_64.
qcow2)
Cloudforms 4 :: Openshift 3
CONFIGURE CLOUDFORMS 4
Cloudforms 4 :: Openshift 3
Configure Cloudforms 4 - Part 1
8
1. Launch a new vm, use an existing image (4 gig of RAM is sufficient)
2. Login as root:smartvm
3. Configure the cloudforms appliance (# appliance_console)
a. assign an ip and hostname
b. Configure timezone
c. configure the database, do not need to use an external partition
4. Connect to the web interface. Username : admin, passwd : smartvm
5. Configure - Configuration, activate all roles except database synchro
and RHN mirror + configure the timezone (again)
6. Reboot the appliance
Cloudforms 4 :: Openshift 3
Configure Cloudforms 4 - Part 2
Add Openshift as a container provider
ON YOUR OPENSHIFT VM, RETRIEVE AN ADMIN KEY
# oc login -u system:admin -n default
# oc get -n management-infra sa/management-admin --template='{{range .
secrets}}{{printf "%sn" .name}}{{end}}'
management-admin-token-2g4iv
management-admin-dockercfg-02kl4
management-admin-token-5xqyo
# oc get -n management-infra secrets management-admin-token-2g4iv --
template='{{.data.token}}' | base64 -d > key.txt
9
Copy the key
https://access.redhat.com/documentation/en/red-hat-cloudforms/version-4.0
/managing-providers/#configuring_service_accounts
Cloudforms 4 :: Openshift 3
Configure Cloudforms 4 - Part 3
10
1. Login into the CF4 interface
2. Containers - Provider - Configuration - Add New containers provider
3. Put a name and select in type Openshift
4. Put the hostname and port 8443
5. Past the key then click validate
6. Et voilà :)
Add Openshift as a container provider
Cloudforms 4 :: Openshift 3
GETTING THE METRICS IN
CLOUDFORMS 4
CONFIGURE HAWKULAR PART 1
(Openshift doc way)
Cloudforms 4 :: Openshift 3
Configure Hawkular - Part 1
Create the service account
# oc project openshift-infra (should be there by default)
# oc create -f - <<API
apiVersion: v1
kind: ServiceAccount
metadata:
name: metrics-deployer
secrets:
- name: metrics-deployer
API
14
Cloudforms 4 :: Openshift 3
Configure Hawkular - Part 2
ADD ROLES TO SOME SERVICE ACCOUNT
# oadm policy add-role-to-user edit system:serviceaccount:openshift-infra:
metrics-deployer
# oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount:
openshift-infra:heapster
CREATES A SUPER SECURE SECRET
# oc secrets new metrics-deployer nothing=/dev/null
COPY THE TEMPLATE
# cp /usr/share/ansible/openshift-
ansible/roles/openshift_examples/files/examples/v1.1/infrastructure-
templates/enterprise/metrics-deployer.yaml /root/metrics.yaml
15
Cloudforms 4 :: Openshift 3
Configure Hawkular - Part 3
# cd /root/
# oc process -f metrics.yaml -v 
HAWKULAR_METRICS_HOSTNAME=metrics.app.os3.mlc.dom,USE_PERSISTENT_STORAGE=false,
IMAGE_PREFIX=openshift3/,IMAGE_VERSION=latest 
| oc create -f -
*** a reboot might be required … and wait … oc get pods is your friend
# vi /etc/origin/master/master-config.yaml
assetConfig:
.....
metricsPublicURL: https://metrics.app.os3.mlc.dom/hawkular/metrics
# systemctl restart atomic-openshift-master
16
Using a webbrowser, validate that Hawkular is started
Cloudforms 4 :: Openshift 3
Cloudforms 4 :: Openshift 3
MODIFY HAWKULAR CONFIGURATION
TO MAKE IT WORKS WITH CF4
Cloudforms 4 :: Openshift 3
Router for CF - map port 5000
At the moment a limitation in CloudForms Management Engine is assuming that the provider
Hostname is used also to collect the metrics.
Create an openshift router to give access to the metric information for
Cloudforms
# oadm router management-metrics -n default --
credentials=/etc/origin/master/openshift-router.kubeconfig --service-
account=router --ports='443:5000' --selector='kubernetes.
io/hostname=os3.mlc.dom' --stats-port=1937 --host-network=false
20
Cloudforms 4 :: Openshift 3
Modify the route config + OS3 config
# oc project openshift-infra
# oc edit route
hosts: os3.mlc.dom
# vi /etc/origin/master/master-config.yaml
assetConfig:
.....
masterPublicURL: https://os3.mlc.dom:8443
metricsPublicURL: https://os3.mlc.dom:5000/hawkular/metrics
# systemctl restart atomic-openshift-master
21
Cloudforms 4 :: Openshift 3
Cloudforms 4 :: Openshift 3

Weitere ähnliche Inhalte

Was ist angesagt?

Comparison of control plane deployment architectures in the scope of hypercon...
Comparison of control plane deployment architectures in the scope of hypercon...Comparison of control plane deployment architectures in the scope of hypercon...
Comparison of control plane deployment architectures in the scope of hypercon...
Miroslav Halas
 
OpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph Galuschka
OpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph GaluschkaOpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph Galuschka
OpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph Galuschka
NETWAYS
 

Was ist angesagt? (20)

Comparison of control plane deployment architectures in the scope of hypercon...
Comparison of control plane deployment architectures in the scope of hypercon...Comparison of control plane deployment architectures in the scope of hypercon...
Comparison of control plane deployment architectures in the scope of hypercon...
 
Compute node HA - current upstream development
Compute node HA - current upstream developmentCompute node HA - current upstream development
Compute node HA - current upstream development
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 
Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28
 
Helm @ Orchestructure
Helm @ OrchestructureHelm @ Orchestructure
Helm @ Orchestructure
 
How Helm, The Package Manager For Kubernetes, Works
How Helm, The Package Manager For Kubernetes, WorksHow Helm, The Package Manager For Kubernetes, Works
How Helm, The Package Manager For Kubernetes, Works
 
Real-Time Data Processing Pipeline & Visualization with Docker, Spark, Kafka ...
Real-Time Data Processing Pipeline & Visualization with Docker, Spark, Kafka ...Real-Time Data Processing Pipeline & Visualization with Docker, Spark, Kafka ...
Real-Time Data Processing Pipeline & Visualization with Docker, Spark, Kafka ...
 
Kubernetes Node Deep Dive
Kubernetes Node Deep DiveKubernetes Node Deep Dive
Kubernetes Node Deep Dive
 
OpenShift Overview
OpenShift OverviewOpenShift Overview
OpenShift Overview
 
Docker and kubernetes
Docker and kubernetesDocker and kubernetes
Docker and kubernetes
 
How to integrate_custom_openstack_services_with_devstack
How to integrate_custom_openstack_services_with_devstackHow to integrate_custom_openstack_services_with_devstack
How to integrate_custom_openstack_services_with_devstack
 
Dockerizing OpenStack for High Availability
Dockerizing OpenStack for High AvailabilityDockerizing OpenStack for High Availability
Dockerizing OpenStack for High Availability
 
Docker for PHP Developers - Jetbrains
Docker for PHP Developers - JetbrainsDocker for PHP Developers - Jetbrains
Docker for PHP Developers - Jetbrains
 
Helm intro
Helm introHelm intro
Helm intro
 
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
[2018.10.19] 김용기 부장 - IAC on OpenStack (feat. ansible)
 
Load Balancing 101
Load Balancing 101Load Balancing 101
Load Balancing 101
 
fabric8 ... and Docker, Kubernetes & OpenShift
fabric8 ... and Docker, Kubernetes & OpenShiftfabric8 ... and Docker, Kubernetes & OpenShift
fabric8 ... and Docker, Kubernetes & OpenShift
 
Moving to Nova Cells without Destroying the World
Moving to Nova Cells without Destroying the WorldMoving to Nova Cells without Destroying the World
Moving to Nova Cells without Destroying the World
 
OpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph Galuschka
OpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph GaluschkaOpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph Galuschka
OpenNebula Conf 2014: CentOS, QA an OpenNebula - Christoph Galuschka
 
Compute 101 - OpenStack Summit Vancouver 2015
Compute 101 - OpenStack Summit Vancouver 2015Compute 101 - OpenStack Summit Vancouver 2015
Compute 101 - OpenStack Summit Vancouver 2015
 

Ähnlich wie Integrate Openshift with Cloudforms

What_s_New_in_OpenShift_Container_Platform_4.6.pdf
What_s_New_in_OpenShift_Container_Platform_4.6.pdfWhat_s_New_in_OpenShift_Container_Platform_4.6.pdf
What_s_New_in_OpenShift_Container_Platform_4.6.pdf
chalermpany
 
Setting up your virtual infrastructure using fi lab cloud webminar
Setting up your virtual infrastructure using fi lab cloud webminarSetting up your virtual infrastructure using fi lab cloud webminar
Setting up your virtual infrastructure using fi lab cloud webminar
Henar Muñoz Frutos
 

Ähnlich wie Integrate Openshift with Cloudforms (20)

OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdfOpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
OpenShift_Installation_Deep_Dive_Robert_Bohne.pdf
 
What_s_New_in_OpenShift_Container_Platform_4.6.pdf
What_s_New_in_OpenShift_Container_Platform_4.6.pdfWhat_s_New_in_OpenShift_Container_Platform_4.6.pdf
What_s_New_in_OpenShift_Container_Platform_4.6.pdf
 
Kuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorialKuma Meshes Part I - The basics - A tutorial
Kuma Meshes Part I - The basics - A tutorial
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installation
 
Openshift cheat rhce_r3v1 rhce
Openshift cheat rhce_r3v1 rhceOpenshift cheat rhce_r3v1 rhce
Openshift cheat rhce_r3v1 rhce
 
Red Hat Forum Benelux 2015
Red Hat Forum Benelux 2015Red Hat Forum Benelux 2015
Red Hat Forum Benelux 2015
 
Hawkular overview
Hawkular overviewHawkular overview
Hawkular overview
 
Hawkular overview
Hawkular overviewHawkular overview
Hawkular overview
 
Introduction to IBM Bluemix
Introduction to IBM BluemixIntroduction to IBM Bluemix
Introduction to IBM Bluemix
 
Microservices in Java
Microservices in JavaMicroservices in Java
Microservices in Java
 
Fiware cloud developers week brussels
Fiware cloud developers week brusselsFiware cloud developers week brussels
Fiware cloud developers week brussels
 
Cloud foundry
Cloud foundryCloud foundry
Cloud foundry
 
Setting up your virtual infrastructure using fi-lab cloud
Setting up your virtual infrastructure using fi-lab cloudSetting up your virtual infrastructure using fi-lab cloud
Setting up your virtual infrastructure using fi-lab cloud
 
Setting up your virtual infrastructure using fi lab cloud webminar
Setting up your virtual infrastructure using fi lab cloud webminarSetting up your virtual infrastructure using fi lab cloud webminar
Setting up your virtual infrastructure using fi lab cloud webminar
 
Docker Basic to Advance
Docker Basic to AdvanceDocker Basic to Advance
Docker Basic to Advance
 
What's New in Docker - February 2017
What's New in Docker - February 2017What's New in Docker - February 2017
What's New in Docker - February 2017
 
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on ContainersWSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
WSO2ConEU 2016 Tutorial - Deploying WSO2 Middleware on Containers
 
Deploying WSO2 Middleware on Containers
Deploying WSO2 Middleware on ContainersDeploying WSO2 Middleware on Containers
Deploying WSO2 Middleware on Containers
 
Inithub.org presentation
Inithub.org presentationInithub.org presentation
Inithub.org presentation
 
TYPO3 Flow 2.0 in the field - webtech Conference 2013
TYPO3 Flow 2.0 in the field - webtech Conference 2013TYPO3 Flow 2.0 in the field - webtech Conference 2013
TYPO3 Flow 2.0 in the field - webtech Conference 2013
 

Kürzlich hochgeladen

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 

Integrate Openshift with Cloudforms

  • 1. INTEGRATE OPENSHIFT WITH CLOUDFORMS 4 Technical presentation Michael Lessard Senior Solutions Architect February 2016
  • 2. Cloudforms 4 :: Openshift 3 Agenda 2 ● Demonstration ● Install and configure Cloudforms 4 ○ Add Openshift 3.1 as a container provider ● Getting the metrics in Cloudforms ○ Configure Hawkular (Openshift doc way) ○ Modify the Hawkular config
  • 4. Cloudforms 4 :: Openshift 3 My Openshift setup 4 ● Openshift domain : os3.mlc.dom ● Openshift app domain : app.os3.mlc.dom
  • 5. Cloudforms 4 :: Openshift 3 Requirements 5 ● Virtual machine, 40Gig of space, 4 Gig of ram ● Openshift 3.1.1 installed ● Cloudforms 4 image downloaded (cfme-rhos-5.5.2.4-1.x86_64. qcow2)
  • 6. Cloudforms 4 :: Openshift 3
  • 8. Cloudforms 4 :: Openshift 3 Configure Cloudforms 4 - Part 1 8 1. Launch a new vm, use an existing image (4 gig of RAM is sufficient) 2. Login as root:smartvm 3. Configure the cloudforms appliance (# appliance_console) a. assign an ip and hostname b. Configure timezone c. configure the database, do not need to use an external partition 4. Connect to the web interface. Username : admin, passwd : smartvm 5. Configure - Configuration, activate all roles except database synchro and RHN mirror + configure the timezone (again) 6. Reboot the appliance
  • 9. Cloudforms 4 :: Openshift 3 Configure Cloudforms 4 - Part 2 Add Openshift as a container provider ON YOUR OPENSHIFT VM, RETRIEVE AN ADMIN KEY # oc login -u system:admin -n default # oc get -n management-infra sa/management-admin --template='{{range . secrets}}{{printf "%sn" .name}}{{end}}' management-admin-token-2g4iv management-admin-dockercfg-02kl4 management-admin-token-5xqyo # oc get -n management-infra secrets management-admin-token-2g4iv -- template='{{.data.token}}' | base64 -d > key.txt 9 Copy the key https://access.redhat.com/documentation/en/red-hat-cloudforms/version-4.0 /managing-providers/#configuring_service_accounts
  • 10. Cloudforms 4 :: Openshift 3 Configure Cloudforms 4 - Part 3 10 1. Login into the CF4 interface 2. Containers - Provider - Configuration - Add New containers provider 3. Put a name and select in type Openshift 4. Put the hostname and port 8443 5. Past the key then click validate 6. Et voilà :) Add Openshift as a container provider
  • 11. Cloudforms 4 :: Openshift 3
  • 12. GETTING THE METRICS IN CLOUDFORMS 4
  • 13. CONFIGURE HAWKULAR PART 1 (Openshift doc way)
  • 14. Cloudforms 4 :: Openshift 3 Configure Hawkular - Part 1 Create the service account # oc project openshift-infra (should be there by default) # oc create -f - <<API apiVersion: v1 kind: ServiceAccount metadata: name: metrics-deployer secrets: - name: metrics-deployer API 14
  • 15. Cloudforms 4 :: Openshift 3 Configure Hawkular - Part 2 ADD ROLES TO SOME SERVICE ACCOUNT # oadm policy add-role-to-user edit system:serviceaccount:openshift-infra: metrics-deployer # oadm policy add-cluster-role-to-user cluster-reader system:serviceaccount: openshift-infra:heapster CREATES A SUPER SECURE SECRET # oc secrets new metrics-deployer nothing=/dev/null COPY THE TEMPLATE # cp /usr/share/ansible/openshift- ansible/roles/openshift_examples/files/examples/v1.1/infrastructure- templates/enterprise/metrics-deployer.yaml /root/metrics.yaml 15
  • 16. Cloudforms 4 :: Openshift 3 Configure Hawkular - Part 3 # cd /root/ # oc process -f metrics.yaml -v HAWKULAR_METRICS_HOSTNAME=metrics.app.os3.mlc.dom,USE_PERSISTENT_STORAGE=false, IMAGE_PREFIX=openshift3/,IMAGE_VERSION=latest | oc create -f - *** a reboot might be required … and wait … oc get pods is your friend # vi /etc/origin/master/master-config.yaml assetConfig: ..... metricsPublicURL: https://metrics.app.os3.mlc.dom/hawkular/metrics # systemctl restart atomic-openshift-master 16 Using a webbrowser, validate that Hawkular is started
  • 17. Cloudforms 4 :: Openshift 3
  • 18. Cloudforms 4 :: Openshift 3
  • 19. MODIFY HAWKULAR CONFIGURATION TO MAKE IT WORKS WITH CF4
  • 20. Cloudforms 4 :: Openshift 3 Router for CF - map port 5000 At the moment a limitation in CloudForms Management Engine is assuming that the provider Hostname is used also to collect the metrics. Create an openshift router to give access to the metric information for Cloudforms # oadm router management-metrics -n default -- credentials=/etc/origin/master/openshift-router.kubeconfig --service- account=router --ports='443:5000' --selector='kubernetes. io/hostname=os3.mlc.dom' --stats-port=1937 --host-network=false 20
  • 21. Cloudforms 4 :: Openshift 3 Modify the route config + OS3 config # oc project openshift-infra # oc edit route hosts: os3.mlc.dom # vi /etc/origin/master/master-config.yaml assetConfig: ..... masterPublicURL: https://os3.mlc.dom:8443 metricsPublicURL: https://os3.mlc.dom:5000/hawkular/metrics # systemctl restart atomic-openshift-master 21
  • 22. Cloudforms 4 :: Openshift 3
  • 23. Cloudforms 4 :: Openshift 3