---
title: "Discussion on \"K8s_(kubeadm)_Install_by_Shell_script_in AWS EC2 Instance. \" | Hashnode"
description: "Discussion on \"K8s_(kubeadm)_Install_by_Shell_script_in AWS EC2 Instance. \". Run on the Master node\n#!/bin/bash\n\n# Exit on error\nset -e\n\n# Disable swap\necho \"Disabling swap...\"\nsudo swapoff -a\nsudo sed -i '/ swap / s/^\\(.*\\)$/#\\1/g' /etc/fstab\n\n# Load necessary kernel modules"
url: "https://hashnode.com/posts/k8s-kubeadm-install-by-shell-script-in-aws-ec2-instance/69d690d8707c1ce768641e35"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [K8s\_(kubeadm)\_Install\_by\_Shell\_script\_in AWS EC2 Instance.](https://mohammadwithdevops.hashnode.dev/k8s-kubeadm-install-by-shell-script-in-aws-ec2-instance?utm_source=hashnode&utm_medium=feed)

Run on the Master node #!/bin/bash # Exit on error set -e # Disable swap echo "Disabling swap..." sudo swapoff -a sudo sed -i '/ swap / s/^\\(.\*\\)$/#\\1/g' /etc/fstab # Load necessary kernel modules

Apr 8 · 5 min read · mohammadwithdevops.hashnode.dev  
Read the article

## Written by

[Md Nur Mohammad](https://hashnode.com/@Mohammad2451)

@Mohammad2451 · Cologne,Germany

  
[View profile](https://hashnode.com/@Mohammad2451)

DevOps and Cloud Engineer

I am pursuing a Master's in Communication Systems and Networks at the Cologne University of Applied Sciences, Germany.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
