feat: add kubernetes deployment
This commit is contained in:
		
							parent
							
								
									e63eca9978
								
							
						
					
					
						commit
						db4526e269
					
				
					 2 changed files with 21 additions and 0 deletions
				
			
		
							
								
								
									
										11
									
								
								README.md
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -16,3 +16,14 @@ $ docker run -it \
 | 
			
		|||
    --name swiss \
 | 
			
		||||
    pommib/swiss:latest
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Kubernetes
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
$ kubectl create namespace swiss
 | 
			
		||||
$ kubectl apply -f pod.yaml -n swiss
 | 
			
		||||
$ kubectl get pods -n swiss
 | 
			
		||||
$ kubectl describe pod -n swiss
 | 
			
		||||
$ kubectl exec --stdin --tty -n swiss swiss -- /bin/bash
 | 
			
		||||
$ kubectl delete namespace swiss
 | 
			
		||||
```
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										10
									
								
								pod.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								pod.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
apiVersion: v1
 | 
			
		||||
kind: Pod
 | 
			
		||||
metadata:
 | 
			
		||||
  name: swiss
 | 
			
		||||
spec:
 | 
			
		||||
  containers:
 | 
			
		||||
  - name: swiss
 | 
			
		||||
    image: pommib/swiss:latest
 | 
			
		||||
  hostNetwork: true
 | 
			
		||||
  dnsPolicy: Default
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue