Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 922 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 922 Bytes

Set up Kubernetes

Azure Kubernetes Service

# Connect to cluster using kubectl
az aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME

# verify connection
kubectl get nodes

cdk8s

# Install dependencies
npm install

# To synthesize the app, run:
npm run compile && cdk8s synth

# Apply the synthesized manifest to a Kubernetes cluster
kubectl apply -f dist/hello.k8s.yaml

# Display services to see external ips to access
kubectl get services

# Delete resources
kubectl delete -f dist/hello.k8s.yaml

References