an atomdrift project

Evidence

HTTP or HTTPS URL reference lines 1–12
1#!/usr/bin/env bash
2
3# Copyright 2016 The Kubernetes Authors.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "A …
References the containerd service name lines 30–33
30:32… /bin/crictl"
31 local -r container_runtime_name="${CONTAINER_RUNTIME_NAME:-containerd}"
32 local -r healthcheck_command=("${crictl}" pods)
33 # Container runtime startup takes time. Make initial attempts before star …
References systemctl service manager lines 40–47
⋯4 lines
44 if ! timeout 60 "${healthcheck_command[@]}" > /dev/null; then
45 echo "Container runtime ${container_runtime_name} failed!"
46 systemctl kill --kill-who=main "${container_runtime_name}"
47 # Wait for a while, as we don't want to kill it again before it is really …
Shell invokes the curl command lines 59–66
59:14… x_seconds=10
60 local output=""
61 while true; do
62 if ! output=$(curl -m "${max_seconds}" -f -s -S http://127.0.0.1:10248/healthz 2>&1); then
63 # Print the response and/or errors.
64 echo "${output}"
65 echo "Kubelet is unhealthy!"
66 systemctl kill …
Usage: help text marker lines 76–85
76:17… ain Function ################
77if [[ "$#" -ne 1 ]]; then
78 echo "Usage: health-monitor.sh <container-runtime/kubelet>"
79 exit 1
80fi
81
82KUBE_HOME="/home/kubernetes"
83KUBE_ENV="${KUBE_HOME}/kube-env"
84if [[ ! -e "${KUBE_ENV}" ]]; then
85 echo "The …

Showing the top 5 files — 7 more files (121 regions) not shown.

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.