Collection of things built following Go and Kubernetes tutorials
Report Bug
·
Request Feature
Table of Contents
Collection of things built following Go and Kubernetes tutorials
The repository has multiple branches for fibo-k8s
app based on deployment methods. Instructions for deployments are mentioned in respective branches.
main
branch contains files that can be run using Docker Compose (docker-compose up
)minikube-skaffold
branch contains files that can be run using minikube or Skaffoldeks-aks
branch contains files that can be deployed to AWS Elastic Kubernetes Service (EKS) or Azure Kubernetes Service (AKS)gke-with-nginx
branch contains files that can be deployed to Google Kubernetes Engine (GKE) using GitHub Actions
- Install kubectl and minikube. Then run these commands in order:
minikube start
minikube addons enable ingress
kubectl cluster-info
- Now, switch to minikube's docker daemon, as minikube runs in VM, and cannot use local images on its own. So, all docker images need to be built within minikube's docker daemon. Then, deploy the kubernetes cluster
eval $(minikube docker-env)
# docker build all images after above command
kubectl create secret generic pgpassword --from-literal PG_PASSWORD=Test@123
kubectl apply -f fibo-k8s
kubectl get pods --watch
minikube ip
- Open the IP address provided by minikube in a browser to access the application.
- Follow the steps 1 and 2 from minikube deployment with certain changes:
# instead of "kubectl apply -f k8s", run the following command
skaffold dev # or skaffold run
minikube ip
- Open the IP address provided by minikube in a browser to access the application.
kubectl delete -f fibo-k8s
skaffold delete
minikube stop
minikube delete --all
# switch back to normal docker daemon
eval $(minikube docker-env -u)
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Vijeth P H - @vijethph
Project Link: https://github.com/vijethph/go-apps