setevoy2 / keygrav

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Application startup

  1. Clone repo: git clone https://github.com/setevoy2/keygrav.git
  2. Start minikube: minikube start
  3. Create deployment: kubectl create -f ci/keygrav.yml
  4. Start service: kubectl expose deployment keygrav --type=NodePort
  5. Check it with curl: curl $(minikube service keygrav --url)

Project description

All build files located in the ci directory:

Links

DockerHub repo: https://hub.docker.com/r/setevoy/keygrav/

Jenkins CI: http://keyjenkins.setevoy.org.ua/job/KeyGravPoC/ (In order to access Jenkin's host - please, provide me your IP (to add it to the Jenkin's EC2 security group rules) and use credentials from an email)

Questions

how you would handle data persistence of the grav container in the future.

If Grav have ability to use persistent storage (and it have, judging the [Docker-Grav image's documentation] (https://hub.docker.com/r/garywiz/docker-grav/)) - then an AWS EFS directory (from an AWS EBS volume) can be mounted to the Kubernetes cluster and then PersistentVolumes configured to attach it to the containers.

I also added few points related to the deployment in the kuberDeploy() function of the jenkins.groovy build script. But again - not sure how "elegant" they are, as this is my first Kubernetes experience.

I also described my build process in my blog, if no objections (in rus), it's available here>>>.

About

License:MIT License


Languages

Language:PHP 99.1%Language:ApacheConf 0.3%Language:CSS 0.2%Language:Nginx 0.1%Language:Groovy 0.1%Language:Logos 0.1%