Bladeren bron

Switch to Centos and enable SDN on origin.

Fedora 21 doesn’t seem to have docker 1.6.2. Centos does.

Also without SDN networking was not working on AWS.
Patrick Tescher 9 jaren geleden
bovenliggende
commit
bce46b2170
2 gewijzigde bestanden met toevoegingen van 42 en 3 verwijderingen
  1. 39 0
      README_AWS.md
  2. 3 3
      playbooks/aws/openshift-cluster/vars.yml

+ 39 - 0
README_AWS.md

@@ -22,6 +22,27 @@ Note: You must source this file before running any Ansible commands.
 
 
 Alternatively, you could configure credentials in either ~/.boto or ~/.aws/credentials, see the [boto docs](http://docs.pythonboto.org/en/latest/boto_config_tut.html) for the format.
 Alternatively, you could configure credentials in either ~/.boto or ~/.aws/credentials, see the [boto docs](http://docs.pythonboto.org/en/latest/boto_config_tut.html) for the format.
 
 
+Subscribe to CentOS
+-------------------
+
+1. [CentOS on AWS](https://aws.amazon.com/marketplace/pp/B00O7WM7QW)
+
+
+Set up Security Group
+---------------------
+By default, a cluster is launched into the `public` security group. Make sure you allow hosts to talk to each other on port `4789` for SDN.
+You may also want to allow access from the outside world on the following ports:
+
+```
+• 22    - ssh
+• 80    - Web Apps
+• 443   - Web Apps (https)
+• 4789  - SDN / VXLAN
+• 8443  - Openshift Console
+• 10250 - kubelet 
+```
+
+
 (Optional) Setup your $HOME/.ssh/config file
 (Optional) Setup your $HOME/.ssh/config file
 -------------------------------------------
 -------------------------------------------
 In case of a cluster creation, or any other case where you don't know the machine hostname in advance, you can use `.ssh/config`
 In case of a cluster creation, or any other case where you don't know the machine hostname in advance, you can use `.ssh/config`
@@ -130,3 +151,21 @@ The --deployment-type flag can be passed to bin/cluster to specify the deploymen
   bin/cluster create aws --deployment-type=online <cluster-id>
   bin/cluster create aws --deployment-type=online <cluster-id>
 ```
 ```
 Note: If no deployment type is specified, then the default is origin.
 Note: If no deployment type is specified, then the default is origin.
+
+
+## Post-ansible steps
+Create the default router
+-------------------------
+On the master host:
+```sh
+oadm router --create=true \
+  --credentials=/etc/openshift/master/openshift-router.kubeconfig
+```
+
+Create the default docker-registry
+----------------------------------
+On the master host:
+```sh
+oadm registry --create=true \
+  --credentials=/etc/openshift/master/openshift-registry.kubeconfig
+```

+ 3 - 3
playbooks/aws/openshift-cluster/vars.yml

@@ -1,11 +1,11 @@
 ---
 ---
 deployment_vars:
 deployment_vars:
   origin:
   origin:
-    # fedora, since centos requires marketplace
-    image: ami-acd999c4
+    # centos-7, requires marketplace
+    image: ami-96a818fe
     image_name:
     image_name:
     region: us-east-1
     region: us-east-1
-    ssh_user: fedora
+    ssh_user: centos
     sudo: yes
     sudo: yes
     keypair: libra
     keypair: libra
     type: m3.large
     type: m3.large