6for cmd in kind kubectl helm; do
7 if ! command -v $cmd &> /dev/null; then
8 message "$cmd is not installed. Please, install it!"
12if [ "$(helm version --short | awk -F '.' '{print $1}')" != "v3" ]; then
13 message 'Your version of helm is not supported. Please install helm 3'
16if [ "$(kind version | awk -F ' ' '{print $2}')" != "v0.11.1" ]; then
17 message "Warning! This kind version hasn't been tested"
19if kind get clusters | grep -q octopod; then
20 echo -n 'Octopod kind cluster already exists. Do you want do delete it? [y/n] ';
22 if [ "$confirm" != 'y' ]; then
26 message "Deleting and recreating cluster"
27 kind delete cluster --name octopod
30message "Creating kind cluster"
31cat <<EOF | kind create cluster --config=-
33apiVersion: kind.x-k8s.io/v1alpha4
41 kind: InitConfiguration
44 node-labels: "ingress-ready=true"
53cat <<EOF | kubectl apply -f -
58 namespace: kube-system
67 kubernetes cluster.local in-addr.arpa ip6.arpa {
69 fallthrough in-addr.arpa ip6.arpa
73 forward . 8.8.8.8 1.1.1.1 {
82message "Installing ingress-nginx controller"
83kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.45.0/deploy/static/provider/kind/deploy.yaml
85 if [ $(kubectl -n ingress-nginx get deploy | awk -F ' ' '$1 ~ /^ingress-nginx/ {print $4}') == '1' ]; then
86 message 'ingress-controller is ready'
89 message 'waiting for ingress-controller to become ready...'; sleep 5;
92message "Creating nessesary namespaces"
93kubectl create ns octopod
94kubectl create ns octopod-deployment
95message "Adding typeable helm repository"
96helm repo add typeable https://typeable.github.io/octopod
98message "Installing octopod helm chart"
99helm -n octopod install octopod typeable/octopod --wait --timeout=5m --set octopod.baseDomain="lvh.me" --set ingress.tls.enabled=false
100message "Octopod was successfully installed! Use instruction above to connect to it."
101message "To uninstall octopod just run: kind delete cluster --name octopod"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list