Tags
Installing Kubernetes
Used Kubespray Ansible Role to do the installation. Installed 1 master node and 2 worker nodes.
Important points observed during the installation
- 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
- Creating Storage Class
- 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.