Skip to content

Instantly share code, notes, and snippets.

View gorynychalex's full-sized avatar

ALEXEY POPOVICH gorynychalex

View GitHub Profile
@gorynychalex
gorynychalex / install-k8s-flannel-debian+ubuntu.bash
Created November 9, 2023 06:22 — forked from rssws/install-k8s-flannel-debian+ubuntu.bash
Install k8s + flannel on debian / ubuntu for master / worker node
install_docker () {
distro=$(cat /etc/*-release | grep DISTRIB_ID | awk -F '=' '{print $2}' | awk '{print tolower($0)}')
distroList=("debian" "ubuntu")
if [[ -n "${distro}" ]]; then
if [[ " ${distroList[*]} " =~ " ${distro} " ]]; then
echo "Installing kubernetes on $distro"
else
echo "Upsupported system distro: ${distro}"
echo "<distro> must be one of: ${distroList[*]}"
@gorynychalex
gorynychalex / playbook_centos_install_docker.yaml
Created June 1, 2023 11:30 — forked from yonglai/playbook_centos_install_docker.yaml
An Ansible playbook to install docker-ce on Centos
---
- name: Install docker
gather_facts: No
hosts: default
tasks:
- name: Install yum utils
yum:
name: yum-utils
state: latest