Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ymdarake/web-container-template
https://github.com/ymdarake/web-container-template
docker kubernetes template-repository
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/ymdarake/web-container-template
- Owner: ymdarake
- Created: 2021-08-26T08:05:18.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-31T07:31:09.000Z (about 3 years ago)
- Last Synced: 2024-01-17T00:16:13.925Z (10 months ago)
- Topics: docker, kubernetes, template-repository
- Language: TypeScript
- Homepage:
- Size: 232 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WEB Container Template
Template for building a multi-container web application.
## Containers
- k8s
- Deploying template to GCP is available on [ymdarake/web-k8s-template](https://github.com/ymdarake/web-k8s-template)
- Configuration files for Kubernetes
- NEED to
- `kubectl create secret generic pgpassword --from-literal PGPASSWORD=`
- [ingress-nginx setup](https://kubernetes.github.io/ingress-nginx/deploy/#provider-specific-steps)
- local
- `kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.0/deploy/static/provider/cloud/deploy.yaml`
- GCP (GKE)
- https://kubernetes.github.io/ingress-nginx/deploy/#gce-gke
- https://kubernetes.io/docs/concepts/services-networking/ingress/
- [Configuring Local Dashboard](https://andrewlock.net/running-kubernetes-and-the-dashboard-with-docker-desktop/)
- `kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.3.1/aio/deploy/recommended.yaml`
- `kubectl patch deployment kubernetes-dashboard -n kubernetes-dashboard --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-skip-login"}]'`
- `kubectl proxy`
- http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
- shows Skip button- nginx
- Minimum routing configuration
- server
- Express server template with Redis and PostgreSQL
- Hot reloading available
- NOT in TypeScript (but it's just a tiny piece of code so we can live with that)
- worker
- Redis worker for the server
- in Node.js (same as the above)
- client
- React app in TypeScript
- Hot reloading available
- NGINX attached for content distribution in production build