diff --git a/adhoc-config/mongodb-local-pv..yaml b/adhoc-config/mongodb-local-pv..yaml new file mode 100644 index 0000000..5734576 --- /dev/null +++ b/adhoc-config/mongodb-local-pv..yaml @@ -0,0 +1,25 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: mongodb-local-pv + labels: + type: local + name: mongodb +spec: + capacity: + storage: 20Gi + volumeMode: Filesystem + accessModes: + - ReadWriteOnce + persistentVolumeReclaimPolicy: Delete + storageClassName: local-storage + local: + path: /mnt/k8s/mongodb-data + nodeAffinity: + required: + nodeSelectorTerms: + - matchExpressions: + - key: kubernetes.io/hostname + operator: In + values: + - server-3 diff --git a/recovery.sh b/recovery.sh index a6485cd..7b94a2a 100644 --- a/recovery.sh +++ b/recovery.sh @@ -137,3 +137,16 @@ fs.inotify.max_user_watches=655360 # apply change sudo sysctl --system + + + +### client add + +# install crio + +https://computingforgeeks.com/install-cri-o-container-runtime-on-ubuntu-linux/ + +# update cgroup driver +https://kubernetes.io/docs/setup/production-environment/container-runtimes/#cgroup-driver + +# install kubeadm and kublet