ansible 3

Kubernetes install with kubespray

Kubespray 를 이용한 Kubernetes 설치 (Baremetal)사전준비서버 노드 준비3대 Node 192.168.28.15192.168.28.16192.168.28.17서버 노드 환경설정 : kubernetes-101 참고{:target="_blank"}Swap 영역을 비활성화SELinux Disable방화벽 Disable브릿지 네트워크 할성화설치 노드에서의 ssh 접속 허용 : SSH 키복사 ssh-copy-id설치 준비Git : Repository ClonePython3 : Inventory 및 환경 설정을 위한 스크립트 실행Ansible : 원격 실행(설치) ansible-playbookRepository clone 및 Python package install $ git clone htt..

devops 2025.05.19

Ansible-101

Ansible-101Ansible InstallCentos 7 기본적으로 Python 2.7 기반으로 설치 됨 추후 pywinrm 패키지가 필요할때, python2-pip 패키지 추가 설치 필요 sudo yum install ansible대안으로 pip 으로 설치 하는 방법 (user)pip install ansible # --user 용어 정의Inventory : 관리하는 원격 서버 목록 지정하지 않으면 Default Path 의 hosts 파일을 참조 /etc/ansible/hostsModule : Task 를 실행하는 방법 (모듈) https://docs.ansible.com/ansible/latest/modules/modules_by_category.htmle.g. - command, shell,..

devops 2025.05.19