# k8s-setup **Repository Path**: isource/k8s-setup ## Basic Information - **Project Name**: k8s-setup - **Description**: k8s setup ==================== - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-27 - **Last Updated**: 2022-12-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Prepare vagrant centos7 environment `vagrant up` Add a raw disk for k8s nodes manually on virtualbox GUI # Full install with ansible `ansible-playbook site.yml` # Install skiping tasks runing on localhost `ansible-playbook site.yml --skip-tags dists,tls,sys_init` # Debug with tags, eg. etcd,docker `ansible-playbook site.yml --tags etcd,docker` # Repair k8s cluster after system reboot ``` ansible etcd -m systemd -a 'name=etcd state=restarted' ansible lb -m systemd -a 'name=keepalived state=restarted' ansible lb -m systemd -a 'name=nginx state=restarted' ansible control -m systemd -a 'name=kube-apiserver state=restarted' ansible control -m systemd -a 'name=kube-controller-manager state=restarted' ansible control -m systemd -a 'name=kube-scheduler state=restarted' ```