https://github.com/jsturtevant/windows-k8s-playground
Playground for playing with Windows on Kubernetes.
https://github.com/jsturtevant/windows-k8s-playground
Last synced: about 2 months ago
JSON representation
Playground for playing with Windows on Kubernetes.
- Host: GitHub
- URL: https://github.com/jsturtevant/windows-k8s-playground
- Owner: jsturtevant
- License: mit
- Created: 2018-03-30T16:53:48.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-04T00:16:53.000Z (11 months ago)
- Last Synced: 2025-03-18T22:12:20.101Z (2 months ago)
- Language: Shell
- Size: 115 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# k8 with Windows Containers
Playground for playing with Windows on Kubernetes.## Create Resource Group and Service Principle
```
az login
az account set --subscription="${SUBSCRIPTION_ID}"
az group create -n acsengine-win -l eastus
az ad sp create-for-rbac --role="Owner" --scopes="/subscriptions/${SUBSCRIPTION_ID}/resourceGroups/acsengine-win"
```Copy output for updating `kubernetes.json` in next step.
## Create the cluster
- Update fields in `kubernetes.json` (service principle/password/public key)
- Run ACS Engine to generate output: `acs-engine generate kubernetes.json`
- Deploy cluster: `az group deployment create --name acsenginedeploy -g acsengine-win --template-file "_output/acsengine-win/azuredeploy.json" --parameters "./_output/acsengine-win/azuredeploy.parameters.json"`
- Set your context: `export KUBECONFIG=_output/acsengine-win/kubeconfig/kubeconfig.eastus.json`
- Double check your config: `k config current-context`
- see your window nodes and linux nodes: `k get nodes -o wide`## Deploy Service
- [Deploy your first service](https://github.com/Azure/acs-engine/blob/master/docs/kubernetes/windows.md#create-your-first-kubernetes-service): `k apply -f sample-apps/winservice.yaml`## Scale
```bash
/mnt/c/tools/acs-engine.exe scale --subscription-id \
--resource-group acsengine-win-193 --location eastus \
--deployment-dir _output/acsengine-win-193 --new-node-count 3 \
--node-pool windowspool2 --master-FQDN acsengine-win-193.eastus.cloudapp.azure.com
```