mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	update example/nfs to v1
This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Pod
 | 
			
		||||
metadata:
 | 
			
		||||
  name: nfs-server
 | 
			
		||||
@@ -8,8 +8,8 @@ spec:
 | 
			
		||||
  containers:
 | 
			
		||||
    - name: nfs-server
 | 
			
		||||
      image: jsafrane/nfs-data
 | 
			
		||||
      privileged: true
 | 
			
		||||
      ports:
 | 
			
		||||
        - name: nfs
 | 
			
		||||
          containerPort: 2049
 | 
			
		||||
          protocol: tcp
 | 
			
		||||
      securityContext:
 | 
			
		||||
        privileged: true
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
kind: Service
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
metadata:
 | 
			
		||||
  name: nfs-server
 | 
			
		||||
spec:
 | 
			
		||||
 
 | 
			
		||||
@@ -2,7 +2,7 @@
 | 
			
		||||
# This pod imports nfs-server.default.kube.local:/ into /var/www/html
 | 
			
		||||
#
 | 
			
		||||
 | 
			
		||||
apiVersion: v1beta3
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Pod
 | 
			
		||||
metadata:
 | 
			
		||||
  name: nfs-web
 | 
			
		||||
@@ -13,7 +13,6 @@ spec:
 | 
			
		||||
      ports:
 | 
			
		||||
        - name: web
 | 
			
		||||
          containerPort: 80
 | 
			
		||||
          protocol: tcp
 | 
			
		||||
      volumeMounts:
 | 
			
		||||
          # name must match the volume name below
 | 
			
		||||
          - name: nfs
 | 
			
		||||
@@ -24,4 +23,3 @@ spec:
 | 
			
		||||
        # FIXME: use the right hostname
 | 
			
		||||
        server: nfs-server.default.kube.local
 | 
			
		||||
        path: "/"
 | 
			
		||||
        readOnly: false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user