Skip to content

Latest commit

 

History

History
86 lines (64 loc) · 2.27 KB

README.md

File metadata and controls

86 lines (64 loc) · 2.27 KB

[Back to Index Page]

Kubernetes Resources

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.

Prerequisites

This section covers software tools that you need to install to use Kubernetes resources.

Kubectl

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 kubectl

Install 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 kubectl

Helm

Install 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.sh

Install 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 helm

Add 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 update

Istioctl

Install 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