-
-
Save krotkiewicz/315a3eac6f6435c0f05a0340c2aa2aec to your computer and use it in GitHub Desktop.
6.sh
This file contains 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 characters
root@node2 $ kube-proxy --master=http://$MASTER_IP:8080 &> /tmp/proxy.log & | |
$ doctl compute load-balancer create --name lb --region fra1 --forwarding-rules entry_protocol:http,entry_port:80,target_protocol:http,target_port:30073 --health-check protocol:http,port:30073,path:/,check_interval_seconds:10,response_timeout_seconds:5,healthy_threshold:5,unhealthy_threshold:3 | |
$ doctl compute droplet list "node*" | |
ID Name Public IPv4 Private IPv4 Public IPv6 Memory VCPUs Disk Region Image Status Tags | |
63370004 node 46.101.177.76 10.135.53.41 2048 2 40 fra1 Ubuntu 16.04.3 x64 active | |
63460608 node2 46.101.98.124 10.135.40.58 2048 2 40 fra1 Ubuntu 16.04.3 x64 active | |
$ doctl compute load-balancer add-droplets 58f02699-5717-43e6-bbfe-51ef4cc0a227 --droplet-ids 63370004,63460608 | |
$ doctl compute load-balancer get 58f02699-5717-43e6-bbfe-51ef4cc0a227 | |
ID IP Name Status Created At Algorithm Region Tag Droplet IDs SSL Sticky Sessions Health Check Forwarding Rules | |
58f02699-5717-43e6-bbfe-51ef4cc0a227 67.207.79.225 lb active 2017-09-27T09:40:56Z round_robin fra1 63370004,63460608 false type:none,cookie_name:,cookie_ttl_seconds:0 protocol:http,port:30073,path:/,check_interval_seconds:10,response_timeout_seconds:5,healthy_threshold:5,unhealthy_threshold:3 entry_protocol:http,entry_port:80,target_protocol:http,target_port:30073,certificate_id:,tls_passthrough:false | |
$ curl http://67.207.79.225 | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to nginx!</title> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment