- 
      
 - 
        
Save camilb/ad6cb13b3f062feef81b645878621300 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
tobemedia created this gist
Jul 29, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # file: aws_eks_config.yml # AWS EKS ClusterConfig used to setup the BinderHub / JupyterNotebooks K8s cluster # using a workaround from https://discourse.jupyter.org/t/binder-deployed-in-aws-eks-domain-name-resolution-errors/766/10 # to fix broken DNS resolution --- apiVersion: eksctl.io/v1alpha5 kind: ClusterConfig metadata: name: eks-dns-production region: eu-central-1 nodeGroups: - name: eks-dns-workers-production instanceType: t2.small minSize: 0 maxSize: 4 desiredCapacity: 2 preBootstrapCommands: # Replicate what --enable-docker-bridge does in /etc/eks/bootstrap.sh # Enabling the docker bridge network. We have to disable live-restore as it # prevents docker from recreating the default bridge network on restart - "cp /etc/docker/daemon.json /etc/docker/daemon_backup.json" - "echo -e '.bridge=\"docker0\" | .\"live-restore\"=false' > /etc/docker/jq_script" - "jq -f /etc/docker/jq_script /etc/docker/daemon_backup.json | tee /etc/docker/daemon.json" - "systemctl restart docker"