650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363140080157.jpg "/>
We already have the Load Balance Pool "Web Servers" and VIP, and then we need to add member to the pool and learn how to use cloud image. Prepare two instance first: "Web1" and "Web2".
Using Ubuntu Cloud Image
Since the Cirros Mirror cannot run the HTTP service, we will use Ubuntu Cloud image.
To Http://uec-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363646024871.jpg "/>
Unlike previous instance, WEB1 and Web2 use Key Pair named "Cloud."
This is because Ubuntu Cloud Image Default User "ubuntu" Password is randomly generated, access via Key Pair is a more convenient method.
Here's how to configure the Key Pair:
- The
-
Generates a Key Pair through Ssh-keygen.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363775005403.jpg "/>
where cloud.key.pub is the public key and needs to be added to instance ~/.ssh/ The Authorized_keys file. Cloud.key is the private key that is used to access instance.
-
Import pair key into OpenStack into the Access & Security menu, Compute, Project, click on "Import Key Pair" on the Key Pairs tab Button.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159363913028087.jpg "/>
Copies the contents of the cloud.key.pub.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364048004225.jpg "/>
Paste into the public key input box, name the Key Pair" Cloud ", and click" Import Key Pair ".
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364196015918.jpg "/>
Key Pair" Cloud "was successfully imported.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364428059430.jpg "/>
Use the Key Pair "cloud". Launch instance, select Key Pair "Cloud" in the Access & Security tab. OpenStack automatically adds the public key into the instance ~/.ssh/authorized_keys file.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364615005326.jpg "/>
SSH instance. Use the-I cloud.key to specify the private key and the Ubuntu user ssh "Web1" and "Web2".
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364774007049.jpg "/>
Login instance without a password directly.
Note: For the sake of demonstration, here we execute SSH in router's namespace, the main purpose is to reach the network.
"Web1" and "Web2" are ready to be added to the Pool. Click the "Add Member" button in the Members tab of the Load balancers, Project, Network.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159364995067686.jpg "/>
Pool Select "Web Servers". Select "Web1" and "Web2" in Member (s). Protocol Port is set to "80".
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159365128038052.jpg "/>
Click "Add", member add success.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481159365281032352.jpg "/>
Pool Member There, the next section we will create a Monitor for the Pool for Member health checks.
650) this.width=650; "Src=" http://7xo6kd.com1.z0.glb.clouddn.com/ Upload-ueditor-image-20161208-1481194909368028640.png "alt=" two-dimensional code + fingerprint. png "/>
Add Pool Member-5 minutes a day to play with OpenStack (123)