01 · The problem
Make the workflow clear.
Repeated platform setup needs reusable conventions while preserving the infrastructure files an operator must inspect, change, and review.
02 · The approach
Give each part a job.
A Go CLI generates projects and environments from focused foundation, orchestrator, platform, and workload modules. Generated Terraform remains visible. Planning, policy checks, and operational evidence sit alongside explicit apply workflows.
- Project + environment
- Go CLI
- Readable Terraform
- Saved plan + review
- Container platform
03 · A practical starting point
Try the documented workflow.
Prerequisites
cf --non-interactive wizard --defaults
cf generate dev
cf init dev
cf plan dev --out .cf/plans/dev.tfplan --risk-summaryThe credential-free quickstart targets an existing Kubernetes context. These commands generate and plan infrastructure; review the project documentation before applying it.
Documentation checked October 12, 2026 against source 7996921 ↗. Follow that version's setup instructions before running the commands.
Walk through the architecture.
Conceptual walkthrough based on the source documentation. These controls explain the flow; they do not execute commands or connect to infrastructure.
- A project and environment describe the intended platform.
- The Go CLI generates configuration from modules and templates.
- Readable Terraform files keep the infrastructure reviewable.
- A saved plan and risk summary make the proposed change inspectable.
- The platform is changed only through the explicit apply workflow described by the project.
04 · The result
Something you can inspect.
The repository includes modules, examples, installation guidance, and a local Kubernetes workflow. Platform coverage has distinct maturity levels; each real cloud environment still needs its own network, IAM, deployment, and recovery evidence.
05 · Verification in view
Plan, apply, observe, and remove a real Kubernetes workload
Actual Terraform 1.16.1 execution of the pinned Kubernetes application module on a disposable local kind cluster. An explicit ServiceAccount was created, nginx:1.27-alpine was loaded locally, the Deployment became available, and an HTTP response was read inside its pod. All Terraform-managed resources were destroyed. No cloud infrastructure, ingress, or production environment was exercised.
Terminal replay of actual local output captured October 13, 2026. No audio. Source 7996921 ↗.
Read the captured command output
terraform -chdir=/tmp/codepop-clusterforge-live init -no-color
Initializing the backend...
Initializing modules...
Initializing provider plugins...
- Reusing previous version of hashicorp/kubernetes from the dependency lock file
- Using previously-installed hashicorp/kubernetes v2.38.0
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
Exit status: 0
terraform -chdir=/tmp/codepop-clusterforge-live validate -no-color
Success! The configuration is valid.
Exit status: 0
terraform -chdir=/tmp/codepop-clusterforge-live plan -no-color -out=demo.tfplan
Output excerpt: Reviewed resource plan; provider initialization preamble omitted.
Terraform will perform the following actions:
# module.app.kubernetes_deployment_v1.this will be created
+ resource "kubernetes_deployment_v1" "this" {
+ id = (known after apply)
+ wait_for_rollout = true
+ metadata {
+ generation = (known after apply)
+ labels = {
+ "app.kubernetes.io/component" = "app"
+ "app.kubernetes.io/instance" = "codepop-demo"
+ "app.kubernetes.io/managed-by" = "terraform"
+ "app.kubernetes.io/name" = "codepop-demo"
}
+ name = "codepop-demo"
+ namespace = "codepop-clusterforge"
+ resource_version = (known after apply)
+ uid = (known after apply)
}
+ spec {
+ min_ready_seconds = 0
+ paused = false
+ progress_deadline_seconds = 600
+ replicas = "1"
+ revision_history_limit = 10
+ selector {
+ match_labels = {
+ "app.kubernetes.io/instance" = "codepop-demo"
+ "app.kubernetes.io/name" = "codepop-demo"
}
}
+ strategy (known after apply)
+ template {
+ metadata {
+ generation = (known after apply)
+ labels = {
+ "app.kubernetes.io/component" = "app"
+ "app.kubernetes.io/instance" = "codepop-demo"
+ "app.kubernetes.io/managed-by" = "terraform"
+ "app.kubernetes.io/name" = "codepop-demo"
}
+ name = (known after apply)
+ resource_version = (known after apply)
+ uid = (known after apply)
}
+ spec {
+ automount_service_account_token = true
+ dns_policy = "ClusterFirst"
+ enable_service_links = true
+ host_ipc = false
+ host_network = false
+ host_pid = false
+ hostname = (known after apply)
+ node_name = (known after apply)
+ restart_policy = "Always"
+ scheduler_name = (known after apply)
+ service_account_name = "codepop-demo"
+ share_process_namespace = false
+ termination_grace_period_seconds = 30
+ container {
+ args = []
+ command = []
+ image = "nginx:1.27-alpine"
+ image_pull_policy = "Never"
+ name = "codepop-demo"
+ stdin = false
+ stdin_once = false
+ termination_message_path = "/dev/termination-log"
+ termination_message_policy = (known after apply)
+ tty = false
+ port {
+ container_port = 80
+ name = "http"
+ protocol = "TCP"
}
+ resources (known after apply)
}
+ image_pull_secrets (known after apply)
+ readiness_gate (known after apply)
}
}
}
}
# module.app.kubernetes_namespace_v1.this[0] will be created
+ resource "kubernetes_namespace_v1" "this" {
+ id = (known after apply)
+ wait_for_default_service_account = false
+ metadata {
+ generation = (known after apply)
+ labels = {
+ "app.kubernetes.io/component" = "app"
+ "app.kubernetes.io/instance" = "codepop-demo"
+ "app.kubernetes.io/managed-by" = "terraform"
+ "app.kubernetes.io/name" = "codepop-demo"
}
+ name = "codepop-clusterforge"
+ resource_version = (known after apply)
+ uid = (known after apply)
}
}
# module.app.kubernetes_service_account_v1.this[0] will be created
+ resource "kubernetes_service_account_v1" "this" {
+ automount_service_account_token = true
+ default_secret_name = (known after apply)
+ id = (known after apply)
+ metadata {
+ generation = (known after apply)
+ labels = {
+ "app.kubernetes.io/component" = "app"
+ "app.kubernetes.io/instance" = "codepop-demo"
+ "app.kubernetes.io/managed-by" = "terraform"
+ "app.kubernetes.io/name" = "codepop-demo"
}
+ name = "codepop-demo"
+ namespace = "codepop-clusterforge"
+ resource_version = (known after apply)
+ uid = (known after apply)
}
}
# module.app.kubernetes_service_v1.this[0] will be created
+ resource "kubernetes_service_v1" "this" {
+ id = (known after apply)
+ status = (known after apply)
+ wait_for_load_balancer = true
+ metadata {
+ generation = (known after apply)
+ labels = {
+ "app.kubernetes.io/component" = "app"
+ "app.kubernetes.io/instance" = "codepop-demo"
+ "app.kubernetes.io/managed-by" = "terraform"
+ "app.kubernetes.io/name" = "codepop-demo"
}
+ name = "codepop-demo"
+ namespace = "codepop-clusterforge"
+ resource_version = (known after apply)
+ uid = (known after apply)
}
+ spec {
+ allocate_load_balancer_node_ports = true
+ cluster_ip = (known after apply)
+ cluster_ips = (known after apply)
+ external_traffic_policy = (known after apply)
+ health_check_node_port = (known after apply)
+ internal_traffic_policy = (known after apply)
+ ip_families = (known after apply)
+ ip_family_policy = (known after apply)
+ publish_not_ready_addresses = false
+ selector = {
+ "app.kubernetes.io/instance" = "codepop-demo"
+ "app.kubernetes.io/name" = "codepop-demo"
}
+ session_affinity = "None"
+ type = "ClusterIP"
+ port {
+ name = "http"
+ node_port = (known after apply)
+ port = 80
+ protocol = "TCP"
+ target_port = "http"
}
+ session_affinity_config (known after apply)
}
}
Plan: 4 to add, 0 to change, 0 to destroy.
─────────────────────────────────────────────────────────────────────────────
Saved the plan to: demo.tfplan
To perform exactly these actions, run the following command to apply:
terraform apply "demo.tfplan"
Exit status: 0
terraform -chdir=/tmp/codepop-clusterforge-live apply -no-color demo.tfplan
module.app.kubernetes_namespace_v1.this[0]: Creating...
module.app.kubernetes_namespace_v1.this[0]: Creation complete after 0s [id=codepop-clusterforge]
module.app.kubernetes_service_account_v1.this[0]: Creating...
module.app.kubernetes_service_v1.this[0]: Creating...
module.app.kubernetes_service_account_v1.this[0]: Creation complete after 0s [id=codepop-clusterforge/codepop-demo]
module.app.kubernetes_service_v1.this[0]: Creation complete after 0s [id=codepop-clusterforge/codepop-demo]
module.app.kubernetes_deployment_v1.this: Creating...
module.app.kubernetes_deployment_v1.this: Creation complete after 1s [id=codepop-clusterforge/codepop-demo]
Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
Exit status: 0
kubectl --kubeconfig /tmp/codepop-site-kind.kubeconfig --context kind-codepop-site-20261013 -n codepop-clusterforge rollout status deployment/codepop-demo --timeout=90s
deployment "codepop-demo" successfully rolled out
Exit status: 0
kubectl --kubeconfig /tmp/codepop-site-kind.kubeconfig --context kind-codepop-site-20261013 -n codepop-clusterforge get deployments,pods,services
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/codepop-demo 1/1 1 1 0s
NAME READY STATUS RESTARTS AGE
pod/codepop-demo-9c4b986c4-56tb8 1/1 Running 0 0s
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/codepop-demo ClusterIP 10.96.239.242 <none> 80/TCP 0s
Exit status: 0
kubectl --kubeconfig /tmp/codepop-site-kind.kubeconfig --context kind-codepop-site-20261013 -n codepop-clusterforge exec deployment/codepop-demo -- wget -qO- http://127.0.0.1/
E1013 01:12:44.053749 402847 websocket.go:296] Unknown stream id 1, discarding message
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p>
<p><em>Thank you for using nginx.</em></p>
</body>
</html>
Exit status: 0
terraform -chdir=/tmp/codepop-clusterforge-live destroy -auto-approve -no-color
Output excerpt: Destruction completion; preceding state refresh and plan omitted.
Plan: 0 to add, 0 to change, 4 to destroy.
module.app.kubernetes_service_account_v1.this[0]: Destroying... [id=codepop-clusterforge/codepop-demo]
module.app.kubernetes_service_v1.this[0]: Destroying... [id=codepop-clusterforge/codepop-demo]
module.app.kubernetes_deployment_v1.this: Destroying... [id=codepop-clusterforge/codepop-demo]
module.app.kubernetes_service_account_v1.this[0]: Destruction complete after 0s
module.app.kubernetes_service_v1.this[0]: Destruction complete after 0s
module.app.kubernetes_deployment_v1.this: Destruction complete after 0s
module.app.kubernetes_namespace_v1.this[0]: Destroying... [id=codepop-clusterforge]
module.app.kubernetes_namespace_v1.this[0]: Destruction complete after 6s
Destroy complete! Resources: 4 destroyed.
Exit status: 0
Download the complete verification capture →

Connect the implementation to the ideas.
- 14. CI, GitOps, and Actual Deployment Control · Secret Contract Operator
Based on the repository README and its platform coverage and safety model. Source and current status ↗