目录

Rancher容器里的进程

概述

Rancher 是一个管理 Kubernetes 集群的 Server。

创建Rancher Server

1
docker pull rancher/rancher

Rancher 容器里实际运行了很多进程。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
71920a3290ac:/var/lib/rancher # ps -ef|cat
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 02:48 ?        00:00:00 tini -- rancher --http-listen-port=80 --https-listen-port=443 --audit-log-path=/var/log/auditlog/rancher-api-audit.log --audit-level=0 --audit-log-maxage=10 --audit-log-maxbackup=10 --audit-log-maxsize=100
root        33     1  5 02:48 ?        00:01:08 rancher --http-listen-port=80 --https-listen-port=443 --audit-log-path=/var/log/auditlog/rancher-api-audit.log --audit-level=0 --audit-log-maxage=10 --audit-log-maxbackup=10 --audit-log-maxsize=100
root        42    33  0 02:48 ?        00:00:03 k3s init
root        85    42 17 02:48 ?        00:03:37 k3s server
root        96    85  1 02:48 ?        00:00:15 containerd
root       499     1  0 02:49 ?        00:00:00 /var/lib/rancher/k3s/data/e61cd97f31a54dbcd9893f8325b7133cfdfd0229ff3bfae5a4f845780a93e84c/bin/containerd-shim-runc-v2 -namespace k8s.io -id 1c919e3c6ae376bd101425049c39848fe88d3de3fc2f67c2152d0f78e08d5eb1 -address /run/k3s/containerd/containerd.sock
root       517   499  0 02:49 ?        00:00:00 /pause
root       552   499  0 02:49 ?        00:00:03 /coredns -conf /etc/coredns/Corefile
root      1773     1  0 02:50 ?        00:00:00 /var/lib/rancher/k3s/data/e61cd97f31a54dbcd9893f8325b7133cfdfd0229ff3bfae5a4f845780a93e84c/bin/containerd-shim-runc-v2 -namespace k8s.io -id 54a42806950f9386cb9e33001330381dd9dd7a74f0da3ae3d731affefe57809b -address /run/k3s/containerd/containerd.sock
root      1798     1  0 02:50 ?        00:00:00 /var/lib/rancher/k3s/data/e61cd97f31a54dbcd9893f8325b7133cfdfd0229ff3bfae5a4f845780a93e84c/bin/containerd-shim-runc-v2 -namespace k8s.io -id cac0738b5f540bc9baca93c5f1391be61a9bb345c621e978298fa58e533986ec -address /run/k3s/containerd/containerd.sock
root      1822  1773  0 02:50 ?        00:00:00 /pause
root      1824  1798  0 02:50 ?        00:00:00 /pause
rancher   1903  1773  0 02:50 ?        00:00:02 gitjob --tekton-image rancher/tekton-utils:v0.1.3
rancher   2017  1798  0 02:50 ?        00:00:04 fleetcontroller
root      3324     1  0 02:50 ?        00:00:00 /var/lib/rancher/k3s/data/e61cd97f31a54dbcd9893f8325b7133cfdfd0229ff3bfae5a4f845780a93e84c/bin/containerd-shim-runc-v2 -namespace k8s.io -id b2b36f96d937cee9af4c8dc164829b3148469f5416ac7230d67bbe8f534ff4f1 -address /run/k3s/containerd/containerd.sock
root      3344  3324  0 02:50 ?        00:00:00 /pause
root      3635     1  0 02:51 ?        00:00:00 /var/lib/rancher/k3s/data/e61cd97f31a54dbcd9893f8325b7133cfdfd0229ff3bfae5a4f845780a93e84c/bin/containerd-shim-runc-v2 -namespace k8s.io -id 620cd6759ca9d609542f51cc527e84a0db2b50c7ce1898c1638d8392fc260287 -address /run/k3s/containerd/containerd.sock
root      3656  3635  0 02:51 ?        00:00:00 /pause
root      3690  3635  0 02:51 ?        00:00:06 fleetagent
root      3946  3324  0 02:51 ?        00:00:01 webhook
root      4613    33  0 02:52 ?        00:00:00 telemetry client --url https://localhost:443/v3 --token-key telemetry:wfdg4k2pl7qmnrlbb8h8m6dqwq6c65bdlbrcvjfzb52vdqzv8j9t2f
root      6904     0  0 03:07 pts/0    00:00:00 bash
root      7232  6904 99 03:09 pts/0    00:00:00 ps -ef
root      7233  6904  0 03:09 pts/0    00:00:00 cat

关于网络插件

/rancher%E5%AE%B9%E5%99%A8%E9%87%8C%E7%9A%84%E8%BF%9B%E7%A8%8B/img_2.png

https://rancher.com/docs/rke/latest/en/config-options/add-ons/user-defined-add-ons/

警告
本文最后更新于 2022年2月19日,文中内容可能已过时,请谨慎参考。