0% found this document useful (0 votes)
29 views12 pages

DevOps Terminal Setup Guide

The document provides instructions to install Docker and Kubernetes on multiple terminals using a script. It includes commands to start Minikube, install Kubectl, enable ingress, create deployments and expose services.

Uploaded by

harsha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views12 pages

DevOps Terminal Setup Guide

The document provides instructions to install Docker and Kubernetes on multiple terminals using a script. It includes commands to start Minikube, install Kubectl, enable ingress, create deployments and expose services.

Uploaded by

harsha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

 update all terminals

sudo apt update

 install docker on all terminals

Create and run script


Run the [Link] file in all machine

bash [Link]
Connect both slave terminals using token
sudo apt update

sudo apt install [Link]


curl -LO [Link]

sudo dpkg -i minikube_latest_amd64.deb

sudo chmod 777 /var/run/[Link]

minikube start

sudo snap install kubectl --classic

minikube addons enable ingress

kubectl create deployment nginx --image=nginx --port=80

kubectl expose deploy nginx --type NodePort


apiVersion: [Link]/v1

kind: Ingress

metadata:

name: ingress

annotations:

[Link]/rewrite-target: /

spec:

ingressClassName: nginx

rules:

- http:

paths:

- path: /nginx

pathType: Prefix

backend:

service:

name: nginx

port:

number: 80
apiVersion: [Link]/v1

kind: Ingress

metadata:

name: ingress

annotations:

[Link]/rewrite-target: /

spec:
ingressClassName: nginx

rules:

- http:

paths:

- path: /apache

pathType: Prefix

backend:

service:

name: apache2

port:

number: 80

You might also like