foo
Olaf Bohlen
2023-02-21 e54206c918190341bb361187261620151e98ef0b
foo
1 files modified
54 ■■■■ changed files
do180.org 54 ●●●● patch | view | raw | blame | history
do180.org
@@ -1,16 +1,50 @@
* ISO/OSI Reference Model
7 Application Layer    |  mysql-client           ^
6 Presentation Layer   |                         |
5 Session Layer        |                         |
4 Transport Layer      |  TCP 3306               |
7 Application Layer    |  firefox web browser    ^
6 Presentation Layer   |  HTML                   |
5 Session Layer        |  HTTP                   |
4 Transport Layer      |  TCP 80                 |
3 Network Layer        |  IP 10.88.0.74          | 
2 Datalink Layer       |  ETH 0:14:4f:c9:85:70   |
1 Physical Layer       v  Copper/Fibre           |
People Do Not Throw Sausage Pizza Away
#+begin_src ditaa :file packet-content.png :cmdline -E -s 0.8
+----------+---
|Eth Frame |Payload
| Header   |+-----------+----
| SRC MAC  || IP Packet |Payload
| DST MAC  || SRC IP    |+-----------+-------
           || DST IP    || TCP Packet| Payload...
                         | SRC Port
                         | DST Port
#+end_src
* layers
#+begin_src ditaa :file containerimage-layers.png :cmdline -E -s 0.8
     ubi8                      ubi8+apache                  ubi8+apache+php
                                                          +---------------+
                                                          | Instruction 2 |
                             +---------------+            +---------------+
                             | Instruction 1 |          | Instruction 1 |
   +-------------+  Instr1   +---------------+  Instr 2      +---------------+
   | Base Layer  | ------->  | Base Layer    | ---------> | Base Layer    |
   +-------------+           +---------------+            +---------------+
                                 |
                                 |Alt Inst2
                                 v ubi8+apache+ruby
                             +---------------+
                             | Alt Inst 2    |
                             +---------------+
                 | Instruction 1 |
                 +---------------+
                 | Base Layer    |
                              +---------------+
#+end_src
* Container components
#+begin_src ditaa :file processlist-containers.png :cmdline -E -s 0.8
@@ -28,7 +62,7 @@
|---------------+  namespace, chroot, SELinux, cgroups, Seccomp
+- 54 mysql5.8  |
|---------------+
|------------+     namespace, chroot, SELinux, cgroups, Seccomp
+------------+     namespace, chroot, SELinux, cgroups, Seccomp
+- 74 apache |
|------------+
|
@@ -37,6 +71,10 @@
#+end_src
/container1/usr/sbin/mysqld
/container2/usr/sbin/mysqld
chroot /container1
* UNIX Memory Seperation
#+begin_src ditaa :file userland.png :cmdline -E -s 0.8 
@@ -55,12 +93,12 @@
* docker vs podman components
                                 (root)
docker-cli ---REST (HTTP)---> docker-daemon ----> container
docker-cli ---REST (HTTP)---> docker-daemon --> moby --> container
                               [webserver]
 (root)
podman   -> CRI-O -> runC -> container
            (Container Runtime Interface - OCI (Open Container Intiative))
            (Container Runtime Interface - OCI (Open Container Initiative))
alias docker=podman
@@ -80,6 +118,8 @@
|         | delete      | buildconfig / bc           |                   |
|         | create      | imagestream / is           |                   |
|         |             | NetworkPolicy              |                   |
|         |             | project                    |                   |
|         |             | route                      |                   |
# oc new-project
# oc new-app