K8s中部署VS Code web版本PVC123456789101112apiVersion: v1kind: PersistentVolumeClaimmetadata: name: code-serverspec: accessModes: - ReadWriteMany resources: requests: storage: "640Gi" volumeName: storageClassName: nfs Service12345678910111213apiVersion: v1kind: Servicemetadata: name: code-server namespace: srespec: type: NodePort ports: - port: 8080 targetPort: 8080 nodePort: 30028 selector: app: code-server Deployment1234567891011121314151617181920212223242526272829303132apiVersion: apps/v1kind: Deploymentmetadata: labels: app: code-server name: code-server namespace: srespec: selector: matchLabels: app: code-server template: metadata: labels: app: code-server spec: containers: - image: codercom/code-server imagePullPolicy: IfNotPresent name: code-server ports: - containerPort: 8080 env: - name: PASSWORD value: "123456" volumeMounts: - name: coder-data mountPath: /home/coder/project volumes: - name: coder-data persistentVolumeClaim: claimName: code-server