Skip to content

ggjulio/ft_services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer:

This project has been removed from our cursus for several reasons.
First one, k8s is too hard for an introduction to containers...
Second, the subject was not great.

ft_services

metallb

other

dockerfile : Entrypoints + CMDs + Signals and processes

MYSQL

phpmyadmin

http2 not supported by nginx as backend server (for reverse proxy)

pod : php + nginx

configmap and volume to avoid custom image

Using docker driver, create a network for metallb

warning: if u have run eval $(minikube docker-env). All commands will not be executed in the host...(check with docker ps...) -> eval $(minikube docker-env --unset)

docker network

  • check network that already exist Docker network ls If u already started you should see a network called minikube. The minikube ip is on this network. https://docs.docker.com/network/

  • Create a new network for setting up externals ip for your settings. docker network create my-network --driver=bridge docker network inspect my-network IPAM.Config.Subnet is the subnet you should use inside your metallb config.

  • connect this network to the minikube container: docker network connect my-network minikube (minikube == alias to minikube container ->docker ps) docker network inspect my-network -> the minikube container should be added...

  • Configure metallb My IPAM.Config.Subnetis172.18.0.0/16 so I given range .0.10-0.20 to metallb

Instead of all this steps. We can choose ourself the subnet:

docker network create --subnet=172.20.0.0/16 my-net
docker network connect my-net minikube

Persistent storage

defployment strategy

service networking and network beyond cluster

telegraf

inputs.kubernetes deprecated. And not working...