Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable GitOps config as an AKS add-on #1967

Closed
seanmck opened this issue Nov 17, 2020 · 35 comments
Closed

Enable GitOps config as an AKS add-on #1967

seanmck opened this issue Nov 17, 2020 · 35 comments
Labels
feature-request Requested Features

Comments

@seanmck
Copy link
Collaborator

seanmck commented Nov 17, 2020

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 GitOps-based deployments alongside Azure Arc-connected clusters:

https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/use-gitops-connected-cluster

@ghost ghost added the triage label Nov 17, 2020
@ghost
Copy link

ghost commented Nov 17, 2020

Hi seanmck, AKS bot here 👋
Thank you for posting on the AKS Repo, I'll do my best to get a kind human from the AKS team to assist you.

I might be just a bot, but I'm told my suggestions are normally quite good, as such:

  1. If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
  2. Please abide by the AKS repo Guidelines and Code of Conduct.
  3. If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
  4. Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
  5. Make sure there isn't a duplicate of this issue already reported. If there is, feel free to close this one and '+1' the existing issue.
  6. If you have a question, do take a look at our AKS FAQ. We place the most common ones there!

@seanmck seanmck removed the triage label Nov 17, 2020
@asubmani
Copy link

How would this affect AKS clusters that use Flux (v1 or V2) ? We have deployed Flux in its own namespace. If this is available as an update to an existing cluster than all it takes is to remove the current deployment and enable the managed Flux.

@ghost ghost added the stale Stale issue label Feb 20, 2021
@ghost
Copy link

ghost commented Feb 20, 2021

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

@asubmani
Copy link

how often would the gitops toolkit being used be updated? I am interested in knowing the support lifecycle policy of updating these with upstream versions of the gitops tool (flux argo CD etc)

@ghost ghost removed the stale Stale issue label Feb 21, 2021
@ghost ghost added the stale Stale issue label Apr 22, 2021
@ghost
Copy link

ghost commented Apr 22, 2021

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

@ernesto1596
Copy link

Is there any update for this feature or ETA?

@ghost ghost removed the stale Stale issue label Apr 22, 2021
@pl4nty
Copy link

pl4nty commented Apr 25, 2021

This feature is described as available in the Azure Arc documentation and Azure Policy, but sourceControlConfiguration deployments to my Microsoft.ContainerService/managedClusters via policy remediation and az k8s-configuration are stuck at "complianceState": "Pending". Is this expected behaviour? If so, would connecting the cluster to Azure Arc be a suitable workaround?

Edit: connected the cluster to Arc successfully

@palma21 palma21 removed the feature label May 12, 2021
@ghost
Copy link

ghost commented May 12, 2021

@Azure/aks-pm issue needs labels

12 similar comments
@ghost
Copy link

ghost commented May 19, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented May 26, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jun 2, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jun 9, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jun 16, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jun 23, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jun 30, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jul 7, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jul 14, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jul 21, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Jul 28, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Aug 4, 2021

@Azure/aks-pm issue needs labels

@ghost
Copy link

ghost commented Aug 11, 2021

@Azure/aks-pm issue needs labels

@miwithro miwithro added the feature-request Requested Features label Aug 11, 2021
@garrardkitchen
Copy link

Is there an ETA update on this feature? 🙏

@thepaulmacca
Copy link

Is there an ETA update on this feature? 🙏

I'm keen to know this as well. A bit concerning there's been no update for a while. Nothing stopping you from enabling it now, but would be good to know if that's advised or not at this time

@garrardkitchen
Copy link

Is there an ETA update on this feature? 🙏

I'm keen to know this as well. A bit concerning there's been no update for a while. Nothing stopping you from enabling it now, but would be good to know if that's advised or not at this time

I had attempted to add feature but sadly not available in UKSouth 🥲

@thepaulmacca
Copy link

I had attempted to add feature but sadly not available in UKSouth 🥲

Ah right ok, i was using it in West Europe. This is a good article to read if you haven't already https://pixelrobots.co.uk/2021/07/first-look-gitops-on-azure-kubernetes-service-using-the-aks-addon-preview/

@PixelRobots
Copy link
Collaborator

The official docs can be found at https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/tutorial-use-gitops-flux2. For some reason they are under arc and not AKS which is a bit confusing for customers. Would be good to separate them out.

@thepaulmacca
Copy link

The official docs can be found at https://docs.microsoft.com/en-us/azure/azure-arc/kubernetes/tutorial-use-gitops-flux2. For some reason they are under arc and not AKS which is a bit confusing for customers. Would be good to separate them out.

Agree with this

@wilsncc
Copy link

wilsncc commented Mar 8, 2022

Will GitOps be enabled as an add-on rather than an extension?

Automatically installing as an add-on enables some enterprise-style deployment flows which we otherwise can't have if we need to install the extension e.g. using Azure Policy to DINE a fluxConfiguration item which will ensure mandatory components are installed on all AKS clusters.

@PixelRobots
Copy link
Collaborator

From what I know the AKS addon for GitOps is no longer a thing. It was just for flux v1. The extension is the new and only way to install it as it needs to integrate with ARM and addons cannot do that.

@wilsncc
Copy link

wilsncc commented Mar 9, 2022

@PixelRobots

From what I know the AKS addon for GitOps is no longer a thing. It was just for flux v1.

Yeah I understand this to be true for v1

The extension is the new and only way to install it as it needs to integrate with ARM and addons cannot do that.

Is that true?

Add-ons like Azure Policy or OMS Agent are defined in the body of a request for Microsoft.ContainerService/managedClusters, meaning they are processed by Azure RM and are very much enforceable with Azure Policy for example. And so far, I've only seen extensions installed by use of Azure CLI, completely outside the scope of an Azure RM request.

So to my knowledge, the opposite of what you wrote is true; add-ons are integrated with ARM and extensions are not. No?

Happy to be enlightened if I've misunderstood :)

@Agger1995
Copy link

Agger1995 commented Mar 9, 2022

@rossdotpink
Both AKS extensions and AKS add-ons can be defined in ARM templates.
For our project, in which we will be using GitOps for deploying our workloads, we have defined our cluster as IaC in Bicep where we "install" the Flux component as an AKS extension, scoped to the AKS cluster resource.
In Bicep it looks like this:

resource fluxExtension 'Microsoft.KubernetesConfiguration/extensions@2021-09-01' = {
  scope: aksCluster
  name: 'flux'
  properties: {
    extensionType: 'Microsoft.Flux'
    ... # Omitted for brevity
  }
}

There is limited documentation available on how to configure this. However, I got a lot from looking at how it is implemented in the AKS Secure Baseline.
See https://github.com/mspnp/aks-baseline/blob/main/cluster-stamp.json#L1015-L1085

@PixelRobots
Copy link
Collaborator

Hi, sorry for the confusion. When I say integrated with ARM I am not meaning ARM templates or Bicep.

Extensions can be installed via ARM and Bicep as @Agger1995 has shown above.

What I was referring to can be read about in the docs. https://docs.microsoft.com/en-us/azure/aks/integrations#extensions

"Cluster extensions build on top of certain Helm charts and provide an Azure Resource Manager-driven experience for installation and lifecycle management of different Azure capabilities on top of your Kubernetes cluster."

This allows for the GitOps section to show in the Azure portal from what I understand.

Hope that clears some stuff up for you.

@wilsncc
Copy link

wilsncc commented Mar 9, 2022

@Agger1995 Thanks! I did not know I could do that, I will give that a go. Totally agree about the documentation, but it's getting better :)

@PixelRobots Thanks :) main point I was missing is that extensions can indeed be installed as part of ARM/Bicep request, rather than just AZ CLI. Also, thank you for the Pixel Robots website; I knew I recognised it from somewhere, some of the first material I found on GitOps Flux on AKS was on your website.

@PixelRobots
Copy link
Collaborator

Any time. glad it helped.

AKS addons and AKS Cluster Extensions can get a bit confusing especially when it comes to updating them. Check out my blog post on that to ensure you keep your clusters updated. https://pixelrobots.co.uk/2022/02/azure-kubernetes-service-aks-addons-and-extensions-who-is-responsible/

@davidkarlsen
Copy link

When will this be available in Norwayeast?

@ghost ghost locked as resolved and limited conversation to collaborators Oct 21, 2022
@aritraghosh aritraghosh moved this to Archive (GA older than 1 month) in Azure Kubernetes Service Roadmap (Public) Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Requested Features
Projects
Status: Archive (GA older than 1 month)
Development

No branches or pull requests