Skip to content

Instantly share code, notes, and snippets.

View Santosh1176's full-sized avatar
💭
Always Learning

Santosh Kaluskar Santosh1176

💭
Always Learning
View GitHub Profile
@Santosh1176
Santosh1176 / k8s-1-27.sh
Created July 10, 2023 11:20
Script to install Kubeadm cluster v1.27 with Containerd and Flannel/Cilium as CNI
echo "Install kubectl,kubeadm ,and kubelet v1.27.1"
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
echo "kubeadm install"
sudo apt update -y
sudo apt -y install curl wget kubelet=1.27.1-00 kubeadm=1.27.1-00 kubectl=1.27.1-00
echo "Disable memory swapoff"
sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab
@Santosh1176
Santosh1176 / read_syscall_test.go
Last active March 16, 2023 22:10
A simple Go program for testing Seccomp filters, allowing only the `read` syscall.
package main
import (
"fmt"
"os"
"syscall"
)
func main() {
fmt.Println("Testing seccomp filters...")