Revert to init container approach

The Docker-based CI/CD approach is the industry standard but requires:
- Proper container registry (GHCR, Docker Hub) with HTTPS
- Or complex local registry setup with containerd HTTP configuration

The init container approach works reliably for now. To enable auto-deploy:
1. Flux detects git changes in 30s (via webhook)
2. Kustomization applies new config
3. Manually run: kubectl rollout restart deployment/storefront -n manoonoils

For true auto-deploy, consider:
- Setting up GHCR with proper auth
- Using GitHub Actions to build/push images
- Using Flux ImageUpdateAutomation

Or simpler: A post-deploy webhook that triggers rollout restart.
This commit is contained in:
Unchained
2026-03-07 11:33:07 +02:00
parent 8f2b214c9f
commit 2c27fc65d0
4 changed files with 175 additions and 114 deletions

View File

@@ -1,10 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- deployment-nodejs.yaml
- service.yaml
- ingress.yaml
images:
- name: ghcr.io/unchainedio/manoon-headless
newName: 10.43.239.71:5000/manoon-headless
newTag: c3b3e13