---
# System prepended metadata

title: FP SDN-Kubernetes

---

# FINAL PROJECT RESEARCH NETDEV SDN 2025

# Deployment Ryu Controller dalam Kubernetes
1.) Pastikan username yang dipakai dapat menggunakan/mengakses Docker daemon.
![image](https://hackmd.io/_uploads/SyMnAtQayg.png)

- Login ke DockerHub
![image](https://hackmd.io/_uploads/Sk1EMMVpyx.png)

- Push ke Registry
![image](https://hackmd.io/_uploads/rJDRfGNayx.png)

- Berhasil Push ke Registry
![image](https://hackmd.io/_uploads/BkBS7zEake.png)


2.) Nyalain Minikube
![image](https://hackmd.io/_uploads/SJxMCMmp1x.png)
→ Minikube akan menggunakan driver dari Docker.

- Cek Status Minikube
![image](https://hackmd.io/_uploads/HJAihzQa1g.png)
→ Minikube behasil dinyalakan.

3.) Bikin Dockerfile untuk Ryu Controller
```
FROM python:3.8
RUN pip install ryu
CMD ["ryu-manager", "--ofp-tcp-listen-port", "6653"]
```

4.) Build image Ryu Controller dalam Docker
![image](https://hackmd.io/_uploads/BJGU_zmayl.png)
![image](https://hackmd.io/_uploads/B1efYMXakl.png)

→ Docker akan pull image Python 3.8, si Python tersebut kemudian menginstall Ryu.
→ Step berhasil 3/3, sehingga image Ryu berhasil dibuild.

5.) Push ke Minikube
![image](https://hackmd.io/_uploads/By3xy7XT1x.png)


6.) Bikin file untuk Deployment
![image](https://hackmd.io/_uploads/ryI4rGEp1e.png)




7.) Deploy Ryu
![image](https://hackmd.io/_uploads/rJbqkXQpyl.png)


8.) 