how to install kubernetes code example
Example 1: install kubernetes on ubuntu
# Installing Kubectl
curl -LO https:
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
# Installing Minikube
curl -Lo minikube https:
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/
minikube start --driver=none
# If this fails with a message "requires conntrack to be installed in root's path"
sudo apt install conntrack
# then try again
sudo minikube start --driver=none
#check the status
sudo minikube status
# Output:
#host: Running
#kubelet: Running
#apiserver: Running
#kubeconfig: Configured
#It is suggested (by minikube) to change the ownership and
#permissions of ~/.kube and ~/.minikube after the installation.
sudo chown -R $USER $HOME/.kube
sudo chown -R $USER $HOME/.minikube
Example 2: bash install kubectl
curl -LO https:
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
Example 3: kubectl download
curl -LO https:
Example 4: install kubernetes on ubuntu
sudo apt-add-repository "deb http://apt.kubernetes.io/ kubernetes-xenial main"
Example 5: install kubernetes plg
$ helm repo add loki https:
$ helm repo update
$ helm upgrade --install loki loki/loki-stack --set grafana.enabled=true,prometheus.enabled=true,prometheus.alertmanager.persistentVolume.enabled=false,prometheus.server.persistentVolume.enabled=false
Example 6: install tekton on kubernetes
Prerequisites
* Kubernetes cluster
* grant cluster-admin role to current user
kubectl apply --filename https: