All Projects → GoogleCloudPlatform → Freshpod

GoogleCloudPlatform / Freshpod

Licence: apache-2.0
Restart Pods on Minikube automatically on image rebuilds

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Freshpod

Colossus
Colossus — An example microservice architecture for Kubernetes using Bazel, Go, Java, Docker, Kubernetes, Minikube, Gazelle, gRPC, Prometheus, Grafana, and more
Stars: ✭ 917 (+265.34%)
Mutual labels:  minikube
Quiz
Example real time quiz application with .NET Core, React, DDD, Event Sourcing, Docker and built-in infrastructure for CI/CD with k8s, jenkins and helm
Stars: ✭ 100 (-60.16%)
Mutual labels:  minikube
Sample Spring Microservices Kubernetes
sample spring boot application that uses some features provided by spring cloud kubernetes, spring cloud ribbon and zuul proxy deployed on Kubernetes
Stars: ✭ 123 (-51%)
Mutual labels:  minikube
Kubernetes Challenge
Kubernetes challenge
Stars: ✭ 30 (-88.05%)
Mutual labels:  minikube
Demo
Easy to use KubeVirt demo based on minikube.
Stars: ✭ 88 (-64.94%)
Mutual labels:  minikube
Gluu Docker
Project for Gluu Docker files
Stars: ✭ 103 (-58.96%)
Mutual labels:  minikube
Inlets Operator
Add public LoadBalancers to your local Kubernetes clusters
Stars: ✭ 795 (+216.73%)
Mutual labels:  minikube
Devspace
DevSpace - The Fastest Developer Tool for Kubernetes ⚡ Automate your deployment workflow with DevSpace and develop software directly inside Kubernetes.
Stars: ✭ 2,559 (+919.52%)
Mutual labels:  minikube
Jhipster Microservices Example
JHipster Microservices Example using Spring Cloud, Spring Boot, Angular, Docker, and Kubernetes
Stars: ✭ 100 (-60.16%)
Mutual labels:  minikube
Kubeflow
Machine Learning Toolkit for Kubernetes
Stars: ✭ 11,028 (+4293.63%)
Mutual labels:  minikube
Local Development
[Deprecated] Run Hasura locally on your computer
Stars: ✭ 38 (-84.86%)
Mutual labels:  minikube
Openstack Helm
PROJECT HAS MOVED TO OPENSTACK
Stars: ✭ 67 (-73.31%)
Mutual labels:  minikube
Docker Machine Driver Vmware
Docker machine driver for VMware Fusion and Workstation.
Stars: ✭ 114 (-54.58%)
Mutual labels:  minikube
Docker Machine Driver Xhyve
docker-machine/minikube/minishift driver plugin for xhyve/hyperkit (native macOS hypervisor.framework)
Stars: ✭ 879 (+250.2%)
Mutual labels:  minikube
Laravel Docker K8s
Running Laravel project using Docker and Deploying using Kubernetes
Stars: ✭ 127 (-49.4%)
Mutual labels:  minikube
Sample Hazelcast Spring Datagrid
sample spring-boot applications integrated with hazelcast imdg, and providing hot cache with hazelcast and striim
Stars: ✭ 16 (-93.63%)
Mutual labels:  minikube
Aws Minikube
Single node Kubernetes instance implemented using Terraform and kubeadm
Stars: ✭ 101 (-59.76%)
Mutual labels:  minikube
K8s Intro Tutorials
Kubernetes Intro Tutorials
Stars: ✭ 183 (-27.09%)
Mutual labels:  minikube
Awesome Kubernetes
A curated list for awesome kubernetes sources 🚢🎉
Stars: ✭ 12,306 (+4802.79%)
Mutual labels:  minikube
Kubernetes Envoy Example
Teaching myself about Envoy on Kubernetes
Stars: ✭ 116 (-53.78%)
Mutual labels:  minikube

freshpod

freshpod helps you automatically restart containers on Kubernetes when their image is updated.

It is designed for single-instance Kubernetes clusters, such as Minikube or Docker for Windows/Mac.

freshpod detects you rebuilt an image and it deletes the Kubernetes Pods are running that image. This way, your workload controller (such as Deployment) will create new Pods running the new image.

🆕 Check out Skaffold, a new tool by Google that simplifies local Kubernetes development experience. Skaffold supersedes freshpod.

Demo

This demo shows refactoring an application and running docker build will automatically restart the application with the new image on Minikube:

A command line demo of freshpod replacing pods when the image is updated

Install on Minikube

freshpod is available as an add-on for Minikube. You just need to enable it:

minikube addons enable freshpod

Install on “Docker for Mac/Windows”

If you’re using Kubernertes on Docker for Mac/Windows, you can directly apply the manifest used by Minikube:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/minikube/ec1b443722227428bd2b23967e1b48d94350a5ac/deploy/addons/freshpod/freshpod-rc.yaml

Try it out!

Get some test images and tag the :1.0 image as hello:latest:

eval $(minikube docker-env) # not necessary for docker-for-mac/windows
docker pull gcr.io/google-samples/hello-app:1.0
docker pull gcr.io/google-samples/hello-app:2.0
docker tag  gcr.io/google-samples/hello-app:1.0 hello:latest

Run a 2-replica Deployment and NodePort Service with hello:latest image:

kubectl run hello --image=hello --port 8080 --replicas=2 \
  --image-pull-policy=IfNotPresent

kubectl expose deploy/hello --type=NodePort

Visit the app (note the 1.0.0):

$ URL=$(minikube service hello --url)
$ curl "$URL"
Hello, world!
Version: 1.0.0
Hostname: hello-5766f88f9c-67lgz

Re-tag the hello:latest image with the 2.0 version:

docker tag gcr.io/google-samples/hello-app:2.0 hello

Visit the app again (note the version has changed to 2.0.0):

$ curl "$URL"
Hello, world!
Version: 2.0.0
Hostname: hello-5766f88f9c-h88df

Contributing

See CONTRIBUTING.md for more information.

This is not an official Google product.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].