Skip to content

Instantly share code, notes, and snippets.

View taking's full-sized avatar
🐈
Focusing

taking taking

🐈
Focusing
View GitHub Profile
# broker
export KUBECONFIG=~/.kube/config
export BROKER_NS=submariner-k8s-broker
export SUBMARINER_NS=submariner-operator
export SUBMARINER_PSK=$(LC_CTYPE=C tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w 64 | head -n 1)
helm repo add submariner-latest https://submariner-io.github.io/submariner-charts/charts
helm repo update
helm install submariner-helm submariner-latest/submariner-k8s-broker \
curl -Ls https://get.submariner.io | bash
cp ~/.local/bin/subctl /usr/bin
rm -rf ~/.local/bin/
subctl version
curl -O -L https://github.com/projectcalico/calicoctl/releases/download/v3.18.1/calicoctl
chmod +x calicoctl
mv calicoctl /usr/bin
@taking
taking / [Ubuntu] Docker, Kubernetes, helm Install Shell Script
Last active March 30, 2021 08:52
쿠버네티스 설치부터 helm 을 이용한 istio service mesh 구성까지
#!/bin/bash
RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`
# Check permission
if [ "$EUID" -ne 0 ]
then echo "${RED}Please run as root ${NC}"
exit
#!/bin/bash
# Author by Taking
# (1) K3s Install + Reset
# (2) Gloo Mesh
# (3) Istio
# (4) Multi Cluster
# (임시) Master IP 설정 값
M_IP=192.168.150.194
SERVERPASS="YourP@ss"
#!/bin/bash
# Author by Taking
# (1) K3s Install + Reset
# (2) Istio + Multi Cluster
# (3) Multi Cluster
# Check permission
if ! [ $(id -u) = 0 ]
then echo "${RED}Please run as root ${NC}"
#!/bin/bash
RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`
#apt install jq -y
get_latest_release() {
package main
import (
"errors"
"fmt"
"log"
"github.com/gophercloud/gophercloud"
"github.com/gophercloud/gophercloud/openstack"
"github.com/gophercloud/gophercloud/openstack/compute/v2/extensions/keypairs"
#!/bin/bash
# Author by Taking
# (1) go language install + env
DL_PATH_URL="$(wget --no-check-certificate -qO- https://golang.org/dl/ | grep -oP '\/dl\/go([0-9\.]+)\.linux-amd64\.tar\.gz' | head -n 1)"
go_latest_ver="$(echo $DL_PATH_URL | grep -oP 'go[0-9\.]+' | grep -oP '[0-9\.]+' | head -c -2 )"
echo "go ver is $go_latest_ver"
if [ -d /usr/local/go ]; then
@taking
taking / .zshrc
Last active May 12, 2022 00:40
My zshrc
# If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/$USER/.oh-my-zsh
DEFAULT_USER="$USER"
ZSH_THEME="agnoster"
#!/bin/bash
## ROOT 계정으로 실행하기
## 21-03-02
#!/bin/bash
RED=`tput setaf 1`
GREEN=`tput setaf 2`
NC=`tput sgr0`