Debian Codegraph @

data/kubernetes.yaml

raw
1 # Kubernetes artifacts
2 ---
3 name: KubernetesLogs
4 doc: Log files that contain information about the Kubernetes installation of a node.
5 sources:
6 - type: FILE
7 attributes: {paths: ['/var/log/syslog*']}
8 supported_os: [Linux]
9 ---
10 name: KubernetesCertificates
11 doc: |
12 Certificate files that are used for a Kubernetes cluster.
13
14 The files are typically only present on the control-plane node.
15 sources:
16 - type: FILE
17 attributes:
18 paths:
19 - '/etc/kubernetes/admin.conf'
20 - '/etc/kubernetes/controller-manager.conf'
21 - '/etc/kubernetes/kubelet.conf'
22 - '/etc/kubernetes/scheduler.conf'
23 supported_os: [Linux]
24 urls: ['https://kubernetes.io/docs/setup/best-practices/certificates/']
25 ---
26 name: KubernetesClusterDatabase
27 doc: |
28 Kubernetes cluster (etcd) database.
29
30 The cluster database is hosted within a Pod and can be configured to be
31 deployed as distributed environment or single intance. The database is
32 mounted from the local file system into the corresponding containers
33 scheduled by a pod.
34
35 The database contains information about the clusters state, deployed
36 resourcees and also deleted components.
37 sources:
38 - type: FILE
39 attributes: {paths: ['/var/lib/etcd/member/snap/db']}
40 supported_os: [Linux]
41 urls:
42 - 'https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/'
43 - 'https://github.com/etcd-io/etcd'
44 - 'https://github.com/etcd-io/etcd/tree/main/tools/etcd-dump-db'
45 ---
46 name: KubernetesKubelet
47 doc: |
48 Installation path of the (Kubernetes) Kubelet component.
49
50 This component is installed on all nodes that are member of a Kubernetes cluster.
51 sources:
52 - type: PATH
53 attributes: {paths: ['/var/lib/kubelet']}
54 supported_os: [Linux]
55 urls: ['https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/']
56 ---
57 name: KubernetesKubeletConfiguration
58 doc: Files that stores the configuration of the local (Kubernetes) Kubelet.
59 sources:
60 - type: FILE
61 attributes:
62 paths:
63 - '/var/lib/kubelet/config.yaml'
64 - '/etc/kubernetes/kubelet.conf'
65 supported_os: [Linux]
66 urls:
67 - 'https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/'
68 - 'https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/'
69 ---
70 name: KubernetesKubeletNetworkPKI
71 doc: Certificates and other keyfiles used for Kubelet and Kubernetes general PKI.
72 sources:
73 - type: PATH
74 attributes:
75 paths:
76 - '/etc/kubernetes/pki'
77 - '/var/lib/kubelet/pki'
78 supported_os: [Linux]
79 urls: ['https://kubernetes.io/docs/setup/best-practices/certificates']
80 ---
81 name: KubernetesKubeletPod
82 doc: Path of (Kubernetes) Kubelet component information about Pods scheduled to run on a particular node.
83 sources:
84 - type: PATH
85 attributes: {paths: ['/var/lib/kubelet/pods']}
86 supported_os: [Linux]
87 ---
88 name: KubernetesKubeletPodManifest
89 doc: |
90 Manifest file that has been used to deploy a (Kubernetes) Pod.
91
92 The manifest contains the Pods specification.
93 sources:
94 - type: FILE
95 attributes: {paths: ['/etc/kubernetes/manifests/*.yaml']}
96 supported_os: [Linux]
97 ---
98 name: KubernetesKubeletPodContainer
99 doc: |
100 Path where the container resources created within a (Kubernetes) Pod are located.
101
102 The paths naming would explain as the following:
103 '/var/lib/kubelet/pods/<pod_id>/containers/<container_name>/*'
104
105 The Pod itself gets created/scheduled by the Kubelet component. The path
106 'containers/' does contain a directory for each container scheduled in that
107 Pod. In each of that path there is a file located that gets mounted into
108 the container at '/dev/termination-log'.
109
110 This is the logfile that stores termination information in case a container
111 terminates. The pod identifier of that file can be correlated to the container
112 runtime installed on the host to find out the mount configuration.
113 sources:
114 - type: PATH
115 attributes: {paths: ['/var/lib/kubelet/pods/*/containers']}
116 supported_os: [Linux]
117 urls: ['https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#container-v1-core']
118 ---
119 name: KubernetesKubeletPodVolumes
120 doc: |
121 Volumes and other objects that are mounted into a (Kubernetes) Pod and respectively into the scheduled container(s).
122
123 The type of volumes (or objects) are identified by the name appended to a tilde.
124
125 Examples:
126 * 'volumes/kubernetes.io~projected' -> describes a projected volume
127 * 'volumes/kubernetes.io~configmap' -> describes a Kubernetes ConfigMap resource
128 sources:
129 - type: PATH
130 attributes: {paths: ['/var/lib/kubelet/pods/*/volumes/*']}
131 supported_os: [Linux]
132 urls:
133 - 'https://kubernetes.io/docs/concepts/storage/volumes'
134 - 'https://kubernetes.io/docs/concepts/storage/projected-volumes/'
135 - 'https://kubernetes.io/docs/concepts/storage/volumes/#configmap'
136 ---
137 name: KubernetesKubeletPodLogs
138 doc: |
139 Location where the log data of (Kubernetes) Pods can be found.
140
141 The path's name would contain the following elements:
142 '/var/log/pods/<namespace>_<pod_name>_<pod_id>/<container_name>/<num>.log'
143 Includes also redirected stdout, stderr and (if applicable) stdin of container executions.
144 sources:
145 - type: FILE
146 attributes: {paths: ['/var/log/pods/*/*/*.log']}
147 supported_os: [Linux]
148 urls:
149 - 'https://github.com/kubernetes/kubernetes/pull/74441'
150 - 'https://kubernetes.io/docs/concepts/cluster-administration/logging/'