Installing Kubernetes

Installing Kubernetes

July 10, 2023 | permanent

Tags #

Installing Kubernetes #

Used Kubespray to do the installation. Installed 1 master node and 2 worker nodes.

Important points observed during the installation #

  1. Following ECK quick install guide worked directly with , but while installing in the test environment the installation was failing because of the absence of persistence volume of Kubernetes.

Creating #

  1. Now object to create persistent volume
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: nfs-pv-1
  labels:
    type: nfs-local
spec:
  capacity:
    storage: 400Gi # 400GB storage
  accessModes:
    - ReadWriteOnce
  persistentVolumeReclaimPolicy: Retain
  storageClassName: local-storage
  hostPath:
    path: "/shared01/volumes/pv1"  # this is the path where NFS is mounted on all the cluster elements

Apply this object with

kubectl apply -f name.yaml

Now Kubernetes cluster is ready with for cluster persistent storage.


Links to this note

Go to random page

Previous Next