Auteur/autrice : zigmax (Page 44 of 159)

AKS | OPA Gatekeeper Dashboard

Hi!

In a previous article, I show you how you can deploy a OPA Gatekeeper solution in your AKS cluster. We saw together how we can monitor the number of OPA gatekeeper violation in a second article.

In this article I will show how you can deploy a dashboard to monitor your OPA Gatekeeper violations. I will recommend you to use the solution Gatekeeper Policy Manager (GPM) created by Sighupio.

It’s very easy to deploy this solution, please clone the following repository and run this command to deploy the solution:

kubectl apply -k .

Once you’ve deployed the application, if you haven’t set up an ingress, you can access the web-UI using port-forward:

kubectl -n gatekeeper-system port-forward  svc/gatekeeper-policy-manager 8080:80

For a production usage of this solution, I recommend you to configure the OIDC authentication.

Maxime.

AKS | Auto Upgrade

Hi!

In this article, I would to show you a new feature of AKS, the goal of this feature is to automate the upgrade of your AKS cluster.

4 channels are available:

ChannelActionExample
nonedisables auto-upgrades and keeps the cluster at its current version of KubernetesDefault setting if left unchanged
patchautomatically upgrade the cluster to the latest supported patch version when it becomes available while keeping the minor version the same.For example, if a cluster is running version 1.17.7 and versions 1.17.91.18.41.18.6, and 1.19.1 are available, your cluster is upgraded to 1.17.9
stableautomatically upgrade the cluster to the latest supported patch release on minor version N-1, where N is the latest supported minor version.For example, if a cluster is running version 1.17.7 and versions 1.17.91.18.41.18.6, and 1.19.1 are available, your cluster is upgraded to 1.18.6.
rapidautomatically upgrade the cluster to the latest supported patch release on the latest supported minor version.In cases where the cluster is at a version of Kubernetes that is at an N-2 minor version where N is the latest supported minor version, the cluster first upgrades to the latest supported patch version on N-1 minor version. For example, if a cluster is running version 1.17.7 and versions 1.17.91.18.41.18.6, and 1.19.1 are available, your cluster first is upgraded to 1.18.6, then is upgraded to 1.19.1.
# - Requirements
az feature register --namespace Microsoft.ContainerService -n AutoUpgradePreview

az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/AutoUpgradePreview')].{Name:name,State:properties.state}"

az provider register --namespace Microsoft.ContainerService
 
# - Create a new cluster with the auto-upgrade feature
az aks create --resource-group myResourceGroup --name myAKSCluster --auto-upgrade-channel stable --generate-ssh-keys
 
# - Update an existing cluster with the auto-upgrade feature
az aks update --resource-group myResourceGroup --name myAKSCluster --auto-upgrade-channel stable

Maxime.

« Older posts Newer posts »

© 2025 ZiGMaX IT Blog

Theme by Anders NorenUp ↑