Skip to content

ks6088ts-labs/sandbox-cdk8s-ts

Repository files navigation

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

About

Sandbox for cdk8s using TypeScript

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published