cloudfoundry-incubator / kubo-deployment

Contains manifests used to deploy Cloud Foundry Container Runtime
https://www.cloudfoundry.org/container-runtime/
Apache License 2.0
275 stars 114 forks source link

Add aws cloud provider for Windows nodes #401

Closed benmoss closed 5 years ago

benmoss commented 5 years ago

Adds an opsfile for Windows workers running on AWS.

Here's the opsfile set I've been using for deploying on AWS with a director deployed with https://github.com/cloudfoundry/bosh-bootloader/tree/master/plan-patches/cfcr-aws

bosh -d cfcr -n deploy ~/workspace/kubo-deployment/manifests/cfcr.yml \
  -v kubo-version=latest \
  -v kubo-windows-version=latest \
  -v windows-rdp-password="Foobar123!" \
  -v windows-stemcell-version=latest \
  -v deployment_name=cfcr \
  -v windows_worker_vm_type=large \
  -v master_vm_type=default \
  -v worker_vm_type=default \
  -v apply_addons_vm_type=default \
  -o ~/workspace/kubo-deployment/manifests/ops-files/misc/single-master.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/allow-privileged-containers.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/misc/version.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/vm-types.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/use-vm-extensions.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/add-hostname-to-master-certificate.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/misc/scale-to-one-az.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/iaas/aws/cloud-provider.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/iaas/aws/lb.yml \
  -l <(bbl outputs --state-dir ~/workspace/environments/aws) \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/add-worker.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/use-overlay.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/enable-rdp.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/version.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/stemcell.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/vm-types.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/iaas/aws/windows/cloud-provider.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/use-vm-extensions.yml \
  -o ~/workspace/kubo-deployment/manifests/ops-files/windows/scale-to-one-az.yml

An important note with AWS is that we've discovered a bug with Windows networking and AWS' Enhanced Networking feature. We need to avoid these VM types (C3, C4, D2, I2, M4 (excluding m4.16xlarge), and R3) for now. I'm using m5.xlarge for my Windows VMs.

cfdreddbot commented 5 years ago

:white_check_mark: Hey benmoss! The commit authors and yourself have already signed the CLA.

benmoss commented 5 years ago

Adding this commit to https://github.com/cloudfoundry-incubator/kubo-deployment/pull/397

forumsheth15 commented 4 years ago

hi @benmoss I am trying to add a windows-worker node on cfcr cluster on AWS. But facing the below error: image Can you guide me with this and let me now if aws support is enabled for cfcr ?