https://github.com/ksachdeva/k8s-examples
Various examples to get started with Kubernetes
https://github.com/ksachdeva/k8s-examples
azure azure-container-service example-project examples kubernetes nodejs
Last synced: about 1 year ago
JSON representation
Various examples to get started with Kubernetes
- Host: GitHub
- URL: https://github.com/ksachdeva/k8s-examples
- Owner: ksachdeva
- License: apache-2.0
- Created: 2017-08-08T13:15:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T18:31:44.000Z (over 8 years ago)
- Last Synced: 2025-01-04T08:35:49.299Z (about 1 year ago)
- Topics: azure, azure-container-service, example-project, examples, kubernetes, nodejs
- Language: JavaScript
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Building a Kubernetes cluster in Microsoft Azure
## Install Azure CLI 2.0
See the instructions at https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
## Create a resource group
```bash
az group create -n ksachdeva-exp
```
## Create a Azure Container Service (ACS)
```bash
# This command takes few minutes to complete
az acs create --orchestrator-type=kubernetes --resource-group ksachdeva-exp --name=ksachdeva-exp-acs --generate-ssh-keys
```
### Notes:
* This command can easily take 5+ minute to complete
* If it goes over 10 minute then you may want to exit out of it and delete the resource group `az group delete -n ksachdeva-exp` and issue the command again.
## Set your shell with the appropriate credentials
```bash
az acs kubernetes get-credentials --resource-group=ksachdeva-exp --name=ksachdeva-exp-acs
```
# Various Examples
* [A very basic example](example-1-basic)
* [A basic server application](example-2-basic-server-app)
* [A web app with database with a persistent disk](example-3-app-with-db)