Skip to content

This project is about clustering a docker application and deploy it with Kubernetes, on Alpine Linux. (Nginx, PMA, MySQL, WordPress, Grafana, InfluxDB)

Notifications You must be signed in to change notification settings

mli42/at42ft_services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

at42ft_services

Don't know how to start minikube? Read ashishae's tips

There is a funct.sh, what is this? - My Bestpractices

It's a file that have to be source-ed in every new terminal (if needed)

It contains shell functions :

  • kdeploy

This function builds a docker image and applies the associated .yaml

kdeploy nginx wordpress mysql phpmyadmin
  • clean

This function deletes the ressources deployed by a .yaml

clean nginx wordpress mysql phpmyadmin
  • kre

Runs clean then kdeploy for each given parameters

kre nginx wordpress mysql phpmyadmin
  • watch_services

Keep an eye on everything running in your cluster

watch_services
  • dockexec

Executes a docker image, just to see what's in it

dockexec [service-name] [path/to/dockerfile] [cmd (sh by default)]
  • kexec

Executes an existing pod (with sh by default), just to see what's in it (is your config set as you wanted?)

kexec [pod-ID] [cmd (sh by default)]
  • klogs

Get logs of one pod from kubernetes

klogs [pod-ID]

Few other debugging tips

  • Verify nginx is running:
ps aux | grep "[n|N]ginx"
  • Verifying that Nginx port is open:
netstat -tulpn
netstat -ant | grep 3306
# tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN
  • But alpine doesn't have netstat!

Search for it then!

About

This project is about clustering a docker application and deploy it with Kubernetes, on Alpine Linux. (Nginx, PMA, MySQL, WordPress, Grafana, InfluxDB)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published