Skip to content

Example DigitalOcean Kubernetes workload with service exposed through a DO load-balancer.

License

Notifications You must be signed in to change notification settings

povode/doks-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Getting Started

  1. Create your Kubernetes cluster: doctl k8s cluster create example
  2. Check that your cluster is available: kubectl --context do-nyc1-example get nodes
  3. Deploy a workload to your cluster: kubectl --context do-nyc1-example apply -f manifest.yaml
  4. Wait for the service to be ready: script/wait-for-service do-nyc1-example doks-example
  5. Open the returned IP address in your browser, or run open http://$(kubectl --context do-nyc1-example get service doks-example --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")

Or you can just run script/up to do all of this.

Cleaning up

Run script/down or doctl k8s cluster delete example

Note

  • This example creates a DigitalOcean Load Balancer, which is a billable service. Load balancers cost $10/month, billed hourly at $0.015. Leaving this workload running will result in charges. More on load balancers here.

About

Example DigitalOcean Kubernetes workload with service exposed through a DO load-balancer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 73.6%
  • Shell 13.5%
  • CSS 12.4%
  • Dockerfile 0.5%