8echo " ๐ If you encounter any issues during the installation please open an issue:"
9echo " https://github.com/typeable/octopod/issues/new"
11echo " โน๏ธ Please note that you might experience performance issues if you have low resouce limits:"
12echo " https://github.com/typeable/octopod/blob/master/docs/en/Octopod_deployment_guide.md#if-you-want-to-try-it-locally"
15for cmd in kind kubectl helm; do
16 if ! command -v $cmd &> /dev/null; then
17 message "$cmd is not installed. Please, install it!"
21if [ "$(helm version --short | awk -F '.' '{print $1}')" != "v3" ]; then
22 message 'Your version of helm is not supported. Please install helm 3'
25if [ "$(kind version | awk -F ' ' '{print $2}')" != "v0.11.1" ]; then
26 message "Warning! This kind version hasn't been tested"
28if kind get clusters | grep -q octopod; then
29 echo -n 'Octopod kind cluster already exists. Do you want do delete it? [y/n] ';
31 if [ "$confirm" != 'y' ]; then
35 message "Deleting and recreating cluster"
36 kind delete cluster --name octopod
39message "Creating kind cluster"
40cat <<EOF | kind create cluster --config=-
42apiVersion: kind.x-k8s.io/v1alpha4
50 kind: InitConfiguration
53 node-labels: "ingress-ready=true"
62cat <<EOF | kubectl --context=kind-octopod apply -f -
67 namespace: kube-system
76 kubernetes cluster.local in-addr.arpa ip6.arpa {
78 fallthrough in-addr.arpa ip6.arpa
82 forward . 8.8.8.8 1.1.1.1 {
91message "Installing ingress-nginx controller"
92kubectl --context=kind-octopod apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.45.0/deploy/static/provider/kind/deploy.yaml
96 kube_out=`kubectl --context=kind-octopod -n ingress-nginx get deploy 2>&1`
99 if [ $err_code != 0 ] && [ $has_error == 0 ]; then
100 echo "kubectl returned: $kube_out"
101 echo "Do you want to continue installation? [y/n] "
103 if [ "$confirm" != 'y' ]; then
104 message "Deleting cluster..."
105 kind delete cluster --name octopod
111 if [ $err_code == 0 ] && [ $( echo -n "$kube_out" | awk -F ' ' '$1 ~ /^ingress-nginx/ {print $4}') == '1' ]; then
112 message 'ingress-controller is ready'
115 message 'waiting for ingress-controller to become ready...'; sleep 5;
118message "Creating nessesary namespaces"
119kubectl --context=kind-octopod create ns octopod
120kubectl --context=kind-octopod create ns octopod-deployment
121message "Adding typeable helm repository"
122helm repo add typeable https://typeable.github.io/octopod
124message "Installing octopod helm chart"
125helm --kube-context=kind-octopod -n octopod install octopod typeable/octopod --wait --timeout=5m --set octopod.baseDomain="lvh.me" --set ingress.tls.enabled=false
127echo " ๐ Don't forget to star Octopod on GitHub:"
128echo " https://github.com/typeable/octopod"
130echo " ๐๏ธ To uninstall Octopod just run:"
131echo " 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