This directory contains Kubernetes resources that are defined in YAML and to be deployed using kubectl.
The helm directory contains Kubernetes resources that are to be deployed using helm.
This section covers software tools that you need to install to use Kubernetes resources.
Install kubectl on a RHEL-based system:
cat <<EOF | sudo tee /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name = Kubernetes
baseurl = https://pkgs.k8s.io/core:/stable:/v1.28/rpm/
enabled = 1
gpgcheck = 1
gpgkey = https://pkgs.k8s.io/core:/stable:/v1.28/rpm/repodata/repomd.xml.key
skip_if_unavailable = 1
EOF
sudo yum install kubectlInstall kubectl on a Debian-based system:
sudo apt-get update
sudo apt-get install -y ca-certificates curl software-properties-common
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo add-apt-repository -y "deb https://apt.kubernetes.io/ kubernetes-xenial main"
sudo apt-get update
sudo apt-get install kubectlInstall helm on a RHEL-based system:
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 0700 ./get_helm.sh
./get_helm.sh
rm -f ./get_helm.shInstall helm on a Debian-based system:
sudo apt-get update
sudo apt-get install -y apt-transport-https curl software-properties-common
curl -fsSL https://baltocdn.com/helm/signing.asc | sudo apt-key add -
sudo add-apt-repository -y "deb https://baltocdn.com/helm/stable/debian/ all main"
sudo apt-get update
sudo apt-get install helmAdd Helm repositories:
helm repo add democratic-csi https://democratic-csi.github.io/charts/
helm repo add enix https://charts.enix.io
helm repo add kubecost https://kubecost.github.io/cost-analyzer/
helm repo add vmware-tanzu https://vmware-tanzu.github.io/helm-charts
helm repo updateInstall istioctl:
ISTIO_VERSION="1.19.0"
curl -fsSL -o istioctl.tar.gz "https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istioctl-${ISTIO_VERSION}-linux-amd64.tar.gz"
tar xf istioctl.tar.gz && rm -f istioctl.tar.gz
sudo mv istioctl /usr/local/bin/
sudo chmod 0755 /usr/local/bin/istioctl
istioctl version