Comments (5)
Thanks for the issue; I would not recommend using k8s to develop a site; instead you could use a local development tool, or build something using k3s
or more likely minikube
or something similar that's geared towards local development.
But even there, running Drupal in a local development environment is going to be a lot nicer since Kubernetes is not really built for local dev work.
from kubernetes-101.
That really is the question; how does one develop a complicated site when hosting is being done on kubernetes. Back when everything was VMs it was easy to know the environment of final hosting matched that of the development environment because we could use (mostly) the same ansible scripts to build the local VM as the machine that would be hosting. This is a really confusing topic.
I was hoping to peak your interest enough to want to tackle it but I understand you've been involved in more interesting things.
The best thing I have found for local development is docker compose but that isn't how we will be deploying anything.
from kubernetes-101.
The key would be to make sure the internal container structure is set up to be reproducible in prod and local (and other environments). And there's always a grade to how much you need each environment to match.
For some applications, getting a proxy layer (Varnish/Nginx, Ingress structure, etc.) is all important to how it runs, so you have to get all that working locally—which can be tough depending on what kind of computers and local access developers get.
For many, just having a reproducible database and application (PHP+Apache, or PHP-FPM+Nginx) container setup could be enough where you could deploy that inside k3s locally, and whatever kubernetes setup you have running in prod. Some people use Helm for that, some people Ansible, some people shell scripts...
And I know some people use some tooling to convert a docker-compose.yml file (that they use local) into K8s deployments (that they push to the server), though that seems a lot more fragile and prone to headaches.
One of the hardest bits for local dev (besides ingress, which can be a pain) is the sharing of the local Drupal files to your local IDE/dev tooling. Some people use some sort of shared volume plus a special mount that's only run in the dev k3s environment. Some people use a form of SSH to reverse mount it from the container to their computer... that can be kinda complex too. Or it could be an NFS volume mounted into the container, and that's usually easiest on Linux but can be done on Windows or Mac too.
from kubernetes-101.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
from kubernetes-101.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
from kubernetes-101.
Related Issues (20)
- Lesson Learned HOT 2
- Validation of kubernettes-101 episodes against Apple M1 build HOT 12
- Episode 7 on WSL2 Docker Desktop Kubernetes HOT 9
- Episode 6 - warning about ingress kind in Kubernetes 1.19+ HOT 3
- Tip for README Episode 7 HOT 4
- Episode 05 nfs server client provioner is deprecated HOT 5
- Got drupal pod with pending status in Episode 05 HOT 5
- geerlingguy/kube101:hello-go-v2 crashes HOT 2
- Error 404 for linked Errata page HOT 1
- Episode 1 Youtube link no long available HOT 8
- Episode 3 - changing number of replicas does not work HOT 3
- Episode 6, K8S 1.23.3 HOT 1
- Chapter 3: Exposing deployment does not seem to work as described HOT 3
- episode-03 Image name incorrect HOT 3
- Episode 3(book): secret need to be removed in order to pull image correctly HOT 2
- Episode 5 (book): missing step to increase replicas
- MinimumReplicasUnavailable HOT 3
- Kubernetes-101, Chapter 1, "Instructions for Minikube" Fail HOT 3
- Kubernetes 101 ep4 - Requirements problem with drupal 9.5.9 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes-101.