Skip to content

Instantly share code, notes, and snippets.

@rvanbutselaar
Last active October 10, 2018 09:55
Show Gist options
  • Save rvanbutselaar/5e40e5600ace737e33c1a51be8fba92e to your computer and use it in GitHub Desktop.
Save rvanbutselaar/5e40e5600ace737e33c1a51be8fba92e to your computer and use it in GitHub Desktop.
OpenShift
minishift start --vm-driver virtualbox
# Openshift Cockpit
Monitoring tool??
# Routing layer pluggable and extensible if hardware or non-OpenShift software router desired
Haproxy / F5 LB
# Image stream
Laag voor Docker registries, met triggers bij image wijzigingen voor automatische deployments.
# OpenShift Ansible broker (OAB)
Deploy container using Ansible templates
# Template Service Broker (TSB)
With MongoDB, PHP templates
# Demonstrate AB testing.
oc new-app --name='cotd' -l name='cotd' https://github.com/wkulhanek/cotd.git
oc new-app --name='cotd2' -l name='cotd2' https://github.com/wkulhanek/cotd.git -e SELECTOR=cities
oc set route-backends cotd cotd=50 cotd2=50
# Custom Deployment Strategy
# S2I Docker vs source vs custom build
Docker: Dockerfile from GIT
Source: Get application type from GIT, and starts build (index.php -> PHP7 image)
# Service Broker and Service Catalog
Catalogus met standaard applicaties / images zoals databases, php, etc.
# Open vSwitch, Ability to plug in third-party software-defined network (SDN) solutions
vxlan overlay network
# Route vs Router
Route is a defenition, www.example.com -> service -> pod(s). Router is Haproxy.
# Project vs namespace
A project is a Kubernetes namespace with additional annotations
# Create deployment templates
https://docs.openshift.com/enterprise/3.0/architecture/core_concepts/templates.html
# S2I base image
RHEL7 base image voor PHP, JAVA, etc. Waarbij alleen een GIT repo als source nodig is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment