Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nicholasjhenry/hello-kubernetes
How To Develop Applications on Kubernetes with Okteto
https://github.com/nicholasjhenry/hello-kubernetes
kubernetes professional-development
Last synced: 8 days ago
JSON representation
How To Develop Applications on Kubernetes with Okteto
- Host: GitHub
- URL: https://github.com/nicholasjhenry/hello-kubernetes
- Owner: nicholasjhenry
- Created: 2020-06-16T19:36:28.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-16T19:36:59.000Z (over 4 years ago)
- Last Synced: 2023-04-15T15:56:07.896Z (over 1 year ago)
- Topics: kubernetes, professional-development
- Language: Go
- Homepage: https://www.digitalocean.com/community/tutorials/how-to-develop-applications-on-kubernetes-with-okteto
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How To Develop Applications on Kubernetes with Okteto
https://www.digitalocean.com/community/tutorials/how-to-develop-applications-on-kubernetes-with-okteto
## Setup
# Setup kubectl/doctl
# https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-macos
brew install kubectl
brew install doctl# Create cluster https://cloud.digitalocean.com/kubernetes/
doctl kubernetes cluster kubeconfig save hello-world
# => Adding cluster credentials to kubeconfig file found in "/Users/nicholas/.kube/config"
# => Setting current-context to do-nyc1-hello-world
# Or download the file and copy it the root of this application
kubectl --kubeconfig="kubeconfig.yaml" get nodeskubectl apply -f k8s
kubectl get service hello-world# Visit http://{external IP address}
brew install okteto
okteto up # or KUBECONFIG=./kubeconfig.yaml okteto up
go run main.go
# Don't forget to shut it down
okteto down## Running a cluster locally
# https://kubernetes.io/docs/tasks/tools/install-minikube/
brew install minikube
minikube start --driver=hyperkit## Important Links
* https://www.digitalocean.com/docs/kubernetes/quickstart/
* https://www.digitalocean.com/docs/kubernetes/how-to/connect-to-cluster/