| | |
| | | #+LaTeX_HEADER: \subsectionfont{\normalfont\itshape} |
| | | #+LATEX_HEADER: \renewcommand\maketitle{} |
| | | |
| | | * Deployment on OpenShift with images |
| | | * Deployment on OpenShift with images using Kubernetes Deployments |
| | | |
| | | #+BEGIN_SRC ditaa :file ocp-dep-image1.png :cmdline -r |
| | | oc new-app sample.registry.org/user/image:tag |
| | | | |
| | | | |
| | | | (1) +-------------+ points to +------------------------------------+ |
| | | +---> | ImageStream | -----------> | external Registry cRED {s} | |
| | | | | (IS) | | sample.registry.org/user/image:tag | |
| | | | +-------------+ +------------------------------------+ |
| | | | ^ |
| | | | | points to |
| | | | (2) +------------------+ (5) creates +-----------------------+ |
| | | +---> | Deployment | --------------------------------> | ReplicaSet | |
| | | | | | (4) | | |
| | | | | | -------------------+ +-----------------------+ |
| | | | +------------------+ creates | | |
| | | | | |scales & |
| | | | v |monitors |
| | | | (3) +---------+ load balances +----------------+ | |
| | | +---> | Service | --------------> | ApplicationPod | <-------------+ |
| | | | (SVC) | | | |
| | | +---------+ +----------------+ |
| | | #+END_SRC |
| | | |
| | | * Deployment on OpenShift with images using OpenShift DeploymentConfigs (dc) |
| | | |
| | | #+BEGIN_SRC ditaa :file ocp-dep-image2.png :cmdline -r |
| | | oc new-app sample.registry.org/user/image:tag |
| | | | |
| | | | |
| | |
| | | #+results: |
| | | [[file:ocp-dep-image1.png]] |
| | | |
| | | * Deployment on OpenShift with Source-to-Image (S2I) |
| | | * Deployment on OpenShift with Source-to-Image (S2I) using Kubernetes Deployments |
| | | |
| | | #+BEGIN_SRC ditaa :file ocp-dep-s2i1.png :cmdline -rE |
| | | oc new-app http://git.repo-server.org/sampleapp |
| | |
| | | step | |Trigger |
| | | | |watches IS |
| | | | (3) +------------------+ (11) creates +-----------------------+ |
| | | +---> | Deployment | --------------------------------> | ReplicaSet | |
| | | | | | (10) | | |
| | | | | | -------------------+ +-----------------------+ |
| | | | +------------------+ creates | | |
| | | | | |scales & |
| | | | v |monitors |
| | | | (4) +---------+ load balances +----------------+ | |
| | | +---> | Service | --------------> | ApplicationPod | <-------------+ |
| | | | (SVC) | | | |
| | | +---------+ +----------------+ |
| | | #+END_SRC |
| | | |
| | | |
| | | * Deployment on OpenShift with Source-to-Image (S2I) using DeploymentConfigs (dc) |
| | | |
| | | #+BEGIN_SRC ditaa :file ocp-dep-s2i2.png :cmdline -rE |
| | | oc new-app http://git.repo-server.org/sampleapp |
| | | | |
| | | | |
| | | | (1) +-------------+ points to +----------------------------+ +------------------------------------+ |
| | | +---> | ImageStream | -----------> | internal Registry cBLU {s} | | external Registry cRED {s} | |
| | | | | (IS) |<+ | sampleapp:latest | | sample.registry.org/ose/s2ibuilder | |
| | | | +-------------+ | +----------------------------+ +------------------------------------+ |
| | | | | ^ ^ |
| | | | | | (9) docker commits | points to |
| | | | | | | |
| | | | (2) +-------------+ |(5) creates +--------------+ (6) docker run +-----------------+ |
| | | +---> | BuildConfig | |-----------> | BuilderPod | ------------------> | S2I ImageStream | |
| | | | | (BC) | | | (8) assemble | | (IS) | |
| | | | +-------------+ | +--------------+ +-----------------+ |
| | | | | | | (7) git clone ^ |
| | | | +--=-----|----=-------------|---=----------------------------------+ |
| | | | ImageChange | | |
| | | | Trigger watches| v |
| | | | S2I IS | +--------------------------------------+ |
| | | | | | git Repository {s} | |
| | | build | | | http://git.repo-server.org/sampleapp | |
| | | step | : +--------------------------------------+ |
| | | -=-----|-=--------------------|--=------------------------------------------------------------------------------------- |
| | | deploy | |ImageChange |
| | | step | |Trigger |
| | | | |watches IS |
| | | | (3) +------------------+ (11) creates +-----------------------+ |
| | | +---> | DeploymentConfig | --------------------------------> | ReplicationController | |
| | | | | (DC) | (10) +-----------+ | (RC) | |
| | | | | | ---------> | DeployPod | +-----------------------+ |