mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	docs: Kubernetes deployment (#916)
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Update / dockerHubDescription (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Update / dockerHubDescription (push) Has been cancelled
				
			This commit is contained in:
		
							parent
							
								
									2e73bf560e
								
							
						
					
					
						commit
						7d2af63eac
					
				@ -10,12 +10,21 @@ spec:
 | 
				
			|||||||
    requests:
 | 
					    requests:
 | 
				
			||||||
      storage: 16Gi
 | 
					      storage: 16Gi
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
apiVersion: v1
 | 
					apiVersion: apps/v1
 | 
				
			||||||
kind: Pod
 | 
					kind: Deployment
 | 
				
			||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: dsm
 | 
					  name: dsm
 | 
				
			||||||
  labels:
 | 
					  labels:
 | 
				
			||||||
    name: dsm
 | 
					    name: dsm
 | 
				
			||||||
 | 
					spec:
 | 
				
			||||||
 | 
					  replicas: 1
 | 
				
			||||||
 | 
					  selector:
 | 
				
			||||||
 | 
					    matchLabels:
 | 
				
			||||||
 | 
					      app: dsm
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    metadata:
 | 
				
			||||||
 | 
					      labels:
 | 
				
			||||||
 | 
					        app: dsm
 | 
				
			||||||
    spec:
 | 
					    spec:
 | 
				
			||||||
      containers:
 | 
					      containers:
 | 
				
			||||||
      - name: dsm
 | 
					      - name: dsm
 | 
				
			||||||
@ -29,6 +38,8 @@ spec:
 | 
				
			|||||||
          value: "16G"
 | 
					          value: "16G"
 | 
				
			||||||
        ports:
 | 
					        ports:
 | 
				
			||||||
          - containerPort: 5000
 | 
					          - containerPort: 5000
 | 
				
			||||||
 | 
					            name: http
 | 
				
			||||||
 | 
					            protocol: TCP
 | 
				
			||||||
        securityContext:
 | 
					        securityContext:
 | 
				
			||||||
          capabilities:
 | 
					          capabilities:
 | 
				
			||||||
            add:
 | 
					            add:
 | 
				
			||||||
@ -59,9 +70,12 @@ kind: Service
 | 
				
			|||||||
metadata:
 | 
					metadata:
 | 
				
			||||||
  name: dsm
 | 
					  name: dsm
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
 | 
					  internalTrafficPolicy: Cluster
 | 
				
			||||||
  ports:
 | 
					  ports:
 | 
				
			||||||
  - name: tcp-5000
 | 
					    - name: http
 | 
				
			||||||
      port: 5000
 | 
					      port: 5000
 | 
				
			||||||
 | 
					      protocol: TCP
 | 
				
			||||||
 | 
					      targetPort: 5000
 | 
				
			||||||
  selector:
 | 
					  selector:
 | 
				
			||||||
    name: dsm
 | 
					    app: dsm
 | 
				
			||||||
  type: NodePort
 | 
					  type: ClusterIP
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user