Olaf Bohlen
2020-12-15 b4d6ba8b935c3073be725494bcc6aac78c342282
commit | author | age
b4d6ba 1
OB 2 * ISO/OSI Reference Model
3
4 7 Application Layer    |  mysql-client           ^
5 6 Presentation Layer   |                         |
6 5 Session Layer        |                         |
7 4 Transport Layer      |  TCP 3306               |
8 3 Network Layer        |  IP 10.88.0.74          | 
9 2 Datalink Layer       |  ETH 0:14:4f:c9:85:70   |
10 1 Physical Layer       v  Copper/Fibre           |
11
12
13
14 * Container components
15
16 #+begin_src ditaa :file processlist-containers.png :cmdline -E -s 0.8
17
18 |
19 +- 1 systemd
20 |
21 +- 42 bash
22 |
23 +- 23 vim
24 |
25 |---------------+  namespace, chroot, SELinux, cgroups, Seccomp
26 +- 53 mysql5.5  |
27 |---------------+
28 |---------------+  namespace, chroot, SELinux, cgroups, Seccomp
29 +- 53 mysql5.8  |
30 |---------------+
31 |------------+     namespace, chroot, SELinux, cgroups, Seccomp
32 +- 74 apache |
33 |------------+
34 |
35 +- 122 bash
36
37
38 #+end_src
39
40 * UNIX Memory Seperation
41
42 #+begin_src ditaa :file userland.png :cmdline -E -s 0.8 
43
44             +---------------------------------+       Process
45 Userland    | Proc1, Proc2, ...               |          |
46             |                                 |          v
47             |                                 |       System Call
48             +-----SystemCalls-----------------+          |
49             +---------------------------------+          v
50 Kernel      | Device Driver, Scheduler,       |       Kernel Driver
51 Space       | Memory Management, ...          |
52             +---------------------------------+
53 #+end_src 
54
55 * docker vs podman components
56
57                                  (root)
58 docker-cli ---REST (HTTP)---> docker-daemon ----> container
59                                [webserver]
60
61  (root)
62 podman   -> CRI-O -> runC -> container
63             (Container Runtime Interface - OCI (Open Container Intiative))
64
65 alias docker=podman
66
67
68
69 * oc command line tool parameter
70
71 oc is a modified kubectl, but full compatible 
72
73 | Command | SubCommand  | Resource Type              | [<Resource Name>] |
74 |---------+-------------+----------------------------+-------------------|
75 | oc      | get         | pod                        | [name]            |
76 | kubectl | describe    | svc / service              |                   |
77 |         | edit        | all                        |                   |
78 |         | get -o yaml | replicationcontroller / rc |                   |
79 |         | get -o json | deploymentconfig / dc      |                   |
80 |         | delete      | buildconfig / bc           |                   |
81 |         | create      | imagestream / is           |                   |
82 |         |             | NetworkPolicy              |                   |
83
84 # oc new-project
85 # oc new-app
86 # oc rsh <podname>
87
88
89 * UNIX Kernel Memory 
90
91 #+begin_src ditaa :file system_memory.png :cmdline -E -s 0.8 
92
93 +--------------------------------+
94 |0Heap                           |
95 |                                |
96 |                                |
97 |                                |
98 |                                |
99 |                                |
100 +--------------------------------+
101 Gap
102 +--------------------------------+
103 |                                |
104 |                                |
105 |                                |
106 |Stack                       2^64|
107 +--------------------------------+
108
109 #+end_src