SlideShare a Scribd company logo
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

More Related Content

What's hot

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
 
Compute node HA - current upstream development
Compute node HA - current upstream developmentCompute node HA - current upstream development
Compute node HA - current upstream development
Adam Spiers
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
CJ Cullen
 
Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28Introduction openstack-meetup-nov-28
Introduction openstack-meetup-nov-28
Sadique Puthen
 
Helm @ Orchestructure
Helm @ OrchestructureHelm @ Orchestructure
Helm @ Orchestructure
Matthew Farina
 
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
Matthew Farina
 
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 ...
Roberto Hashioka
 
Kubernetes Node Deep Dive
Kubernetes Node Deep DiveKubernetes Node Deep Dive
Kubernetes Node Deep Dive
Lei (Harry) Zhang
 
OpenShift Overview
OpenShift OverviewOpenShift Overview
OpenShift Overview
roundman
 
Docker and kubernetes
Docker and kubernetesDocker and kubernetes
Docker and kubernetes
Dongwon Kim
 
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
Sławomir Kapłoński
 
Dockerizing OpenStack for High Availability
Dockerizing OpenStack for High AvailabilityDockerizing OpenStack for High Availability
Dockerizing OpenStack for High Availability
Daniel Krook
 
Docker for PHP Developers - Jetbrains
Docker for PHP Developers - JetbrainsDocker for PHP Developers - Jetbrains
Docker for PHP Developers - Jetbrains
Chris Tankersley
 
Helm intro
Helm introHelm 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)
OpenStack Korea Community
 
Load Balancing 101
Load Balancing 101Load Balancing 101
Load Balancing 101
HungWei Chiu
 
fabric8 ... and Docker, Kubernetes & OpenShift
fabric8 ... and Docker, Kubernetes & OpenShiftfabric8 ... and Docker, Kubernetes & OpenShift
fabric8 ... and Docker, Kubernetes & OpenShift
roland.huss
 
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
Mike Dorman
 
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
 
Compute 101 - OpenStack Summit Vancouver 2015
Compute 101 - OpenStack Summit Vancouver 2015Compute 101 - OpenStack Summit Vancouver 2015
Compute 101 - OpenStack Summit Vancouver 2015
Stephen Gordon
 

What's hot (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
 

Similar to Integrate Openshift with Cloudforms

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
ssuser9e06a61
 
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
 
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
João Esperancinha
 
OpenShift 4 installation
OpenShift 4 installationOpenShift 4 installation
OpenShift 4 installation
Robert Bohne
 
Openshift cheat rhce_r3v1 rhce
Openshift cheat rhce_r3v1 rhceOpenshift cheat rhce_r3v1 rhce
Openshift cheat rhce_r3v1 rhce
Darnette A
 
Red Hat Forum Benelux 2015
Red Hat Forum Benelux 2015Red Hat Forum Benelux 2015
Red Hat Forum Benelux 2015
Microsoft
 
Hawkular overview
Hawkular overviewHawkular overview
Hawkular overview
Ted Won
 
Hawkular overview
Hawkular overviewHawkular overview
Hawkular overview
jbugkorea
 
Introduction to IBM Bluemix
Introduction to IBM BluemixIntroduction to IBM Bluemix
Introduction to IBM Bluemix
craftworkz
 
Microservices in Java
Microservices in JavaMicroservices in Java
Microservices in Java
Anatole Tresch
 
Fiware cloud developers week brussels
Fiware cloud developers week brusselsFiware cloud developers week brussels
Fiware cloud developers week brussels
Fernando Lopez Aguilar
 
Cloud foundry
Cloud foundryCloud foundry
Cloud foundry
Isuru Perera
 
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
Fernando Lopez Aguilar
 
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 webminarHenar Muñoz Frutos
 
Docker Basic to Advance
Docker Basic to AdvanceDocker Basic to Advance
Docker Basic to Advance
Paras Jain
 
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
Patrick Chanezon
 
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
Lakmal Warusawithana
 
Deploying WSO2 Middleware on Containers
Deploying WSO2 Middleware on ContainersDeploying WSO2 Middleware on Containers
Deploying WSO2 Middleware on Containers
Imesh Gunaratne
 
Inithub.org presentation
Inithub.org presentationInithub.org presentation
Inithub.org presentation
Aaron Welch
 
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
die.agilen GmbH
 

Similar to 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
 

Recently uploaded

Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
Fwdays
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 

Recently uploaded (20)

Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 

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