mirror of
				https://github.com/kelseyhightower/kubernetes-the-hard-way.git
				synced 2025-11-04 02:02:33 +03:00 
			
		
		
		
	Merge pull request #60 from mydharma/patch-1
jq -j is not a valid option. I think the author meant jq -r
This commit is contained in:
		@@ -237,7 +237,7 @@ The following command will:
 | 
				
			|||||||
for host in ${KUBERNETES_HOSTS[*]}; do
 | 
					for host in ${KUBERNETES_HOSTS[*]}; do
 | 
				
			||||||
  PUBLIC_IP_ADDRESS=$(aws ec2 describe-instances \
 | 
					  PUBLIC_IP_ADDRESS=$(aws ec2 describe-instances \
 | 
				
			||||||
    --filters "Name=tag:Name,Values=${host}" | \
 | 
					    --filters "Name=tag:Name,Values=${host}" | \
 | 
				
			||||||
    jq -j '.Reservations[].Instances[].PublicIpAddress')
 | 
					    jq -r '.Reservations[].Instances[].PublicIpAddress')
 | 
				
			||||||
  scp ca.pem kubernetes-key.pem kubernetes.pem \
 | 
					  scp ca.pem kubernetes-key.pem kubernetes.pem \
 | 
				
			||||||
    ubuntu@${PUBLIC_IP_ADDRESS}:~/
 | 
					    ubuntu@${PUBLIC_IP_ADDRESS}:~/
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user