# egrep -v "^[[:space:]]*#|^$" values.yamlcustomLabels:{}image:baseRepo: registry.cn-hangzhou.aliyuncs.comnfs:repository: ccr.ccs.tencentyun.com/abcdh/abpaytag: nfsplugin-v4.11.0pullPolicy: IfNotPresentcsiProvisioner:repository: registry.cn-hangzhou.aliyuncs.com/google_containers/csi-provisionertag: v5.2.0pullPolicy: IfNotPresentcsiResizer:repository: registry.cn-hangzhou.aliyuncs.com/google_containers/csi-resizertag: v1.13.1pullPolicy: IfNotPresentcsiSnapshotter:repository: registry.cn-hangzhou.aliyuncs.com/google_containers/csi-snapshottertag: v8.2.0pullPolicy: IfNotPresentlivenessProbe:repository: registry.cn-hangzhou.aliyuncs.com/google_containers/livenessprobetag: v2.15.0pullPolicy: IfNotPresentnodeDriverRegistrar:repository: registry.cn-hangzhou.aliyuncs.com/google_containers/csi-node-driver-registrartag: v2.13.0pullPolicy: IfNotPresentexternalSnapshotter:repository: registry.cn-hangzhou.aliyuncs.com/google_containers/snapshot-controllertag: v8.2.0pullPolicy: IfNotPresent
serviceAccount:create:true# When true, service accounts will be created for you. Set to false if you want to use your own.controller: csi-nfs-controller-sa # Name of Service Account to be created or usednode: csi-nfs-node-sa # Name of Service Account to be created or usedrbac:create:truename: nfs
driver:name: nfs.csi.k8s.iomountPermissions:0feature:enableFSGroupPolicy:trueenableInlineVolume:falsepropagateHostMountOptions:falsekubeletDir: /var/lib/kubelet
controller:name: csi-nfs-controllerreplicas:1strategyType: RecreaterunOnMaster:falserunOnControlPlane:falseenableSnapshotter:trueuseTarCommandInSnapshot:falselivenessProbe:healthPort:29652logLevel:5workingMountDir: /tmpdnsPolicy: ClusterFirstWithHostNet # available values: Default, ClusterFirstWithHostNet, ClusterFirstdefaultOnDeletePolicy: delete # available values: delete, retainaffinity:{}nodeSelector:{}priorityClassName: system-cluster-criticaltolerations:-key:"node-role.kubernetes.io/master"operator:"Exists"effect:"NoSchedule"-key:"node-role.kubernetes.io/controlplane"operator:"Exists"effect:"NoSchedule"-key:"node-role.kubernetes.io/control-plane"operator:"Exists"effect:"NoSchedule"-key:"CriticalAddonsOnly"operator:"Exists"effect:"NoSchedule"resources:csiProvisioner:limits:memory: 400Mirequests:cpu: 10mmemory: 20MicsiResizer:limits:memory: 400Mirequests:cpu: 10mmemory: 20MicsiSnapshotter:limits:memory: 200Mirequests:cpu: 10mmemory: 20MilivenessProbe:limits:memory: 100Mirequests:cpu: 10mmemory: 20Minfs:limits:memory: 200Mirequests:cpu: 10mmemory: 20Mi
node:name: csi-nfs-nodednsPolicy: ClusterFirstWithHostNet # available values: Default, ClusterFirstWithHostNet, ClusterFirstmaxUnavailable:1logLevel:5livenessProbe:healthPort:29653affinity:{}nodeSelector:{}priorityClassName: system-cluster-criticaltolerations:-operator:"Exists"resources:livenessProbe:limits:memory: 100Mirequests:cpu: 10mmemory: 20MinodeDriverRegistrar:limits:memory: 100Mirequests:cpu: 10mmemory: 20Minfs:limits:memory: 300Mirequests:cpu: 10mmemory: 20Mi
externalSnapshotter:enabled:falsename: snapshot-controllerpriorityClassName: system-cluster-criticaldeletionPolicy: Deletecontroller:replicas:1resources:limits:memory: 300Mirequests:cpu: 10mmemory: 20MicustomResourceDefinitions:enabled:true#if set true, VolumeSnapshot, VolumeSnapshotContent and VolumeSnapshotClass CRDs will be created. Set it false, If they already exist in cluster.volumeSnapshotClass:create:falsename: csi-nfs-snapclassdeletionPolicy: DeleteimagePullSecrets:[]storageClass:create:truename: nfs-csiparameters:server: 172.16.8.99share: /my-nfsmountPermissions:"0"reclaimPolicy: DeletevolumeBindingMode: ImmediatemountOptions:- nfsvers=4.1- noresvport- soft- timeo=50
说明:fastapiangular评论和回复
效果图:
step1:sql
show databases;
DROP TABLE users;
SHOW CREATE TABLE db_school.users;
show tables;
use db_school;
SELECT * FROM db_school.jewelry_categories;
CREATE DATABASE db_school;
select *from users
-- 用户…