리눅스 썸네일형 리스트형 우분투에서 rc-local 서비스를 활성화하는 방법 우분투에서 rc-local(rc.local) 서비스를 활성화하는 방법Ubuntu 22.04는 rc.local이 기본적으로 비활성화되어 있으며, systemd를 사용하는 서비스와 유닛 파일로 대체되었습니다.테스트 환경$ lsb_release -dDescription: Ubuntu 22.04.2 LTSrc-local 서비스 활성화1. rc-local 서비스 상태 확인systemctl status rc-local.service$ systemctl status rc-local.service○ rc-local.service - /etc/rc.local Compatibility Loaded: loaded (/lib/systemd/system/rc-local.service; static) Drop-In:.. 더보기 Vim에서 YAML 파일을 편집하기 위한 설정(vi/vim 환경 설정) Vim에서 YAML 파일을 편집하기 위한 설정(vi/vim 환경 설정)1. Vim 설정 파일 열기 또는 생성vim 에디터로 yaml 파일 작성 시 인덴트 및 하이라이팅, 들여쓰기 등 기능을 사용하여 효율적으로 작성할 수 있다..vimrc 파일 편집~/.vimrc 파일이 이미 있는 경우 해당 파일을 엽니다. 그렇지 않으면 새로 생성할 수 있습니다. vim ~/.vimrc2. YAML 문법 강조 설정YAML 파일의 문법을 강조하기 위해 filetype 플러그인을 활성화합니다.autocmd FileType yaml setlocal ts=2 sw=2 expandtabau FileType yaml noremap f :!python -c "import sys,yaml;yaml.safe_load(sys.stdin)".. 더보기 쿠버네티스 워크로드 - 네임스페이스(namespaces) 워크로드 - 네임스페이스(namespaces)네임스페이스 확인kubectl get namespaces$ kubectl get namespacesNAME STATUS AGEdefault Active 2d1hingress-nginx Active 2d1hkube-node-lease Active 2d1hkube-public Active 2d1hkube-system Active 2d1hmetallb-system Active 2d1hkubectl get pods --namespace kube-systemkubectl get all --namespace kube-system네임스페이스 생성kubectl create.. 더보기 쿠버네티스 볼륨(Volume) - 정적 프로비저닝(Static Provisioning) / nfs 쿠버네티스 정적 프로비저닝(Static Provisioning)nfs 서버 구성(kube-control1) - nfs 서버 구성 : https://sangchul.kr/432nfs 클라이언트 구성(kube-node1, kube-node2, kube-node3)sudo apt install -y nfs-commonshowmount -e 192.168.56.11$ showmount -e 192.168.56.11Export list for 192.168.56.11:/nfs-directory/shares-data1 192.168.56.0/24PV(Persistent Volume) 생성nfs-pv1.yaml 파일 작성vim nfs-pv1.yamlapiVersion: v1kind: PersistentVolumeme.. 더보기 쿠버네티스 워크로드 - 워크로드 리소스 쿠버네티스 워크로드 - 워크로드 리소스디플로이먼트(Deployment): 모든 Pod가 필요시 교체 또는 상호 교체할 수 있는 경우, 클러스터의 스테이트리스 애플리케이션 워크로드를 관리하기에 적합레플리카셋(ReplicaSet) - 레거시 리소스 레플리케이션컨트롤러(ReplicationController)를 대체: 레플리카 파드 집합의 실행을 항상 안정적으로 유지하는 것이다. 이처럼 레플리카셋은 보통 명시된 동일 파드 개수에 대한 가용성을 보증하는 데 사용한다.스테이트풀셋(StatefulSet): 어떻게든 스테이트(state)를 추적하는 하나 이상의 파드를 동작하게 해준다. 예를 들면, 워크로드가 데이터를 지속적으로 기록하는 경우, 사용자는 Pod와 PersistentVolume을 연계하는 Stateful.. 더보기 [Mac] virtualbox command virtualbox command virtualbox 버전 정보 VBoxManage --version > VBoxManage --version 7.0.0r153978 VM 목록 출력 VBoxManage list [--long] [--sorted] [bridgedifs | cloudnets | cloudprofiles | cloudproviders | cpu-profiles | dhcpservers | dvds | extpacks | floppies | groups | hddbackends | hdds | hostcpuids | hostdrives | hostdvds | hostfloppies | hostinfo | hostonlyifs | hostonlynets | intnets | natnets | o.. 더보기 ansible user 모듈(user module) ansible user 모듈(user module)불필요한 계정 삭제하기userDelete.yaml 파일 작성cat userDelete.yaml---- hosts: all become: true vars: user_names: - lp - news - uucp - games - mail tasks: - name: Remove the user user: name: "{{ item }}" state: absent remove: yes force: yes loop: "{{ user_names }}" register: remove_users_result - debug: msg="{{ remove_us.. 더보기 [리눅스] ansible copy모듈(copy module) ansible copy모듈(copy module) ansible --version $ ansible --version ansible [core 2.12.5] config file = /home/vagrant/.ansible.cfg configured module search path = ['/home/vagrant/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] ansible python module location = /usr/local/lib/python3.10/dist-packages/ansible ansible collection location = /home/vagrant/.ansible/collections:/usr/share.. 더보기 이전 1 ··· 93 94 95 96 97 98 99 ··· 193 다음