mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
add mongodb pv
This commit is contained in:
@@ -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
|
||||
+13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user