목록분류 전체보기 (53)
삽더하기실수

ExternalName 이란 클러스터 내부의 Pod가 외부 서비스에서 도메인 이름을 통해 접근하는데 사용된다. 즉. 외부에서 사용자가 접근 하는 방법인 도메인이라기 보다는 개발자나 관리자가 접근하기 쉽도록 하는 도메인이라고 생각한다. ext-url-1.yml apiversion: v1 kind: Service metadata: name: ex-url-1 namespace: default sepc: type: ExternalName externalName: sysnet4admin.github.io ext-url-2.yml apiversion: v1 kind: Service metatdata: name: ex-url-2 namespace: default sepc: type: ExternalName exter..

timezone.yml --- - name: Setup linux timezone hosts: CentOS:Ubuntu gather_facts: no become: yes tasks: - name: set timezone to Asisa/Seoul timezone: name=Asia/Seoul - name: Setup Windows timezone hosts: win gather_facts: no tasks: - name: set timezone to 'Korea Standard Time' win_timezone: timezone='Korea Standard Time' ansible-playbook timezone.yml -k

pip install pywinrm 명령어 실행 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-JIPSVc/requests/ You are using pip version 8.1.2, however version 23.2.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command. 해당 오류가 발생하였다. 오류에서 해결방안을 준것과 같이 pip isntall --upgrade pip 실행 Usage: pip [options] no such option: -y [vagrant@ansible-server ~]$ pi..
nginx_install.yml - name: Install nginx on Ubuntu hosts: Ubuntu gather_facts: no become: yes tasks: - name: install nginx web server apt: pkg=nginx state=present update_cache=yes - name: Donwload default index.html for web server get_url: url=https://www.apache.com dest=/usr/share/nginx/html mode=0644 validate_certs=no bash 실행하기 ansible-playbook nginx_install.yml -k
ansible_mnt.yml --- - name: Setup for nfs server hosts: localhost gather_facts: no tasks: - name: make nfs_shared directory file: path: /home/vagrant/nfs_shared state: directory mode: 0777 - name: configure /etc/exports become: yes lineinfile: path: /etc/exports line: /home/vagrant/nfs_shared 192.168.1.0/24(rw,sync) - name : nfs service restart become: yes service : name : nfs state : restarted ..
nfs.yml --- 2 - name: Setup linux timezone 3 hosts: CentOS:Ubuntu 4 gather_facts: no 5 become: yes 6 7 tasks: 8 - name: set Timezone to Asia/Seoul 9 timezone: name=Asia/Seoul /etc/ansible/hosts [CentOS] node01 node02 [Ubuntu] node03 node04 이후 실행명령어 ansible-playbook nfs.yml -k
Ubuntu Vagarnt 파일 설정중 오류가 나온다면 오류화면 Vagrant assumes that this means the command failed! umount /mnt Stdout from the command: Stderr from the command: umount: /mnt: not mounted 해당 명령어를 추가해준다. cfg.vbguest.auto_update = false