sitharaj88/claude-skills/azure-aks

Claude Code and agent skill by sitharaj88/claude-skills

Trust tier 3
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate AKS cluster configs, node pools, and Kubernetes manifests. Use when the user wants to set up or configure Kubernetes on Azure AKS.

Install

npx vskill@latest install sitharaj88/claude-skills/azure-aks

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as sitharaj88/claude-skills/azure-aks.

Instructions

You are an Azure Kubernetes Service (AKS) expert. Generate production-ready AKS cluster configurations and Kubernetes manifests.

Step 1: Gather requirements

Determine from user input or $ARGUMENTS:

  • Cluster purpose: development, staging, production
  • Workload type: stateless services, stateful apps, batch processing, ML/AI
  • Node strategy: system node pool + user node pools, spot instances, GPU nodes
  • Networking: Azure CNI Overlay (recommended), Azure CNI, kubenet
  • Access: public, private, or hybrid API server access
Step 2: Generate AKS cluster configuration

Bicep template:

bicep
param location string = resourceGroup().location
param clusterName string
param nodeCount int = 3
param vmSize string = 'Standard_D4s_v5'
resource aks 'Microsoft.ContainerService/managedClusters@2024-01-01' = {
name: clusterName
location: location
identity: { type: 'SystemAssigned' }
sku: {
name: 'Base'
tier: 'Standard' // Use 'Standard' for production (SLA), 'Free' for dev
}
properties: {
kubernetesVersion: '1.29'
dnsPrefix: clusterName
enableRBAC: true
aadProfile: {
managed: true
enableAzureRBAC: true
adminGroupObjectIDs: ['<aad-admin-group-id>']
}
agentPoolProfiles: [
{
name: 'system'
count: 3
vmSize: 'Standard_D2s_v5'
osType: 'Linux'
osSKU: 'AzureLinux'
mode: 'System'
availabilityZones: ['1', '2', '3']
enableAutoScaling: true
minCount: 2
maxCount: 5
maxPods: 110
vnetSubnetID: aksSubnet.id
nodeTaints: ['CriticalAddonsOnly=true:NoSchedule']
upgradeSettings: { maxSurge: '33%' }
}
]
networkProfile: {
networkPlugin: 'azure'
networkPluginMode: 'overlay'
networkPolicy: 'cilium'
networkDataplane: 'cilium'
serviceCidr: '10.0.0.0/16'
dnsServiceIP: '10.0.0.10'
loadBalancerSku: 'standard'
outboundType: 'loadBalancer'
}
autoUpgradeProfile: {
upgradeChannel: 'stable'
nodeOSUpgradeChannel: 'NodeImage'
}
securityProfile: {
defender: {
securityMonitoring: { enabled: true }
logAnalyticsWorkspaceResourceId: logAnalytics.id
}
imageCleaner: {
enabled: true
intervalHours: 48
}
workloadIdentity: { enabled: true }
}
oidcIssuerProfile: { enabled: true }
addonProfiles: {
omsagent: {
enabled: true
config: {
logAnalyticsWorkspaceResourceID: logAnalytics.id
}
}
azureKeyvaultSecretsProvider: {
enabled: true
config: {
enableSecretRotation: 'true'
rotationPollInterval: '2m'
}
}
azurepolicy: { enabled: true }
}
apiServerAccessProfile: {
enablePrivateCluster: false // true for production
authorizedIPRanges: ['203.0.113.0/24'] // restrict API access
}
storageProfile: {
diskCSIDriver: { enabled: true }
fileCSIDriver: { enabled: true }
blobCSIDriver: { enabled: true }
snapshotController: { enabled: true }
}
}
}
Step 3: Generate user node pools

General-purpose node pool:

bicep
resource userNodePool 'Microsoft.ContainerService/managedClusters/agentPools@2024-01-01' = {
parent: aks
name: 'workload'
properties: {
vmSize: vmSize
count: nodeCount
osType: 'Linux'
osSKU: 'AzureLinux'
mode: 'User'
availabilityZones: ['1', '2', '3']
enableAutoScaling: true
minCount: 2
maxCount: 20
maxPods: 110
vnetSubnetID: aksSubnet.id
nodeLabels: {
'workload-type': 'general'
}
upgradeSettings: { maxSurge: '33%' }
}
}

Spot node pool for cost savings:

bicep
resource spotNodePool 'Microsoft.ContainerService/managedClusters/agentPools@2024-01-01' = {
parent: aks
name: 'spot'
properties: {
vmSize: 'Standard_D4s_v5'
count: 0
osType: 'Linux'
osSKU: 'AzureLinux'
mode: 'User'
availabilityZones: ['1', '2', '3']
enableAutoScaling: true
minCount: 0
maxCount: 10
scaleSetPriority: 'Spot'
scaleSetEvictionPolicy: 'Delete'
spotMaxPrice: json('-1')
nodeTaints: ['kubernetes.azure.com/scalesetpriority=spot:NoSchedule']
nodeLabels: {
'kubernetes.azure.com/scalesetpriority': 'spot'
}
}
}

GPU node pool:

bicep
resource gpuNodePool 'Microsoft.ContainerService/managedClusters/agentPools@2024-01-01' = {
parent: aks
name: 'gpu'
properties: {
vmSize: 'Standard_NC6s_v3'
count: 0
osType: 'Linux'
mode: 'User'
enableAutoScaling: true
minCount: 0
maxCount: 4
nodeTaints: ['sku=gpu:NoSchedule']
nodeLabels: { 'hardware': 'gpu' }
}
}
Step 4: Configure Workload Identity

Create federated identity for a Kubernetes service account:

bicep
resource managedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
name: '${clusterName}-workload-id'
location: location
}
resource federatedCredential 'Microsoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials@2023-01-31' = {
parent: managedIdentity
name: 'kubernetes-federated'
properties: {
issuer: aks.properties.oidcIssuerProfile.issuerURL
subject: 'system:serviceaccount:my-namespace:my-service-account'
audiences: ['api://AzureADTokenExchange']
}
}

Kubernetes ServiceAccount manifest:

yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: my-service-account
namespace: my-namespace
annotations:
azure.workload.identity/client-id: "<managed-identity-client-id>"
labels:
azure.workload.identity/use: "true"
Step 5: Generate Kubernetes manifests

Deployment with best practices:

yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
namespace: my-namespace
labels:
app: my-app
version: v1
spec:
replicas: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 0
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
version: v1
azure.workload.identity/use: "true"
spec:
serviceAccountName: my-service-account
topologySpreadConstraints:
- maxSkew: 1
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: my-app
containers:
- name: my-app
image: myacr.azurecr.io/my-app:v1.0.0
ports:
- containerPort: 8080
protocol: TCP
resources:
requests:
cpu: "250m"
memory: "256Mi"
limits:
cpu: "500m"
memory: "512Mi"
livenessProbe:
httpGet:
path: /health/live
port: 8080
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
startupProbe:
httpGet:
path: /health/startup
port: 8080
failureThreshold: 30
periodSeconds: 5
env:
- name: AZURE_CLIENT_ID
valueFrom:
secretKeyRef:
name: app-secrets
key: client-id
volumeMounts:
- name: secrets-store
mountPath: "/mnt/secrets-store"
readOnly: true
volumes:
- name: secrets-store
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: azure-kv-secrets
---
apiVersion: v1
kind: Service
metadata:
name: my-app
namespace: my-namespace
spec:
selector:
app: my-app
ports:
- port: 80
targetPort: 8080
protocol: TCP
type: ClusterIP
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: my-app
namespace: my-namespace
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: my-app
minReplicas: 3
maxReplicas: 20
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
behavior:
scaleDown:
stabilizationWindowSeconds: 300
policies:
- type: Percent
value: 10
periodSeconds: 60
scaleUp:
stabilizationWindowSeconds: 0
policies:
- type: Percent
value: 100
periodSeconds: 15
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: my-app
namespace: my-namespace
spec:
minAvailable: 2
selector:
matchLabels:
app: my-app
Step 6: Configure Key Vault CSI driver

SecretProviderClass:

yaml
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: azure-kv-secrets
namespace: my-namespace
spec:
provider: azure
parameters:
usePodIdentity: "false"
clientID: "<managed-identity-client-id>"
keyvaultName: "my-keyvault"
objects: |
array:
- |
objectName: db-connection-string
objectType: secret
- |
objectName: api-key
objectType: secret
tenantId: "<tenant-id>"
secretObjects:
- secretName: app-secrets
type: Opaque
data:
- objectName: db-connection-string
key: database-url
- objectName: api-key
key: api-key
Step 7: Configure Ingress

Application Gateway Ingress Controller (AGIC):

yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-app-ingress
namespace: my-namespace
annotations:
kubernetes.io/ingress.class: azure/application-gateway
appgw.ingress.kubernetes.io/ssl-redirect: "true"
appgw.ingress.kubernetes.io/backend-protocol: "http"
appgw.ingress.kubernetes.io/health-probe-path: "/health"
appgw.ingress.kubernetes.io/waf-policy-for-path: "/subscriptions/<sub>/resourceGroups/<rg>/providers/Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/my-waf"
spec:
tls:
- hosts:
- api.myapp.com
secretName: tls-secret
rules:
- host: api.myapp.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: my-app
port:
number: 80

NGINX Ingress Controller (managed):

yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: my-app-ingress
namespace: my-namespace
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-body-size: "10m"
nginx.ingress.kubernetes.io/rate-limit-rps: "100"
spec:
ingressClassName: webapprouting.kubernetes.azure.com
tls:
- hosts:
- api.myapp.com
secretName: tls-secret
rules:
- host: api.myapp.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: my-app
port:
number: 80
Step 8: Configure GitOps with Flux

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sitharaj88/claude-skills/azure-aks/badge)](https://verified-skill.com/skills/sitharaj88/claude-skills/azure-aks)

Something wrong with this skill or its page? Tell us.