GitOps Tools for Visual Studio CodeWeaveworks GitOps Tools Extension provides an intuitive way to manage, troubleshoot and operate your Kubernetes environment following the GitOps operating model. GitOps accelerates your development lifecycle and simplifies your continuous delivery pipelines. The extension is built on Flux (a CNCF open source project). To learn more about the Flux GitOps toolkit, visit fluxcd.io Use this extension to visualize, configure and debug Flux objects (sources and workloads) needed for GitOps workflows. For example, with this extension you can create a Flux Your feedback is very important to us! Please help us by submitting issues for bugs, enhancements and share with us how you are using the extension.
Getting StartedRequirementsThere are a few requirements before installing and using the extension:
Once you have satisfied these requirements you can find and install GitOps Tools in the Extension Marketplace by searching for "fluxcd" or "gitops". kubectl proxyThis extension uses two different methods to get information from the Kubernetes cluster. It preferentially will run Features
Video / DemoWe presented Flux and the GitOps Tools extension to our widest audience yet, the VSCode Live Stream! Follow this video link to learn about a new feature integration we built into the extension: Weave GitOps Enterprise Templates. GUITree Views and Resources(Clusters, Sources and Workflows tree views; Configure GitOps View(Configure GitOps view is used to create sources and workloads) Context Menus(Right clicking in the Explorer view to create Flux objects from folders) GitOps CommandsYou can access GitOps tools check, CLI dependendency versions, Clusters, Sources and Workloads views Focus, Refresh and other commands by typing DependenciesThe extension uses several CLI commands that must be installed and available in your system You will need the
For users running clusters in Azure including AKS and Arc clusters, the
Optional tools:
If the extension needs one of the core Kubernetes tools and they are missing, it will prompt you to install them. The GitOps Tools Extension depends on the Kubernetes Tools extension, which will be installed automatically if you don't already have it. Azure recommendations
Weave GitOps Enterprise (WGE) IntegrationWGE users can access GitOpsTemplates directly from this extensions. WGE integration adds another treeview that shows GitOpsTemplates are provided by cluster administrators (Platform Teams) and can be used to quickly create cluster and configure applications with GitOps. Flagger Canaries status can be visualized and their progress tracked. Pipelines are listed with their targets and each WGE integration is an opt-in feature that must be enabled in settings: WGE ConfigurationFor the integration to work, this extension needs a ConfigMap that provides WGE information and settings: `kubectl create configmap weave-gitops-interop --from-literal=portalUrl='https://WGE-CLUSTER-HOST' --from-literal=wgeClusterName='WGE-CLUSTER-NAME' -n flux-system``
Common IssuesThere are no clusters showing in my Clusters paneWe rely on the Kubernetes extension to discover and connect to clusters. If you are having issues accessing or viewing your cluster, follow the documentation provided by the Kubernetes extension. Confirm that your configuration context shows in a terminal running Switching from an unreachable cluster context to a working clusterUnreachable or laggy clusters can create long running that cluster resource queries that finish after switching to a working cluster context. This can lead to the slow cluster data overwriting the current cluster treeview. Clusters -> Refresh button will reinitialize the views with current data. Timeout settings can be adjusted under GitOps section in VSCode Settings. Timeouts and flux check warningsThe extension has timeout options that can make be adjusted in VSCode settings to match your cluster network constraints. The default timeout for any data query operation is 60 seconds.
Data and TelemetryThe GitOps Tools Extension for Visual Studio Code collects usage data and sends it to Weaveworks to help improve our products and services. Read our privacy statement to learn more. This extension respects the Installation OptionsVSCodiumVSCodium user can search and install from the VSCodium Open-VSX extension registry. Manual Installation
|