https://github.com/rancher/local-path-provisioner
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.22/deploy/local-path-storage.yaml
| #!/bin/bash | |
| PID=$$ | |
| RESTART_SECONDS_AFTER=15 | |
| get_date() { | |
| echo $(TZ="Asia/Seoul" date +%Y%m%d) | |
| } | |
| run_jobs() { | |
| $@ & |
| #!/bin/bash | |
| JOBS=() | |
| run_jobs() { | |
| $@ & | |
| JOBS+=($!) | |
| } | |
| while true; | |
| do |
| USERNAME="samsung" | |
| PASSWORD="pass" | |
| SQL="use radius; INSERT INTO radcheck (username, attribute, op, value) VALUES ('$USERNAME','User-Password',':=','$PASSWORD');" | |
| mysql -u root -p radius <<EOF | |
| $SQL | |
| EOF |
| ip6tables --policy INPUT DROP; | |
| ip6tables --policy OUTPUT ACCEPT; | |
| ip6tables --policy FORWARD DROP; | |
| ip6tables -Z; | |
| ip6tables -F; | |
| ip6tables -X; | |
| ip6tables -t nat -F | |
| ip6tables -t mangle -F |
https://github.com/rancher/local-path-provisioner
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.22/deploy/local-path-storage.yaml
| socat -d -d TCP4-LISTEN:10999,fork TCP:10.50.20.1:4000 |
| #!/bin/bash | |
| set -xe | |
| # kernel parameter | |
| cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf | |
| br_netfilter | |
| EOF | |
| cat <<EOF | sudo tee /etc/sysctl.d/k8s.conf | |
| net.bridge.bridge-nf-call-ip6tables = 1 |
| // | |
| // NodeJS에서 xlsx파일 merge 프로그램 백업 | |
| // express.js랑 묶여있어서 참고용 | |
| // | |
| // | |
| const UPLOAD_TMPDIR = `${process.cwd()}/uploads_tmp/`; | |
| const UPLOAD_DIR = `${process.cwd()}/uploads/`; | |
| const TypeAPPSTATUS = { | |
| WAIT: 0, |
| #!/bin/bash | |
| set -xe | |
| PWD=$(pwd) | |
| var_username="kerus1024" | |
| var_userpass="temppass1234" | |
| #var_rootpass="temppass1234" | |
| var_sshport=1234 | |
| #var_sshpublickey= | |
| #var_swapsize=4096 |
| #!/bin/bash | |
| # Rocky Linux 8 | |
| # https://www.linuxtechi.com/how-to-install-kubernetes-cluster-rhel/ | |
| set -x | |
| set -e | |
| # master 01 or 02,03/worker | |
| SWITCH_PRIMARY=y | |