kubernetes installation code example

Example 1: kubectl download

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl

Example 2: kubernetes setup

ibmcloud plugin install container-registry

Example 3: install kubernetes plg

$ helm repo add loki https://grafana.github.io/loki/charts
$ 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 4: install tekton on kubernetes

Prerequisites
* Kubernetes cluster
* grant cluster-admin role to current user

kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml

Example 5: install kubernetes on ubuntu

sudo apt-mark hold kubeadm kubelet kubectl

Tags:

C Example