Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Ansible for deploying Kubernetes with KubeAdm

License

NotificationsYou must be signed in to change notification settings

npflan/k8s-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick and dirty ansible for deploying kubernetes with kubeadm.

Based on this guidehttps://www.arubacloud.com/tutorial/how-to-create-kubernetes-cluster-with-kubeadm-and-ansible-ubuntu-20-04.aspx

Status

  • Basic ansible to deploy a cluster with a single master (prepared for HA)
  • HA Control Plane
  • Removal of hardcoded variables such as Service/Pod CIDR Ranges

Components

For CNI we usekube-router.

Rather than using Docker for the container runtime, we usecontainerd.

We are using kube-router to expose ClusterIP services to the network, running a highly available control plane, this is W.I.P.

Deployment phases

Pre-reqs

Create an ansible inventory in hosts. Each host should be running Ubuntu 20.04.

Generate a SSH key

ssh-keygen -t rsa -m PEM -f npf-ansible -C "npf-ansible"

Add SSH key to agentssh-add npf-ansible

Copy SSH key to each hostssh-copy-id -i npf-ansible npf@172.20.22.11

Phase 1: Initial setup

Execute ansible playbook initialansible-playbook -i hosts initial.yml --ask-become-pass

Phase 2: Install kubernetes dependencies

Execute ansible playbook depsansible-playbook -i hosts deps.yml --ask-become-pass

Phase 3: Create kubernetes cluster

Execute ansible playbook depsansible-playbook -i hosts kubeadm-init.yml --ask-become-pass

Phase 4: Join worker nodes to cluster

Execute ansible playbook depsansible-playbook -i hosts kubeadm-join.yml --ask-become-pass

About

Ansible for deploying Kubernetes with KubeAdm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp