본문 바로가기

전체 글

Linux NTP ntp.conf Linux ntp.conf [NTP Setup STEP] $ nslookup ntp2.kornet.net $ yum install ntp $ vi /etc/ntp.conf $ systemctl enable ntpd.service $ systemctl restart ntpd.service $ ntpstat $ ntpdc -c sysinfo $ ntpq https://www.thegeekdiary.com/centos-rhel-how-to-configure-ntp-server-and-client/ 더보기
Linux netstat TCP UDP port 와 PID 확인 netstat $ netstat -tpln $ netstat -upln 더보기
Rocky Linux 8.8 Download - ISO 파일 USB 부팅 이미지 만들기 Rocky Linux 8.8 또는 8.7 이전 버전의 ISO 이미지를 Download 받고, ISO 파일을 다시 USB 부팅 이미지 만들어서 OS를 설치할 수 있게 준비하는 과정입니다. ISO 파일 부팅이미지 만들기는 Github에 있는 Rufus 를 사용합니다. [로키 리눅스 다운로드] https://dl.rockylinux.org/vault/rocky/8.8/isos/x86_64/ Index of /vault/rocky/8.8/isos/x86_64/ dl.rockylinux.org https://dl.rockylinux.org/vault/rocky/8.7/isos/x86_64/ https://dl.rockylinux.org/vault/rocky/8.8/devel/x86_64/os/Packages/k/.. 더보기
[쿠버네티스 Kubernetes] Unable to connect to the server: x509 현재 클러스터에서, 타 클러스터 접속 후에 다시 현재 클러스터 정보 확인 시 인증서 x509 에러 출력. /etc/kubernetes/admin.conf 파일이 변경되어 있는 것을 확인. kubelet.conf 에 타 클러스터 정보를 병합해야 하는 부분 없어서 발생한 것으로 추정되어, 이후 admin.conf 파일 관련해서 인증서 전체 업데이트 진행. [1]. kubectl로 노드 정보 확인시 에러 확인 $ kubectl get node Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to ve.. 더보기
nginx POD container /usr/share/nginx/html/index.html nginx 컨테이너를 replicas로 1개 이상 만들 경우 각 nginx 파일을 구분하기 위해서, index.html를 수정 [1]. nginx container index html 파일 위치 /usr/share/nginx/html/index.html [2]. nginx 컨테이너 접근 # kubectl exec -it pod/nginx-pod -n default -- bin/bash [3]. index.html 파일 수정 replicas로 1개 이상 만들 경우 각 nginx 파일을 구분하기 위해서, index.html를 수정 root@nginx-pod:/usr/share/nginx/html# cat ./index.html Welcome to nginx! If you see this page, the n.. 더보기
NTP offline 환경에서 설정 chrony.conf ● 인터넷이 안되는 환경(isolated network)에서 NTP구성을 할 때 사용하는 방법을 정리 [1] NTP Local Server 설정 offline-ntpserver [root:/root] $ grep ^[^#] /etc/chrony.conf server 127.127.1.1 iburst local stratum 10 allow 192.168.0.0/16 manual server 는 127.127.1.0 127.127.1.1 IP 주소를 사용합니다. (또는 server 항목을 삭제) 시간 소스에 동기화되지 않은 경우에도 시간 제공 # Serve time even if not synchronized to a time source. local stratum 10 manual "manual" 지침은.. 더보기
Docker ubuntu ssh 컨테이너 % podman build -t my-ubuntu:latest . #FROM docker.io/library/ubuntu:latest #FROM docker.io/library/debian:latest FROM docker.io/library/ubuntu:20.04 MAINTAINER Seoul # Environment USER root ENV LANG=ko_KR.utf8 TZ=Asia/Seoul ENV DEBIAN_FRONTEND noninteractive # PKG Install for Ubuntu RUN apt-get update RUN apt-get install -y openssh-server aptitude net-tools curl wget lrzsz iputils-ping iproute2 .. 더보기
OpenStack Neutron List checking script def subfunction_showopenstack_subnetneutron(): try: openstackhypervisorlist = subprocess.check_output("neutron subnet-list -c id | awk '{print $2}' | grep -v ^$|grep -v id", shell=True).split("\n") for item in openstackhypervisorlist: if len(item ) > 0: OPENSTACK_CMD_OUTPUT = "neutron subnet-show " + item OPENSTACK_CMD_RESULT = subprocess.check_output( OPENSTACK_CMD_OUTPUT, shell=True ) print( ".. 더보기