kubectl get events --all-namespaces --sort-by='.metadata.creationTimestamp'
NAMESPACE LAST SEEN TYPE REASON OBJECT MESSAGE
default 59m Warning FailedMount pod/kafka-connect-history-744c4cb5f9-br66z MountVolume.SetUp failed for volume "config-file" : configmap "kafka-connect-history-default-config" not found
default 54m Warning FailedMount pod/kafka-connect-history-744c4cb5f9-br66z Unable to mount volumes for pod "kafka-connect-history-744c4cb5f9-br66z_default(38034b71-8a92-42ed-9afd-b3894f79bc56)": timeout expired waiting for volumes to attach or mount for pod "default"/"kafka-connect-history-744c4cb5f9-br66z". list of unmounted volumes=[nubes ep-volume timezone config-file default-token-zgztl]. list of unattached volumes=[nubes ep-volume timezone config-file default-token-zgztl]
default 46m Normal ScalingReplicaSet deployment/kafka-connect-history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2020-04-20T08:20:59.745Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $OTHER_VAR이 숫자 형식의 문자일 경우 -v 옵션으로 awk 내 변수 지정을 해줘야 정상적인 산술 연산이 수행됨 😄 | |
# 두 번째 항목이 $OTHER_VAR 보다 크거나 같은 라인을 찾는다. | |
awk -v t=$OTHER_VAR '$2 >= t' $FILE_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# grep string with unicodes | |
grep -aP "abc\001\002" | |
# grep only matched word and sort unique value | |
cat $FILE | grep -o "\w*15864\w*" | sort -u | |
# grep nfs mountpoints | |
cat /proc/mounts | grep nfs | |
# count numbers in line |
https://docs.spring.io/spring-boot/docs/current/reference/html/appendix-application-properties.html spring.kafka prefixed properties
Key | Default Value | Description |
---|---|---|
spring.kafka.admin.client-id | ID to pass to the server when making requests. Used for server-side logging. | |
spring.kafka.admin.fail-fast | false | Whether to fail fast if the broker is not available on startup. |
spring.kafka.admin.properties.* | Additional admin-specific properties used to configure the client. | |
spring.kafka.admin.ssl.key-password | Password of the private key in the key store file. | |
spring.kafka.admin.ssl.key-store-location | Location of the key store file. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Debian 7 “Wheezy” archived apt repository | |
echo "deb http://archive.debian.org/debian wheezy main" >> /etc/apt/sources.list | |
echo "deb http://archive.debian.org/debian-security wheezy/updates main" >> /etc/apt/sources.list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl s_client -connect my.domain.com:443 –showcerts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.InputStream; | |
import java.net.URL; | |
import java.net.URLConnection; | |
public class HttpClient { | |
public static void main(String[] args) { | |
if (args.length == 0) { | |
System.err.println("Url must be specified."); | |
return; | |
} |
- download
node_exporter
binary to/usr/sbin/
- add systemd config file
vim /etc/systemd/system/node_exporter.service
[Unit]
Description=Node Exporter
[Service]
User=root
ExecStart=/usr/sbin/node_exporter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listening() { | |
if [ $# -eq 0 ]; then | |
sudo lsof -iTCP -sTCP:LISTEN -n -P | |
elif [ $# -eq 1 ]; then | |
sudo lsof -iTCP -sTCP:LISTEN -n -P | grep -i --color $1 | |
else | |
echo "Usage: listening [pattern]" | |
fi | |
} |