{
    "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig",
    "locale": "en",
    "title": "Kubernetes and Terraform: do you need them? · DeLaParra Services",
    "description": "What Kubernetes and Terraform do, when they’re useful and when a simpler setup is better, plus the basic commands if you do end up using them.",
    "alternates": {
        "en": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig",
        "nl": "https://delaparra-services.nl/nl/handleidingen/kubernetes-en-terraform-heb-je-het-nodig"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.csv",
        "md": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.md",
        "json": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.json",
        "zip": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.zip",
        "pdf": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.csv",
            "encodingFormat": "text/csv",
            "name": "kubernetes-en-terraform-heb-je-het-nodig.csv"
        },
        {
            "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.json",
            "encodingFormat": "application/json",
            "name": "kubernetes-en-terraform-heb-je-het-nodig.json"
        },
        {
            "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.md",
            "encodingFormat": "text/markdown",
            "name": "kubernetes-en-terraform-heb-je-het-nodig.md"
        },
        {
            "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.pdf",
            "encodingFormat": "application/pdf",
            "name": "kubernetes-en-terraform-heb-je-het-nodig.pdf"
        },
        {
            "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.zip",
            "encodingFormat": "application/zip",
            "name": "kubernetes-en-terraform-heb-je-het-nodig.zip"
        }
    ],
    "markdown": "# Kubernetes and Terraform: do you need them?\n\nTwo names you often hear, and which your AI assistant sometimes suggests. They’re powerful, but too resource-intensive for most small and medium-sized apps. This guide will help you choose.\n\n## What is Kubernetes?\n\n**Kubernetes** (often referred to as “K8s”) runs and manages many containers across multiple servers. It restarts containers if they crash, distributes traffic and automatically scales up and down.\n\nTerms you’ll come across:\n\n| Term | Meaning |\n|---|---|\n| Pod | The smallest unit: one or more containers together |\n| Deployment | Ensures that there are always X copies of your pod running |\n| Service | A fixed address where you can collect your pods |\n| Ingress | Inbound traffic (domains, HTTPS) |\n| Node | A server in the cluster |\n| Namespace | A separate space within the cluster |\n| ConfigMap / Secret | Settings / secrets for your pods |\n\n## What is Terraform?\n\n**Terraform** describes your infrastructure (servers, databases, DNS, storage) in code files. This allows you to rebuild a complete environment and see every change reflected in Git. This is known as **Infrastructure as Code**.\n\n## Do you need it?\n\n| Situation | Advice |\n|---|---|\n| One app, one database, up to thousands of users | **No.** A managed platform or a VPS with Docker is cheaper and simpler (see *Putting your Laravel app online*). |\n| Multiple apps or services, a team with DevOps experience | Perhaps. Start with a managed container platform, and only switch once you’ve reached your limits. |\n| Many services, strict availability requirements, multiple environments | Yes, and preferably **managed Kubernetes** (the cloud provider manages the cluster). |\n| Your infrastructure consists of many separate cloud components that you often have to set up from scratch | Terraform is useful in this situation, even without Kubernetes. |\n\nIs your AI assistant suggesting Kubernetes for a small app? If so, ask for clarification: *\"Why is this necessary, and what is the simplest alternative?\"*\n\n## If you’re working with Kubernetes anyway\n\n```bash\nkubectl get pods                          # wat draait er?\nkubectl describe pod <naam>               # details en fouten\nkubectl logs -f <pod>                     # logs volgen\nkubectl apply -f deployment.yaml          # wijziging toepassen\nkubectl rollout status deployment/app     # voortgang van een update\nkubectl rollout undo deployment/app       # vorige versie terug\n```\n\nFirst, use `kubectl apply --dry-run=client -f …` to see what happens. Be careful when using `kubectl delete`.\n\n## If you’re using Terraform anyway\n\nAlways follow this order:\n\n```bash\nterraform init\nterraform fmt\nterraform validate\nterraform plan -out=tfplan     # bekijk wat er verandert\nterraform apply tfplan\n```\n\nWhen using `plan`, pay particular attention to lines containing `-` (delete) and `-/+` (replace). Is a database being deleted? Stop and check. Store the **state** in a secure remote backend and never in Git. The \n\n## Need help?\n\nNot sure which architecture is right for your app? At **Bespoke Software and Web Applications**, I choose the simplest architecture that ensures your app runs reliably and can be expanded later on.\n\n## Skills\n\n- [Kubernetes Manifest Generator] (/nl/skills/k8s-manifest-generator)\n- [Helm Chart Scaffolding] (/nl/skills/helm-chart-scaffolding)\n- [GitOps Workflow] (/nl/skills/gitops-workflow)\n- [Kubernetes Security Policies] (/nl/skills/k8s-security-policies)\n- [Terraform safe workflow] (/nl/skills/terraform-safe-workflow)\n- [Terraform Module Library] (/nl/skills/terraform-module-library)\n- [Multi-Cloud Architecture] (/nl/skills/multi-cloud-architecture)\n- [Cloud Cost Optimization] (/nl/skills/cost-optimization)\n\n## Related services\n\n- [Maatwerk software en webapplicaties] (/nl/services#service-03)\n\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "TechArticle",
                "@id": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#article",
                "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig",
                "headline": "Kubernetes and Terraform: do you need them?",
                "description": "What Kubernetes and Terraform do, when they’re useful and when a simpler setup is better, plus the basic commands if you do end up using them.",
                "inLanguage": "en",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#dataset",
                "name": "Kubernetes and Terraform: do you need them?",
                "description": "What Kubernetes and Terraform do, when they’re useful and when a simpler setup is better, plus the basic commands if you do end up using them.",
                "url": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig",
                "identifier": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig#article"
                },
                "publisher": {
                    "@type": "Organization",
                    "name": "DeLaParra Services",
                    "url": "https://delaparra-services.nl/"
                },
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/manuals#dataset",
                    "name": "Manuals for working on your own app",
                    "url": "https://delaparra-services.nl/manuals"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "kubernetes-en-terraform-heb-je-het-nodig.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.csv",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "kubernetes-en-terraform-heb-je-het-nodig.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.json",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "kubernetes-en-terraform-heb-je-het-nodig.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.md",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "kubernetes-en-terraform-heb-je-het-nodig.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.pdf",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "kubernetes-en-terraform-heb-je-het-nodig.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig.zip",
                        "inLanguage": "en"
                    }
                ]
            }
        ]
    }
}