Skip to content

Commit

Permalink
update to latest kubernetes version supported by AKS
Browse files Browse the repository at this point in the history
  • Loading branch information
nellyk committed Feb 14, 2024
1 parent 8172a15 commit e5686ea
Show file tree
Hide file tree
Showing 8 changed files with 54 additions and 44 deletions.
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ kubectl create secret generic "${AZURE_CLUSTER_IDENTITY_SECRET_NAME}" --from-lit
Initialize Cluster API and install Azure CAPZ provider version 0.5.3(uses alphav4 capi)

```bash
clusterctl init --infrastructure azure:v0.5.3
clusterctl init --infrastructure azure
```

Deploy a cluster with Helm (please customize parameters as required)
Expand All @@ -97,16 +97,16 @@ helm install capz1 charts/azure-managed-cluster/ \
--set cluster.nodeResourceGroupName=capz1 \
--set cluster.name=aks1 \
--set controlplane.sshPublicKey="$(cat ~/.ssh/id_rsa.pub)" \
--set agentpools[0].name=capz1np0 \
--set agentpools[0].mode=System \
--set agentpools[0].nodecount=1 \
--set agentpools[0].sku=Standard_B2s \
--set agentpools[0].osDiskSizeGB=100 \
--set agentpools[1].name=capz1np1 \
--set agentpools[1].mode=User \
--set agentpools[1].nodecount=1 \
--set agentpools[1].sku=Standard_B2s \
--set agentpools[1].osDiskSizeGB=100
--set agentpools.0.name=capz1np0 \
--set agentpools.0.nodecount=1 \
--set agentpools.0.sku=Standard_B4ms \
--set agentpools.0.osDiskSizeGB=100 \
--set agentpools.0.mode=System \
--set agentpools.1.name=capz1np1 \
--set agentpools.1.nodecount=1 \
--set agentpools.1.sku=Standard_B4ms \
--set agentpools.1.osDiskSizeGB=10 \
--set agentpools.1.mode=User
```

or more simply (after you edit the values file with your own values):
Expand Down Expand Up @@ -154,16 +154,16 @@ helm install capz2 charts/azure-managed-cluster/ \
--set cluster.nodeResourceGroupName=capz2 \
--set cluster.name=aks2 \
--set controlplane.sshPublicKey="$(cat ~/.ssh/id_rsa.pub)" \
--set agentpools[0].name=capz2np0 \
--set agentpools[0].mode=System \
--set agentpools[0].nodecount=1 \
--set agentpools[0].sku=Standard_B2s \
--set agentpools[0].osDiskSizeGB=100 \
--set agentpools[1].name=capz2np1 \
--set agentpools[1].mode=User \
--set agentpools[1].nodecount=1 \
--set agentpools[1].sku=Standard_B2s \
--set agentpools[1].osDiskSizeGB=100
--set agentpools.0.name=capz2np0 \
--set agentpools.0.nodecount=1 \
--set agentpools.0.sku=Standard_B2s \
--set agentpools.0.osDiskSizeGB=100 \
--set agentpools.0.mode=System \
--set agentpools.1.name=capz2np1 \
--set agentpools.1.nodecount=1 \
--set agentpools.1.sku=Standard_B2s \
--set agentpools.1.osDiskSizeGB=10 \
--set agentpools.1.mode=User
```

or more simply (after you edit the values file with your own values):
Expand Down
2 changes: 1 addition & 1 deletion aks1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ controlplane:
sshPublicKey: ""

## Kubernetes version
kubernetes_version: "v1.21.2"
kubernetes_version: "v1.28.3"

## Network policy, "calico" (for kubenet and azurecni) or "azure" (for azureCNI)
networkPolicy: "calico"
Expand Down
2 changes: 1 addition & 1 deletion aks2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ controlplane:
sshPublicKey: ""

## Kubernetes version
kubernetes_version: "v1.21.2"
kubernetes_version: "v1.28.3"

## Network policy, "calico" (for kubenet and azurecni) or "azure" (for azureCNI)
networkPolicy: "calico"
Expand Down
21 changes: 13 additions & 8 deletions article.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,22 @@ Ready to roll! Deploy your first cluster with Helm:
helm install capz1 charts/azure-managed-cluster/ \
--set subscriptionID=12c7e9d6-967e-40c8-8b3e-4659a4ada3ef \
--set cluster.resourceGroupName=aksclusters \
--set cluster.location=westeurope \
--set cluster.kubernetesVersion=v1.28.3 \
--set cluster.nodeResourceGroupName=capz1 \
--set cluster.name=aks1 \
--set controlplane.sshPublicKey="$(cat ~/.ssh/id_rsa.pub)" \
--set agentpools[0].name=capz1np0 \
--set agentpools[0].nodecount=1 \
--set agentpools[0].sku=Standard_B4ms \
--set agentpools[0].osDiskSizeGB=100 \
--set agentpools[1].name=capz1np1 \
--set agentpools[1].nodecount=1 \
--set agentpools[1].sku=Standard_B4ms \
--set agentpools[1].osDiskSizeGB=10
--set agentpools.0.name=capz1np0 \
--set agentpools.0.nodecount=1 \
--set agentpools.0.sku=Standard_B4ms \
--set agentpools.0.osDiskSizeGB=100 \
--set agentpools.0.mode=System \
--set agentpools.1.name=capz1np1 \
--set agentpools.1.nodecount=1 \
--set agentpools.1.sku=Standard_B4ms \
--set agentpools.1.osDiskSizeGB=10 \
--set agentpools.1.mode=User


If you like you can use a values.yaml file:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ spec:
name: {{ $.Values.identity.clusterIdentitySecretName }}
namespace: {{ $.Values.identity.clusterIdentitySecretNamespace }}
tenantID: {{ $.Values.identity.tenantId }}
type: ServicePrincipal
type: ServicePrincipal
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ spec:
version: {{ .Values.controlplane.kubernetes_version }}
networkPolicy: {{ .Values.controlplane.networkPolicy }}
networkPlugin: {{ .Values.controlplane.networkPlugin }}
sku: {{ .Values.cluster.sku }}
26 changes: 14 additions & 12 deletions charts/azure-managed-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,19 @@
## AKS cluster configuration

## The subscription ID
subscriptionID: ""

subscriptionID: "a6f7ea4b-402c-454f-81a8-f90bd93bc439"
identity:
clientId: ""
tenantId: ""
clientId: "7b43ab68-0fbb-4a0b-9f51-2a39380f7215"
tenantId: "72f988bf-86f1-41af-91ab-2d7cd011db47"
clusterIdentityName: "cluster-identity"
clusterIdentitySecretName: "cluster-identity-secret"
clusterIdentitySecretNamespace: "default"
clusterIdentitySecretNamespace: "default3"


cluster:

## The resource group for the AKS cluster object
resourceGroupName: aksclusters
resourceGroupName: aksclusters3

## The resource group name for the nodes
nodeResourceGroupName: base
Expand All @@ -27,18 +26,21 @@ cluster:
location: westeurope

## The name of the cluster
name: aks-cluster-api
name: aks-cluster-api3

## the subnet
cidrBlocks:
- 192.168.0.0/16

## The sku of the control plane
sku: Standard

controlplane:
## SSH public key (must be valid)
sshPublicKey: "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIOxg+goSYoCIND3IIAjPoPGr7gsux9OQjE5IP2wEU8eMsywgGXBwZXUVjh8NgFHVWZEMTQCAM52P2ipYBup9QhuqWVjH4v0hrj1X/rx7tzlZh2wk3kgVPQwMKCyacQLifqus4quJLSQAPu1ksgxaWEBWnSa0e+DM2D0PYs/j284qOO9T9ULqpb/ZJK9gySa+AfSMhGCskcT/EfE8g1iqC96PajFxGHOBxqiDFtIKPhNiqKYruDhVJYmhAXG6ScHadiXzP3BdiPR66eyCOQtSeIxjnEeJcrZ7vZLFpWQvaaZw+JfPkGGFCsBTn39dfr1awrMtPIPvkj4iU1jkGKzUD [email protected]"

## Kubernetes version
kubernetes_version: "v1.21.2"
kubernetes_version: "v1.28.3"

## Network policy, "calico" (for kubenet and azurecni) or "azure" (for azureCNI)
networkPolicy: "calico"
Expand All @@ -47,14 +49,14 @@ controlplane:
networkPlugin: "kubenet"

#Only 1 Nodepool of mode System is allowed
agentpools:
agentpools:
- name: agentpool0
mode: System
sku: Standard_B4ms
nodecount: 2
sku: Standard_D4d_v5
nodecount: 5
osDiskSizeGB: 100
- name: agentpool1
mode: User
nodecount: 2
sku: Standard_B4ms
sku: Standard_D4d_v5
osDiskSizeGB: 100
2 changes: 2 additions & 0 deletions clusterctl.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
export EXP_AKS=true
export EXP_MACHINE_POOL=true
export EXP_CLUSTER_RESOURCE_SET=false
export EXP_AKS_RESOURCE_HEALTH=true


#uncomment and edit these three lines below
#export AZURE_LOCATION="westeurope"
Expand Down

0 comments on commit e5686ea

Please sign in to comment.