ืืืืื ืฉื ืืช ืืฉืืืืฉ ื-Kubernetes ืืืืฆืืจ, ืฆืืจื ื ืกืืคืืจืื ืืขื ืืื ืื ืจืืื ืืืฆื ืืืืื ืืจืืืื ืืขืจืืช ืฉืื ืื ืืืืืื ืืืฉืืืืช ืื ื ืขืืืืช ื/ืื ืืืชื ืืืื ืืช ืืืฉืคืืขืืช ืขื ืคืขืืืชื ืฉื ืืืืืื ืืชืจืืืืื. ืืืืืจ ืื ืขืฉืื ื ืืืืจ ืฉื ืืื ืืื ืคืืฆืื ืื ืืืขื ืืื ืื ืฉืืื. ืื ืื ืืฃ ืคืขื ืื ืืชืืื ืืืื ืืืืชืงื ืืืฆืืื ืืืื, ืงืจืืื ืขื ืกืืคืืจื ืืืฉืื ืงืฆืจืื ืืืื - ืืืืืื "ืืืงืืจ ืจืืฉืื" - ืชืืื ืืขื ืืื ืช, ืื?...
ืกืืคืืจ 1. Supercronic ื-Docker ืชืืืืื
ืืืื ืืืฉืืืืืช ืงืืืื ื ืืขืช ืืขืช ืืืงืจ ืงืคืื, ืฉืืคืจืืข ืืชืคืงืื ืืชืงืื ืฉื ืืืฉืืื. ืืืงืืื, ื ืฆืคื ืืืืจืื ืืืืื ืืืืื ื Docker:
level=error msg="containerd: start init process" error="exit status 2: "runtime/cgo: pthread_create failed: No space left on device
SIGABRT: abort
PC=0x7f31b811a428 m=0
goroutine 0 [idle]:
goroutine 1 [running]:
runtime.systemstack_switch() /usr/local/go/src/runtime/asm_amd64.s:252 fp=0xc420026768 sp=0xc420026760
runtime.main() /usr/local/go/src/runtime/proc.go:127 +0x6c fp=0xc4200267c0 sp=0xc420026768
runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:2086 +0x1 fp=0xc4200267c8 sp=0xc4200267c0
goroutine 17 [syscall, locked to thread]:
runtime.goexit() /usr/local/go/src/runtime/asm_amd64.s:2086 +0x1
โฆ
ืื ืฉืืื ืืขื ืืื ืืืชื ื ืืฉืืืื ืื ืืื ืืืืืขื: pthread_create failed: No space left on device
. ืืืืื ืืืืจ
ืืืขืงื, ืืชืืื ื ืืืื ืืชืืืื ืืื ืฉืงืืจื:
ืืฆื ืืืื ื ืฆืคื ืืฆืืชืื ืืืจืื:
ืืืืชื ืฆืืชืื ืื ื ืจืืืื:
root@kube-node-1 ~ # ps auxfww | grep curl -c
19782
root@kube-node-1 ~ # ps auxfww | grep curl | head
root 16688 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 17398 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 16852 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 9473 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 4664 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 30571 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 24113 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 16475 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 7176 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
root 1090 0.0 0.0 0 0 ? Z Feb06 0:00 | _ [curl] <defunct>
ืืชืืจืจ ืฉืืชื ืืืืช ืื ืืื ืชืืืื ืฉื ืืขืืืื ืขื ืืชืจืืื
_ docker-containerd-shim 833b60bb9ff4c669bb413b898a5fd142a57a21695e5dc42684235df907825567 /var/run/docker/libcontainerd/833b60bb9ff4c669bb413b898a5fd142a57a21695e5dc42684235df907825567 docker-runc
| _ /usr/local/bin/supercronic -json /crontabs/cron
| _ /usr/bin/newrelic-daemon --agent --pidfile /var/run/newrelic-daemon.pid --logfile /dev/stderr --port /run/newrelic.sock --tls --define utilization.detect_aws=true --define utilization.detect_azure=true --define utilization.detect_gcp=true --define utilization.detect_pcf=true --define utilization.detect_docker=true
| | _ /usr/bin/newrelic-daemon --agent --pidfile /var/run/newrelic-daemon.pid --logfile /dev/stderr --port /run/newrelic.sock --tls --define utilization.detect_aws=true --define utilization.detect_azure=true --define utilization.detect_gcp=true --define utilization.detect_pcf=true --define utilization.detect_docker=true -no-pidfile
| _ [newrelic-daemon] <defunct>
| _ [curl] <defunct>
| _ [curl] <defunct>
| _ [curl] <defunct>
โฆ
ืืืขืื ืืื ืืื: ืืืฉืจ ืืฉืืื ืืืคืขืืช ืืกืืคืจืงืจืื ืืง, ืืชืืืื ืืืืื ืขื ืืื ืื ืืืื ืืืกืชืืื ืืฆืืจื ื ืืื ื, ืืืคืื ื
ืฉืื ืื: ืืืชืจ ืืืืง, ืชืืืืืื ื ืืฆืจืื ืขื ืืื ืืฉืืืืช cron, ืืื supercronic ืืื ื ืืขืจืืช ืืื ืื ืืืื ื ืืืืื "ืืืืฅ" ืชืืืืืื ืฉืืืืืื ืฉืื ืืืืืื. ืืืฉืจ ืืืชืืช SIGHUP ืื SIGTERM ืืืขืืื, ืื ืืื ื ืืืขืืจืื ืืชืืืืื ืืืื, ืืืชืืฆืื ืืื ืชืืืืื ืืืื ืืื ื ืืกืชืืืืื ืื ืฉืืจืื ืืกืืืืก ืืืืื. ืืชื ืืืื ืืงืจืื ืขืื ืขื ืื ืื, ืืืฉื, ื
ืืฉื ื ืืกืคืจ ืืจืืื ืืคืชืืจ ืืขืืืช:
- ืืคืชืจืื ืืื ื - ืืืื ืืช ืืกืคืจ ื-PIDs ืืืขืจืืช ืื ืงืืืช ืืื ืืืช:
/proc/sys/kernel/pid_max (since Linux 2.5.34) This file specifies the value at which PIDs wrap around (i.e., the value in this file is one greater than the maximum PID). PIDs greater than this value are not alloโ cated; thus, the value in this file also acts as a system-wide limit on the total number of processes and threads. The default value for this file, 32768, results in the same range of PIDs as on earlier kernels
- ืื ืืคืขื ืืฉืืืืช ืืกืืคืจืงืจืื ืืง ืื ืืฉืืจืืช, ืืื ืืืืฆืขืืช ืืืชื ืืืืจ
ืืื ื , ืฉืืกืืื ืืกืืื ืชืืืืืื ืืฆืืจื ื ืืื ื ืืื ืืืืืื ืืืืืื.
ืกืืคืืจ 2. "ืืืืืื" ืืขืช ืืืืงืช cgroup
Kubelet ืืชืืืื ืืฆืจืื ืืจืื ืืขืื:
ืืฃ ืืื ืื ืืืื ืืช ืื, ืื ืืชืืืฉื ื
- Kubelet ืืืื ืืืชืจ ืืฉืืืฉ ืืืื ื-CPU ืฉืื ืืืฉืืืช ื ืชืื ื ืืืืจืื ืืื ืงืืืฆืืช cgroups:
- ืืจืฉืืืช ืืชืคืืฆื ืฉื ืืคืชืื ืืงืจื ื ืชืืืื ืืืฆืื
ืืืื ืืืขืื . ืืงืืฆืืจ, ืื ืงืืื ืืกืชืืืช ืืื: ืงืืฆื tmpfs ืฉืื ืื ืืืืจืื ืืืืื ืืืจืื ืืื ื ืืืกืจืื ืืืืืืื ืืืืขืจืืช ืืขืช ืืืืงืช cgroup, ืื ืฉื ืงืจืmemcg ืึฐืืึผืืึธื. ืืืืงืื ืื ืืืืืืจ ืื ืืืืืงื ืืืืืื ืืขืืืืื, ืืื ืืฉ ืืจืื ืืืืจืื ืืฉืจืช ืืืงืจื ื ืื ืจืืื ืืขื ืืืืื ืืื ืขื ืืืืงืชื. ืืืื ืื ืื ืืืฉืืืื ืืืฆืืืจ. ืืื ืื ืืืื ืงืืจื? ืืืืืจ ืืฉืจืช ืขื ืืฉืจืืช cron ืฉืืืฆืจ ืื ืืืื ืืฉืจืืช ืืืฉืืช, ืืืืชื ืคืืืื ืืืฉืื. ืื ื ืืฆืจืืช ืงืืืฆืืช cgroups ืืืฉืืช ืขืืืจ ืงืื ืืืื ืจืื ืืื, ืฉื ืืืงืืช ืืงืจืื. - ืืืืข cAdvisor ื-kubelet ืืืืื ืื ืื ืืจืื ืืื? ืื ืงื ืืจืืืช ืขื ืืืืฆืืข ืืคืฉืื ืืืืชืจ
time cat /sys/fs/cgroup/memory/memory.stat
. ืื ืืืืื ื ืืจืืื ืืคืขืืื ื ืืฉืืช 0,01 ืฉื ืืืช, ืื ื-cron02 ืืืขืืืชื ืื ืืืงื 1,2 ืฉื ืืืช. ืืขื ืืื ืืื ืฉ-cAdvisor, ืฉืงืืจื ื ืชืื ืื ื-sysfs ืืื ืืืื, ืื ืกื ืืงืืช ืืืฉืืื ืืช ืืืืืจืื ืืืฉืืฉ ืืงืืืฆืืช cgroups ืฉื ืืืืืื. - ืืื ืืืกืืจ ืืืืืื ืืืื, ื ืืกืื ื ืื ืงืืช ืืืืื ืื ืืคื ืฉืืืืืฅ ื-LKML:
sync; echo 3 > /proc/sys/vm/drop_caches
, - ืืื ืืืจืขืื ืืชืืจืจ ืืืกืืื ืืืชืจ ืืืจืก ืืช ืืืืื ืืช.
ืื ืืขืฉืืช? ืืืขืื ืืชืืงื ืช (
ืืืกืืืจืื 3. Systemd ืืืืจืืื ืฉืื
ืฉืื, ืืงืืืื ืฆืืจื ืืืชืจ ืืื ืืฉืืืื ืืฆืืชืื ืืกืืืืื, ืืื ืืคืขื ืืื ืฆืืจื ืืืชืจ ืืื ืืืืจืื:
ืืชืืจืจ ืฉืืฉ ืืขืื ื-systemd ืืฉืืืืฉ ืืืืืื ืื 16.04, ืืืื ืืชืจืืฉืช ืืขืช ื ืืืื mounts ืฉื ืืฆืจื ืืืืืืจ subPath
ื-ConfigMaps ืื ืกืืืืช. ืืืืจ ืฉืืคืื ืกืืื ืืช ืขืืืืชื ืฉืืจืืช systemd ืืืขืจืืช ืืฉืืจืืช ืฉืื ื ืฉืืจืื ืืืขืจืืช. ืขื ืืืื, ืืกืคืจ ืขืฆืื ืืื ืืฆืืืจ. ืืฉ ืืคืืื ืืขืืืช ืื ืืฉื ืืื:
...ืืืืจืื ืฉืืื ืืชืืืืก ืืืืกื ืืฆืืืืจ ื-systemd:
ืืืขืื ืืืจ ืื ืงืืืืช ืืืืืื ืื 18.04, ืืื ืื ืืจืฆืื ื ืืืืฉืื ืืืฉืชืืฉ ืืืืืื ืื 16.04, ืืืชืื ืฉืชืืฆื ืืช ืืคืชืจืื ืฉืื ื ืื ืืฉื ืื ืฉืืืืฉื.
ืื ืืื ื ืืช DaemonSet ืืื:
---
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
labels:
app: systemd-slices-cleaner
name: systemd-slices-cleaner
namespace: kube-system
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: systemd-slices-cleaner
template:
metadata:
labels:
app: systemd-slices-cleaner
spec:
containers:
- command:
- /usr/local/bin/supercronic
- -json
- /app/crontab
Image: private-registry.org/systemd-slices-cleaner/systemd-slices-cleaner:v0.1.0
imagePullPolicy: Always
name: systemd-slices-cleaner
resources: {}
securityContext:
privileged: true
volumeMounts:
- name: systemd
mountPath: /run/systemd/private
- name: docker
mountPath: /run/docker.sock
- name: systemd-etc
mountPath: /etc/systemd
- name: systemd-run
mountPath: /run/systemd/system/
- name: lsb-release
mountPath: /etc/lsb-release-host
imagePullSecrets:
- name: antiopa-registry
priorityClassName: cluster-low
tolerations:
- operator: Exists
volumes:
- name: systemd
hostPath:
path: /run/systemd/private
- name: docker
hostPath:
path: /run/docker.sock
- name: systemd-etc
hostPath:
path: /etc/systemd
- name: systemd-run
hostPath:
path: /run/systemd/system/
- name: lsb-release
hostPath:
path: /etc/lsb-release
... ืืืื ืืฉืชืืฉ ืืกืงืจืืคื ืืื:
#!/bin/bash
# we will work only on xenial
hostrelease="/etc/lsb-release-host"
test -f ${hostrelease} && grep xenial ${hostrelease} > /dev/null || exit 0
# sleeping max 30 minutes to dispense load on kube-nodes
sleep $((RANDOM % 1800))
stoppedCount=0
# counting actual subpath units in systemd
countBefore=$(systemctl list-units | grep subpath | grep "run-" | wc -l)
# let's go check each unit
for unit in $(systemctl list-units | grep subpath | grep "run-" | awk '{print $1}'); do
# finding description file for unit (to find out docker container, who born this unit)
DropFile=$(systemctl status ${unit} | grep Drop | awk -F': ' '{print $2}')
# reading uuid for docker container from description file
DockerContainerId=$(cat ${DropFile}/50-Description.conf | awk '{print $5}' | cut -d/ -f6)
# checking container status (running or not)
checkFlag=$(docker ps | grep -c ${DockerContainerId})
# if container not running, we will stop unit
if [[ ${checkFlag} -eq 0 ]]; then
echo "Stopping unit ${unit}"
# stoping unit in action
systemctl stop $unit
# just counter for logs
((stoppedCount++))
# logging current progress
echo "Stopped ${stoppedCount} systemd units out of ${countBefore}"
fi
done
... ืืืื ืคืืขื ืื 5 ืืงืืช ืืืืฆืขืืช ืืกืืคืจืงืจืื ืืง ืฉืืืืืจ ืงืืื ืืื. ื-Dockerfile ืฉืื ื ืจืื ืื:
FROM ubuntu:16.04
COPY rootfs /
WORKDIR /app
RUN apt-get update &&
apt-get upgrade -y &&
apt-get install -y gnupg curl apt-transport-https software-properties-common wget
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" &&
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - &&
apt-get update &&
apt-get install -y docker-ce=17.03.0*
RUN wget https://github.com/aptible/supercronic/releases/download/v0.1.6/supercronic-linux-amd64 -O
/usr/local/bin/supercronic && chmod +x /usr/local/bin/supercronic
ENTRYPOINT ["/bin/bash", "-c", "/usr/local/bin/supercronic -json /app/crontab"]
ืกืืคืืจ 4. ืชืืจืืชืืืช ืืขืช ืชืืืื ืชืจืืืืื
ืฉืื ื ืื ืฉ: ืื ืืฉ ืื ื ืคืื ืขื ืฆืืืช ืืืชืืื ื ืฉืื ื ืฉืืืช ืืืื ืจื ืืืื, ืื ืคืื ืืืจ ืฉ"ืคืืข" ืืืืชื ืฆืืืช ืคืฉืื ืื ืืชืืื ืืืฉืื ืืช ืืชืืื ื ืฉื ืืชืจืืื ืืืืฉ. ืืืงืื ืืืช, ืืื ืืืชืื ืขื ืฉืืชืืื ื ืฉื ืืชืจืืื ืืงืืื ื ืืฉืืช. ืืชืืฆืื ืืื, ืคืื ืฉืืืจ ืืื ืืชืืืื ืืืคืฉืจ ืืื ืืืืจืื ืืช ืชืืื ืชื ืชืื ืืงื ืืืื ืืืืข ืืืฆื ืฉื containerCreating
.
ืืืืจืืขืื ืืืจืื ืืขืจื ืื:
Normal Pulling 8m kubelet, ip-10-241-44-128.ap-northeast-1.compute.internal pulling image "registry.example.com/infra/openvpn/openvpn:master"
ืืชืืจืจ ืื ืชืืื ื ืืืืืช ืืจืืฉืื ืืืื ืืืืื ืืืกืื ืืช ืืคืจืืกื ืืื ืฆืืืช.
ืืืจืื ืืฆืขืจ, ืืื ืืจืื ืืจืืื ืืฆืืช ืืืืฆื:
- ื ืกื ืืืฉืชืืฉ ื-Docker Registry ืฉืื ืืฉืืจืืช ืืืฉืืื ืื ืืฉืืจืืช ืขื ืืืฉืืื (ืืืืืื, GitLab Registry, Nexus ืืื');
- ืืฉืชืืฉ ืืืื ืขืืจ ืืืื
ืงืจืืงื .
ืกืืคืืจ 5. ืฆืืชืื ื ืชืงืขืื ืืืื ืืืกืจ ืืืืจืื
ืืืืื ืืืคืขืื ืฉื ืืคืืืงืฆืืืช ืฉืื ืืช, ื ืชืงืื ื ืื ืืืฆื ืฉืื ืฆืืืช ืืคืกืืง ืืืืืืื ืืืืืช ื ืืืฉ: SSH ืื ืืืื, ืื ืืืื ื ืื ืืืืจ ื ืืคืืื ืืื ืืื ืฉืื ืืืจ (ืื ืืืขื ืฉืื ืืืจ) ืืจืื ืืืืื ืื.
ืื ื ืืกืคืจ ืื ืืชืืื ืืช ืืืืฆืขืืช ืืืืืื ืฉื ืฆืืืช ืืื ืฉืื MongoDB ืคืขื.
ืื ื ืจืื ืืืขืื ะดะพ ืชืืื ืืช:
ืืืื - ืืืืจ ืชืืื ืืช:
ืื ืืืืจ, ืืฉ ืื ืงืคืืฆื ืืื, ืฉืื ืืฆืืืช ืืคืกืืง ืืืืืช ืืืื:
ืืคืืื, ืืฆืืืืื ืืืกื ืืจืืจ ืื:
- ืืืืจืื ื-RAM ืืืืื ื ืงืจืื ืืงืฆื;
- ืืฉ ืงืคืืฆื ืืื ืืฆืจืืืช ืืืืจืื RAM, ืฉืืืืจืื ืืืืฉื ืืื ืืืืื ื ืืืฉืืชืช ืืคืชืืืืืืช;
- ืืฉืืื ืืืืื ืืืืขื ืืืื ืื, ืื ืฉืืืืฅ ืืช ืชืืืื ื-DBMS ืืืฉืชืืฉ ืืืืชืจ ืืืืจืื ืืืงืจืื ืืืืคื ืคืขืื ืืืืืกืง.
ืืกืชืืจ ืฉืื ืืืื ืืงืก ื ืืืจ ืืืืืจืื ืืคื ืื (ืืืฅ ืืืืืจืื ื ืื ืก) ืืืื ืืืืคื, ืื ะดะพ ืืืฉืจ ืืจืืฆื OOM ืืืืข, ืขืฉืื ืืืืืืฆืจ ืคืขืืืช ืืืืื ืืื ืืจืืงืช ืืคืื ืืืืืื ืืขืืืืื ืืืื ืืชืืืชื ืืืจื ืืืืกืง. ืื ื ืขืฉื ืขื ืืื kswapd, ืฉืืคื ื ืืืืืฅ ืืื ืฉืืืชืจ ืืคื ืืืืจืื ืืืคืฆื ืืืืฉื.
ืืจืืข ืืืื, ืขื ืขืืืก ืงืื/ืคืื ืืืื ืืื ืขื ืืืืช ืงืื ื ืฉื ืืืืจืื ืคื ืื, kswapd ืืืคื ืืฆืืืืจ ืืืงืืืง ืฉื ืืืขืจืืช ืืืื, ืื ืื ืงืฉืืจืื ืืื ืื ืืงืฆืืืช (ืชืงืืืช ืขืืื) ืฉื ืืคื ืืืืจืื ืืืขืจืืช. ืื ืืืื ืืืืืฉื ืืจืื ืืืื ืืื ืื ืืชืืืืืื ืื ืจืืฆืื ืืืฉืชืืฉ ืืืชืจ ืืืืืจืื, ืืื ืงืืืขืื ืืืฉ ืืงืฆื ืชืืื ื-OOM-killer.
ืืฉืืื ืืืืขืืช ืืื: ืืืืข ืจืืฆื OOM ืืืืข ืื ืื ืืืืืจ? ืืืืืจืฆืื ืื ืืืืืช ืฉืื, ืืจืืฆื OOM ืืื ืืืคืฉ ืืืืชืจ: ืืื ืืืจืื ืืช ืืชืืืื ืจืง ืืืฉืจ ืื ืืกืืื ืืืงืฆืืช ืืฃ ืืืืจืื ื ืืฉื, ืืืืืจ. ืื ืชืงืืช ืืืฃ ื ืืฉืืช. ืื ืื ืงืืจื ืืืฉื ืืื ืจื ืืืื, ืื kswapd ืืฉืืจืจ ืืืืืฅ ืืช ืืคื ืืืืืจืื, ืืืฉืืื ืืช ืืืืื ืืขืืืืื (ืื ืืงืื/ืคืื ืฉื ืืืืกืง ืืืขืจืืช, ืืืขืฉื) ืืืืจื ืืืืกืง. ืืืชืจ ืคืืจืื, ืขื ืชืืืืจ ืฉื ืืฉืืืื ืื ืืจืฉืื ืืืืืื ืืขืืืช ืืืื ืืงืจื ื, ืืชื ืืืื ืืงืจืื
ืืืชื ืืืืช ืืืืช
ืกืืคืืจ 6. ืชืจืืืืื ื ืชืงืขืื ืืืฆื ืืืชื ื
ืืืื ืืฉืืืืืช, ืฉืืื ืคืืขืืื ืืืืช ืืจืื ืคืืืื, ืืชืืื ื ืืฉืื ืื ืฉืจืืื "ื ืชืืื" ืืจืื ืืืื ืืื ืืืืื ื Pending
, ืืืจืืช ืฉืืงืื ืืืื ืจืื ืฉื Docker ืขืฆืื ืืืจ ืคืืขืืื ืขื ืืฆืืชืื ืื ืืชื ืืขืืื ืืืชื ืืืืคื ืืื ื.
ืืชืจ ืขื ืื, ื describe
ืืื ืฉืื ืคืื:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 1m default-scheduler Successfully assigned sphinx-0 to ss-dev-kub07
Normal SuccessfulAttachVolume 1m attachdetach-controller AttachVolume.Attach succeeded for volume "pvc-6aaad34f-ad10-11e8-a44c-52540035a73b"
Normal SuccessfulMountVolume 1m kubelet, ss-dev-kub07 MountVolume.SetUp succeeded for volume "sphinx-config"
Normal SuccessfulMountVolume 1m kubelet, ss-dev-kub07 MountVolume.SetUp succeeded for volume "default-token-fzcsf"
Normal SuccessfulMountVolume 49s (x2 over 51s) kubelet, ss-dev-kub07 MountVolume.SetUp succeeded for volume "pvc-6aaad34f-ad10-11e8-a44c-52540035a73b"
Normal Pulled 43s kubelet, ss-dev-kub07 Container image "registry.example.com/infra/sphinx-exporter/sphinx-indexer:v1" already present on machine
Normal Created 43s kubelet, ss-dev-kub07 Created container
Normal Started 43s kubelet, ss-dev-kub07 Started container
Normal Pulled 43s kubelet, ss-dev-kub07 Container image "registry.example.com/infra/sphinx/sphinx:v1" already present on machine
Normal Created 42s kubelet, ss-dev-kub07 Created container
Normal Started 42s kubelet, ss-dev-kub07 Started container
ืืืืจ ืงืฆืช ืืคืืจืืช, ืืฆืื ื ืืื ืื ืฉืืงืืืืช ืคืฉืื ืืื ืืื ืืฉืืื ืืช ืื ืืืืืข ืขื ืืฆื ืืคืืืื ืืืืืงืืช ืืืื ืืืช/ืืืื ืืช ืืฉืจืช ื-API.
ืืืืืจ ืืืืื ืขืืจื ืืฆืื ื ืืช ืืคืจืืืจืื ืืืืื:
--kube-api-qps - QPS to use while talking with kubernetes apiserver (default 5)
--kube-api-burst - Burst to use while talking with kubernetes apiserver (default 10)
--event-qps - If > 0, limit event creations per second to this value. If 0, unlimited. (default 5)
--event-burst - Maximum size of a bursty event records, temporarily allows event records to burst to this number, while still not exceeding event-qps. Only used if --event-qps > 0 (default 10)
--registry-qps - If > 0, limit registry pull QPS to this value.
--registry-burst - Maximum size of bursty pulls, temporarily allows pulls to burst to this number, while still not exceeding registry-qps. Only used if --registry-qps > 0 (default 10)
ืืคื ืฉื ืจืื, ืขืจืื ืืจืืจืช ืืืืื ืื ืื ืงืื ืื, ืื-90% ืื ืืืกืื ืืช ืื ืืฆืจืืื... ืืืื, ืืืงืจื ืฉืื ื ืื ืื ืืกืคืืง. ืืื, ืื ื ืืืืืจืื ืืช ืืขืจืืื ืืืืื:
--event-qps=30 --event-burst=40 --kube-api-burst=40 --kube-api-qps=30 --registry-qps=30 --registry-burst=40
... ืืืคืขืื ื ืืืืฉ ืืช ืืงืืืืืื, ืืืืืจ ืืื ืจืืื ื ืืช ืืชืืื ื ืืืื ืืืจืคืื ืฉื ืงืจืืืืช ืืฉืจืช ื-API:
... ืืื, ืืื ืืชืืื ืืขืืฃ!
ื .ื.
ืขื ืขืืจืชื ืืืืกืืฃ ืืืืื ืืืื ืช ืืืืจ ืื, ืื ื ืืืืข ืืช ืชืืืชื ืืขืืืงื ืืืื ืืกืื ืืจืืื ืฉื ืืืืจื ืฉืื ื, ืืืืืืื ืืขืืืช ืฉืื ืืฆืืืช ืืืืงืจ ืืืคืืชืื ืฉืื ื ืื ืืจืื ืงืืืื ืืืื (
PPS
ืงืจื ืื ืืืืื ืฉืื ื:
- ยซ
ืชืืกืฃ kubectl-debug ืื ืืคืื ืืืืื ืืชืจืืืืื ืฉื Kubernetes ". - ืืืืืช ืืืคืื ืืืจืืงืื ืฉื Kubernetes:
ืืงืืจ: www.habr.com