question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable GitOps on an AKS Cluster

See original GitHub issue

Prerequisite #82 has been completed

Once a cluster has been identified as an AKS Cluster, the AZ K8s Extension (in private preview at the time of this writing) must be used to enable GitOps on it.

The az command below requires the following command line properties to be dynamically passed given the cluster’s configuration:

  • -g the name of the Resource Group where the AKS cluster was created
  • -c the name of the AKS Cluster as defined in Azure. This name is usually the name of the context in the kubectl configuration, also shown for cluster name under Clusters
  • --subscription the name or ID of the Azure subscription that owns the resource group.

The rest of the options shown in the sample below can remain unchanged:

az k8s-extension-private create -g [name of resource group] -c [name of cluster] -t managedClusters --name gitops --extension-type microsoft.flux --scope cluster --release-train stable --subscription [name or ID of subscription]

Due to the complexity and reliability of the potential mechanisms to discover the three variable properties that the command requires, the user should be asked to enter the three values using an applicable UI element, the name of the cluster (the value of -c) can be prefilled using the name of the cluster as shown in the Clusters tree, but the user may need to change it as this value can be edited locally.

Note that the user should be asked for these details only once, and the attributes Resource Group and Azure Cluster Name should be stored so they can be used going forward whenever actions that require the az CLI are performed against the cluster. Automatically fill in these values if they have been already provided by the user.

Note: The name of the command shown above may change once the feature goes into general availability.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
murillodigitalcommented, Oct 20, 2021

@usernamehw I think this is just right! (cc. @josefaworks )

0reactions
usernamehwcommented, Oct 25, 2021

hmmm

Operation returned an invalid status ‘OK’

Read more comments on GitHub >

github_iconTop Results From Across the Web

GitOps for Azure Kubernetes Service - Azure Example Scenarios
GitOps is an operational framework for Kubernetes cluster management and application delivery. GitOps applies development practices like version control, ...
Read more >
Enable GitOps config as an AKS add-on · Issue #1967 - GitHub
This issue tracks enabling of GitOps config as an AKS add-on. This add-on will make it easy for AKS clusters to participate in...
Read more >
The New GitOps Extension on AKS and Azure Arc Enables ...
GitOps is now an extension to Microsoft Azure Kubernetes Service (AKS) and Azure Arc-enabled Kubernetes to govern and control hybrid and ...
Read more >
First Look: GitOps on Azure Kubernetes Service using the AKS ...
It's time to install the GitOps AKS add-on. You can Install this add-on on cluster creation in the same way you would other...
Read more >
Deploy configuration using GitOps on an Azure Arc enabled ...
Prerequisites · A Lokomotive cluster. · Azure command-line interface az installed on the local machine. · jq installed on the system. · Register...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found