0% found this document useful (0 votes)
7 views9 pages

Kubes

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)
7 views9 pages

Kubes

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
You are on page 1/ 9

apt-get install -y kubelet kubeadm kubectl

1. Run the below commands on master

kubeadm init --apiserver-advertise-address=10.1.0.4 --pod-network-cidr=192.168.0.0/16 --


ignore-preflight-errors=all

mkdir -p $HOME/.kube

sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config

sudo chown $(id -u):$(id -g) $HOME/.kube/config

Kebectl get nodes


2. Sudo nano index-html-configmap-pod1.yaml

3. Sudo nano deployment-pod1.yaml


kubectl apply -f deployment-pod1.yaml
Sudo nano service-pod1.yaml

kubectl apply -f service-pod1.yaml


Sudo nano index-html-configmap-pod2.yaml

kubectl apply -f index-html-configmap-pod2.yaml

Sudo nano deployment-pod2.yaml


kubectl apply -f deployment-pod2.yaml

Sudo nano service-pod2.yaml


kubectl apply -f service-pod2.yaml

minikube addons enable ingress


Sudo nano ingress.yaml
kubectl apply -f ingress.yaml

Kubecl get ingress

You might also like