03cfcc1e1a4485f93b41423e02cb6c66a5bd4503
:Why/What: - node-exporter와 topology-agent가 같이 배포되도록 수정 - node-exporter의 컨테이너명을 node-agent로 수정 - node-exporter scrape rule 명칭을 agent로 수정 :Tasks: [CLOUD-19283] Topology Agent 와 node exporter 통합 <https://app.clickup.com/t/25540965/CLOUD-19283>
ansible installer
- 사전 작업 필요
- CentOS ansible 설치 방법 : 00_ansible_setup 폴더 내 setup_local.sh 실행
- 각 서버에 ssh-key 배포
- 확인 명령어
: ansible all -m ping -i
- 수정필요파일
-
inventory : 각 서버 IP
-
cmoa_install.yaml : 이미 kubernetes가깔려있다면
- role: cmoa_os_setting주석 처리 -
roles/cmoa_install/defaults/main.yml : cmoa_version: relx.x.x
- 실행 방법
: ansible-playbook cmoa_install.yaml
or
: ansible-playbook cmoa_install.yaml -i
- Kubernetes Cluster 리셋 방법
- cmoa_install.yaml
---
- hosts: cluster
become: true
gather_facts: true
environment:
KUBECONFIG: /root/.kube/ansible_config
roles:
- role: cmoa_reset
위와 같이
- role: cmoa_reset만 활성화 후 3번 실행
실행할 경우 kubeadm reset 수행과 cri 종료, kubeadm, kubectl, kubelet, cri 삭제
reset을 할 경우 최초 cluster 구성할때 사용한 cri만 사용 가능docker 사용 -> reset -> docker 사용
containerd 사용 -> reset -> containerd 사용
crio 사용 -> reset -> crio 사용
Description
Languages
Python
92%
Jinja
4.7%
Shell
1.8%
Smarty
1.3%
HCL
0.2%