app1 running with nginx
This commit is contained in:
		@ -17,5 +17,16 @@ spec:
 | 
			
		||||
      containers:
 | 
			
		||||
      - name: app1
 | 
			
		||||
        image: nginx:1.14.2
 | 
			
		||||
---
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  name: app1
 | 
			
		||||
spec:
 | 
			
		||||
  type: NodePort
 | 
			
		||||
  selector:
 | 
			
		||||
    app: app1
 | 
			
		||||
  ports:
 | 
			
		||||
        - containerPort: 80
 | 
			
		||||
    - port: 80
 | 
			
		||||
      targetPort: 80
 | 
			
		||||
      nodePort: 30080
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,8 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
# this is some weird stuff nws
 | 
			
		||||
alias jj='sudo rm -rf /tmp/juju*'
 | 
			
		||||
 | 
			
		||||
# install docker
 | 
			
		||||
sudo apt-get update
 | 
			
		||||
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
 | 
			
		||||
@ -22,10 +25,6 @@ sudo systemctl enable docker
 | 
			
		||||
curl -LO https://github.com/kubernetes/minikube/releases/latest/download/minikube-linux-amd64
 | 
			
		||||
sudo install minikube-linux-amd64 /usr/local/bin/minikube && rm minikube-linux-amd64
 | 
			
		||||
 | 
			
		||||
#copy systemd service
 | 
			
		||||
#cp /vagrant/confs/minikube.service /etc/systemd/system/
 | 
			
		||||
 | 
			
		||||
#systemctl enable minikube
 | 
			
		||||
#systemctl start minikube
 | 
			
		||||
 | 
			
		||||
sudo minikube start --driver=docker --force
 | 
			
		||||
jj
 | 
			
		||||
sudo minikube kubectl -- apply -f /vagrant/confs/app1.yaml 
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user