Skip to content

Instantly share code, notes, and snippets.

@markruler
markruler / offline-k8s-guide-1.md
Last active March 24, 2021 14:08
Install Kubernetes on an Offline CentOS 7 Machine - (1) ONLINE SERVER

Install Kubernetes on an Offline CentOS 7 Machine - (1) ONLINE SERVER

pkg
├── 1-server
├── 2-cri
├── 3-k8s
├── 4-cni
├── 5-gpu
└── 6-mec
@markruler
markruler / gpu.md
Last active November 23, 2020 09:17
GPU Node in k8s

1. NVIDIA 드라이버 설치 on Ubuntu

# 버전에 맞게 설치

# sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
# sudo sh -c 'echo "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64 /" > /etc/apt/sources.list.d/cuda.list'
@markruler
markruler / offline-k8s-guide-2.md
Last active March 24, 2021 14:08
Install Kubernetes on an Offline CentOS 7 Machine - (2) OFFLINE SERVER

Install Kubernetes on an Offline CentOS 7 Machine - (2) OFFLINE SERVER

pkg
├── 1-server
├── 2-cri
├── 3-k8s
├── 4-cni
├── 5-gpu
└── 6-mec
@markruler
markruler / kubespray-error-1.md
Created November 23, 2020 02:43
kubespray error (1) 0070-system-packages.yml:73

kubespray error (1) 0070-system-packages.yml:73

  • task path: /root/pkg/kubespray/roles/kubernetes/preinstall/tasks/0070-system-packages.yml:73
  • problem: 미리 rpm 패키지를 수동으로 설치해서 버전 차이로 생긴 오류
  • solved: worker1 노드로 가서 해당되는 패키지 업데이트 명령
  • yum update <pkg>
    • yum update unzip xfsprogs openssl e2fsprogs
  • 아래는 에러 문구
@markruler
markruler / jaeger.md
Last active December 11, 2020 03:21
Jaeger on Minikube

Jaeger on Minikube

Install Helm chart for Jaeger operator

cd $HOME

wget https://github.com/jaegertracing/helm-charts/releases/download/jaeger-operator-2.17.0/jaeger-operator-2.17.0.tgz
# or
curl -L https://github.com/jaegertracing/helm-charts/releases/download/jaeger-operator-2.17.0/jaeger-operator-2.17.0.tgz -O
@markruler
markruler / containerd.md
Last active December 11, 2020 07:06
containerd on Minikube
@markruler
markruler / cgroup.memory.md
Last active February 2, 2023 11:25
cgroup.memory "cannot allocate memory"

"cannot allocate memory"

kubectl get pod -A --field-selector spec.nodeName=worker-node -o wide
kubectl describe pod calico-node-hh2g8 -n kube-system
@markruler
markruler / linux-networking-tools.md
Created December 16, 2020 08:56 — forked from miglen/linux-networking-tools.md
Linux networking tools

List of Linux networking tools

netstat (ss)

Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.

Sample output:

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4 0 0 127.0.0.1.62132 127.0.0.1.http ESTABLISHED
@markruler
markruler / gitconfig.ini
Created March 23, 2021 14:10 — forked from tdd/gitconfig.ini
Nice, useful global Git configuration
# Put this in your ~/.gitconfig or ~/.config/git/config
# Windows users: "~" is your profile's home directory, e.g. C:\Users\<YourName>
[user]
name = Your Full Name
email = [email protected]
[color]
# Enable colors in color-supporting terminals
ui = auto
[alias]
# List available aliases