| ページ一覧 | ブログ | twitter |  書式 | 書式(表) |

MyMemoWiki

差分

ナビゲーションに移動 検索に移動
791 バイト追加 、 2020年11月26日 (木) 12:45
*https://github.com/kubernetes/examples/tree/master/staging/volumes/nfs
[https://baremetal.jp/blog/2018/04/17/541/ NFS]
 
<pre>
apiVersion: v1
kind: PersistentVolume
metadata:
name: web-pv
labels:
type: local
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteMany
nfs:
server: bombaay.local
path: "/var/nfs/general"
</pre>
 
 
<pre>
$ kubectl describe pv
Name: web-pv
Labels: type=local
Annotations: &lt;none&gt;
Finalizers: [kubernetes.io/pv-protection]
StorageClass:
Status: Available
Claim:
Reclaim Policy: Retain
Access Modes: RWX
VolumeMode: Filesystem
Capacity: 5Gi
Node Affinity: &lt;none&gt;
Message:
Source:
Type: NFS (an NFS mount that lasts the lifetime of a pod)
Server: bombaay.local
Path: /var/nfs/general
ReadOnly: false
Events: &lt;none&gt;
</pre>
==デプロイ==

案内メニュー