Skip to content

Instantly share code, notes, and snippets.

@tingstad
Created January 21, 2020 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tingstad/d70e148103ec16703122c24ede7aad62 to your computer and use it in GitHub Desktop.
Save tingstad/d70e148103ec16703122c24ede7aad62 to your computer and use it in GitHub Desktop.
OpenShift Container Platform

+-------------------------------------------------------------+
| Project (= k8s namespace+)                                  |
|                                                             |
|  +-------------------------------------------------+        |
|  | DeploymentConfig (= k8s ReplicationController+) |+       |
|  | - Docker images + ENV & ports                   ||       |
|  +-------------------------------------------------+|       |
|    +|-----------------------------------------------+       |
|     | ("Deployments" (k8s) descend from DeploymentConfigs)  |
|     | (OCP supports both Deployment+ReplicaSets & DC+RC)    |
|     |                                                       |
|     | <creates>    +-------------------------+              |
|     |              | Routes (~= k8s Ingress) |+             |
|     |              | - host & path & service ||             |
|     |              +-------------------------+|             |
|     |                +---|--------------------+             |
|     |                    V                                  |
|     |        +-------------------------------------+        |
|     |        | Service (internal load balancer)    |+       |
|     |        | - port (listen) & targetPort (pods) ||       |
|     |        +-------------------------------------+|       |
|     |          +---|--------------------------------+       |
|     V              V                                        |
|  +-------------------------------------------+              |
|  | Pod (~= "machine instance", w/IP address) |+             |
|  |                   Immutable               ||             |
|  |  +------------+   "Application instance"  ||             |
|  |  | Containers |+                          ||             |
|  |  +------------+|                          ||             |
|  |    +-----------+                          ||             |
|  |                                           ||             |
|  +-------------------------------------------+|             |
|    +------------------------------------------+             |
|                                                             |
+-------------------------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment