# Depoly  App On Kubernetes

Step 1 : Firstly you have to install kubectl

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692029347900/f80bc838-149c-4a17-bd56-a5c335ed7575.png align="center")

Link: [https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)

You can verify using below command

```yaml
 kubectl version --client --output=yaml
```

Step 2 : You have to install minikube

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692029437414/1303fb1d-b3f2-4d7b-b12f-f7eef13cb85b.png align="center")

Step 3 : Start your minikube cluster

```yaml
 minikube start
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692029610183/d65b3dc6-406f-4d6a-8ed2-b20f4ea0ea36.png align="center")

```yaml
kubectl get nodes
```

Step 4 : Then you need to create pod.yaml file

```yaml
apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  containers:
  - name: nginx
    image: nginx:1.14.2
    ports:
    - containerPort: 80
```

```yaml
kubectl create -f pod.yaml
```

```yaml
kubectl get pods
kubectl get pods -o wide
```

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692030195562/989ec4a3-be46-48ad-973a-87422bd8aa6d.png align="center")

Step 5 : Then you have to login into your kubernetes cluster

```yaml
minikube ssh
```

Step 6 : If you want to debug the pod then you can use below command

```yaml
kubectl describe pod nginx
```
