k8s(196)
-
containerd registry tls 예외 처리
# 환경설정sudo vi /etc/containerd/config.toml---------------------------------[plugins."io.containerd.grpc.v1.cri".registry.mirrors] [plugins."io.containerd.grpc.v1.cri".registry.mirrors."{registry 도메인}"] endpoint = ["http://{registry 도메인}"]---------------------------------# 재시작sudo systemctl restart containerd
2025.03.04 -
Kafka Topic 생성 및 Producer/Consumer 테스트
topic 생성# broker 서버 접속# topic 목록 확인kafka-topics --bootstrap-server localhost:9092 --list# topic 생성kafka-topics --bootstrap-server localhost:9092 --create --topic test --partitions 1# topic 확인kafka-topics --bootstrap-server localhost:9092 --describe --topic testproducer/consumer 테스트# producer 생성kafka-console-producer --broker-list localhost:9092 --topic test> 여기에 전달할 내용 입력# consumer 생성kafka-conso..
2025.03.03 -
status가 'red'일 때 조치
# cluster 상태 확인curl -XGET "http://localhost:9200/_cluster/health?pretty"# red 상태인 indices 확인curl -XGET "http://localhost:9200/_cat/indices?health=red&v"# yellow 상태인 indices 확인curl -XGET "http://localhost:9200/_cat/indices?health=yellow&v"# UNASSIGNED 상태인 indices 확인curl -XGET "http://localhost:9200/_cat/shards?v" | grep UNASSIGNED# UNASSIGNED 원인 확인curl -XGET "http://localhost:9200/_cluster/alloca..
2025.03.03 -
kibana xpack.security.encryptionKey, xpack.encryptedSavedObjects.encryptionKey관련 경고
경고[WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.[WARN ][plugins.encryptedSavedObjects] Saved objects encryption key is not set. This will severely limit Kibana functionality. Please set xpack.en..
2025.03.02 -
metricbeat Warning FailedCreate DaemonSet/metricbeat Error creating: pods "metricbeat-" is forbidden: error looking up service account kube-system/metricbeat: serviceaccount "metricbeat" not found
ServiceAccount 생성apiVersion: v1kind: ServiceAccountmetadata: name: metricbeat namespace: kube-systemRBAC 생성: 없도 작동함(영향도를 확인 못함)apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata: name: metricbeatrules: - apiGroups: [""] resources: ["nodes", "nodes/stats", "pods", "services", "endpoints", "events"] verbs: ["get", "list", "watch"] - apiGroups: [""] resources: ["configm..
2025.03.02 -
metricbeat "message":"Error fetching data for metricset system.process: non fatal error; reporting partial metrics: error fetching PID metrics for 267 processes, most likely a \"permission denied\" error."
spec: serviceAccountName: metricbeat hostPID: true # ✅ Allow access to host process IDs containers: - name: metricbeat image: docker.elastic.co/beats/metricbeat:8.4.3 securityContext: privileged: true # ✅ Full access to system resources capabilities: add: - SYS_PTRACE # ✅ Allow process inspection ..
2025.03.02