<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Operations on IaC Stack Controller</title><link>https://iacstack.io/docs/operations/</link><description>Recent content in Operations on IaC Stack Controller</description><generator>Hugo</generator><language>en</language><atom:link href="https://iacstack.io/docs/operations/index.xml" rel="self" type="application/rss+xml"/><item><title>Troubleshooting</title><link>https://iacstack.io/docs/operations/troubleshooting/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/operations/troubleshooting/</guid><description>&lt;p&gt;Start with the affected stack. Its status shows what the controller observed. The Workflow and its Pods show where the pipeline stopped. These commands use the &lt;a href="https://iacstack.io/docs/getting-started/"&gt;quickstart&lt;/a&gt; namespaces. Substitute the values from your environment.&lt;/p&gt;
&lt;h2 id="1-check-the-resource-and-its-events"&gt;1. Check the resource and its events&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;STACK_NS&lt;span style="color:#f92672"&gt;=&lt;/span&gt;platform-system
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;STACK&lt;span style="color:#f92672"&gt;=&lt;/span&gt;hello-stack
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;WORKFLOW_NS&lt;span style="color:#f92672"&gt;=&lt;/span&gt;argo-workflows
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl config current-context
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl -n &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$STACK_NS&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt; get iacstack &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$STACK&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt; -o yaml
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl -n &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$STACK_NS&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt; describe iacstack &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$STACK&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;kubectl -n &lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt;$STACK_NS&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt; get events &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --field-selector &lt;span style="color:#e6db74"&gt;&amp;#34;involvedObject.kind=IaCStack,involvedObject.name=&lt;/span&gt;$STACK&lt;span style="color:#e6db74"&gt;&amp;#34;&lt;/span&gt; &lt;span style="color:#ae81ff"&gt;\
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt; --sort-by&lt;span style="color:#f92672"&gt;=&lt;/span&gt;.metadata.creationTimestamp
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;In &lt;code&gt;spec&lt;/code&gt;, check the repository, path and version in &lt;code&gt;sourceRef&lt;/code&gt;, the inputs, the alias in &lt;code&gt;workflowRef.name&lt;/code&gt;, dependencies, and whether &lt;code&gt;suspend&lt;/code&gt; is set. If the stack omits the alias, check the default in the controller configuration.&lt;/p&gt;</description></item><item><title>Argo Workflows UI</title><link>https://iacstack.io/docs/operations/argo-ui/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/operations/argo-ui/</guid><description>&lt;p&gt;The Argo UI shows the steps of the execution associated with your &lt;code&gt;IaCStack&lt;/code&gt;. Use the name in &lt;code&gt;status.execution.workflow&lt;/code&gt; and the integration namespace to open the correct attempt. The &lt;a href="https://iacstack.io/docs/operations/troubleshooting/"&gt;troubleshooting guide&lt;/a&gt; shows how to retrieve those values with &lt;code&gt;kubectl&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="1-open-the-ui-locally"&gt;1. Open the UI locally&lt;/h2&gt;
&lt;p&gt;If your environment provides an Argo Workflows URL, use the access configured by your team. In the lab, check that Argo Server is running and forward the Service port to your machine.&lt;/p&gt;</description></item><item><title>Observability</title><link>https://iacstack.io/docs/operations/observability/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/operations/observability/</guid><description>&lt;p&gt;Use the Kubernetes API to check a stack&amp;rsquo;s current state, logs to investigate decisions and failures, and metrics to monitor stacks over time.&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Signal&lt;/th&gt;
 &lt;th&gt;Where to look&lt;/th&gt;
 &lt;th&gt;What it tells you&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;Status and events&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;kubectl describe iacstack&lt;/code&gt;, &lt;code&gt;kubectl get iacstack -o yaml&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;Which generation did the controller observe? Which attempt is recorded? Why is reconciliation waiting, blocked, or failed?&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Controller JSON logs&lt;/td&gt;
 &lt;td&gt;IaC Stack Controller Pod stdout&lt;/td&gt;
 &lt;td&gt;What happened during reconciliation, execution registration, or authorization? Correlate by stack and namespace, and by &lt;code&gt;workflow&lt;/code&gt; or &lt;code&gt;intentHash&lt;/code&gt; when present.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Pipeline logs and artifacts&lt;/td&gt;
 &lt;td&gt;Argo UI or Workflow Pods&lt;/td&gt;
 &lt;td&gt;What did Terraform or OpenTofu, the backend, or the policy step report?&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Metrics&lt;/td&gt;
 &lt;td&gt;&lt;code&gt;GET /metrics&lt;/code&gt; on the controller, port &lt;code&gt;8080&lt;/code&gt;&lt;/td&gt;
 &lt;td&gt;How many attempts are active? Which stacks have outstanding drift? How long do attempts take?&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;To trace one stack across these signals, use the &lt;a href="https://iacstack.io/docs/operations/troubleshooting/"&gt;troubleshooting guide&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Helm upgrades and uninstall</title><link>https://iacstack.io/docs/operations/helm-lifecycle/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/operations/helm-lifecycle/</guid><description>&lt;p&gt;Use the &lt;a href="https://iacstack.io/docs/getting-started/helm/"&gt;installation guide&lt;/a&gt; to install the controller. Keep the values for your release in version control. The chart creates an immutable ConfigMap from those values and rolls the controller Pods when the configuration changes.&lt;/p&gt;
&lt;h2 id="upgrade-the-controller-and-crd"&gt;Upgrade the controller and CRD&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;Inspect the stacks and active workflows. Let active attempts finish before changing an alias, WorkflowTemplate, ServiceAccount, or contract. Keep the current chart version, values, and CRD revision available for recovery.&lt;/li&gt;
&lt;li&gt;Read the target release notes and save the existing stack definitions and infrastructure state. If the CRD schema changes, review the compatibility requirements and apply the target manifest explicitly. In a GitOps setup, let the application that owns the CRD apply it first.&lt;/li&gt;
&lt;li&gt;Upgrade the chart with the intended version and your values. Verify the rollout and inspect the conditions on an existing stack.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;After selecting the release and creating your &lt;code&gt;values.yaml&lt;/code&gt;, a manual upgrade in &lt;code&gt;platform-system&lt;/code&gt; looks like this.&lt;/p&gt;</description></item><item><title>Release security</title><link>https://iacstack.io/docs/operations/release-security/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/operations/release-security/</guid><description>&lt;p&gt;Pull requests touching Go code run code security checks; changes to image inputs also run the image security gates. Full scans run nightly, on demand and before release. The release workflow builds and smoke-tests the controller, Terraform runner and OpenTofu runner, and runs the security workflow before publishing the images and Helm chart to GHCR. Release images currently target Linux/amd64 and include SBOM and build provenance attestations.&lt;/p&gt;
&lt;table&gt;
 &lt;thead&gt;
 &lt;tr&gt;
 &lt;th&gt;Check&lt;/th&gt;
 &lt;th&gt;Release gate&lt;/th&gt;
 &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
 &lt;tr&gt;
 &lt;td&gt;CodeQL (Go)&lt;/td&gt;
 &lt;td&gt;Reject findings with security severity of 7 or higher.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;govulncheck&lt;/td&gt;
 &lt;td&gt;Scan reachable vulnerabilities in the project&amp;rsquo;s Go code and dependencies; a failing scan blocks publication.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;tr&gt;
 &lt;td&gt;Trivy&lt;/td&gt;
 &lt;td&gt;Scan all three image targets. Reject CRITICAL findings and HIGH findings with a known fixed version, except explicitly accepted upstream findings.&lt;/td&gt;
 &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;HIGH findings without a known fix and lower-severity findings remain in the reports. A green gate does not mean the images are vulnerability-free.&lt;/p&gt;</description></item><item><title>Kind test suite</title><link>https://iacstack.io/docs/operations/kind-test-suite/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://iacstack.io/docs/operations/kind-test-suite/</guid><description>&lt;p&gt;The Python harness is for development and regression testing. Pull requests run a targeted OpenTofu quickstart smoke only for relevant changes. The full Terraform/OpenTofu matrix runs nightly, manually and before release (or reuses verified results for the same commit). See &lt;a href="https://github.com/iacstack/iac-stack-controller/blob/main/docs/ci-validation.md"&gt;CI and test strategy&lt;/a&gt;. It provisions Argo and the test fixtures, runs assertions, and can leave the cluster available for inspection.&lt;/p&gt;
&lt;h2 id="1-prepare-the-lab"&gt;1. Prepare the lab&lt;/h2&gt;
&lt;p&gt;Install Docker with Buildx, Kind, kubectl, Helm, Git and Python 3. Make sure Docker is running. Open an isolated terminal for the lab.&lt;/p&gt;</description></item></channel></rss>