Jump to content

New cluster deployment

From Costa's Wiki
Revision as of 20:46, 10 April 2023 by 172.17.0.1 (talk)
Kubespray

https://github.com/kubernetes-sigs/kubespray https://schoolofdevops.github.io/ultimate-kubernetes-bootcamp/cluster_setup_kubespray/

No Kubernetes config
mkdir -p $HOME/.kube   
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config   
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Ansible sudo
$ vim group_vars/all
ansible_connection: ssh
ansible_ssh_user: rafael
ansible_ssh_pass: password123
ansible_become_pass: password123
Bypassing authentication for the local Kubernetes Cluster Dashboard

https://medium.com/@tejaswi.goudru/disable-authentication-https-in-kubernetes-dashboard-2fada478ce91

How To Access Kubernetes Dashboard Externally

https://www.thegeekdiary.com/how-to-access-kubernetes-dashboard-externally/

How to install Prometheus Node Exporter on Ubuntu 20.04

https://ourcodeworld.com/articles/read/1686/how-to-install-prometheus-node-exporter-on-ubuntu-2004

Prometheus storage size management

https://prometheus.io/docs/prometheus/latest/storage/

Set up and run Filebeat

https://www.elastic.co/guide/en/beats/filebeat/7.17/setup-repositories.html

Prevent from filebeat to logging to /var/messages

https://discuss.elastic.co/t/prevent-from-filebeat-to-logging-to-var-messages/223773

Docker flooding syslog with run-docker-runtime logs

https://stackoverflow.com/questions/63622619/docker-flooding-syslog-with-run-docker-runtime-logs

Insecure local registry
..inventory/my-cluster/group_vars/all/containerd.yml

containerd_insecure_registries:
#   "localhost": "http://127.0.0.1"
#   "172.19.16.11:5000": "http://172.19.16.11:5000"
   "10.0.0.26:49154": "http://10.0.0.26:49154"
Edit docker image

https://phoenixnap.com/kb/how-to-commit-changes-to-docker-image

Docker crontab

https://github.com/willfarrell/docker-crontab