-
-
Save cccaternberg/293b39a767e866e2532b5dba97d0d746 to your computer and use it in GitHub Desktop.
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
aws elb describe-load-balancers | |
kubectl config view | |
kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml | |
kubectl --namespace kube-ingress get all | |
aws elb describe-load-balancers | |
#This one wont work for me | |
#CLUSTER_DNS=$(aws elb describe-load-balancers | jq -r ".LoadBalancerDescriptions[] | select(.DNSName | contains (\"api-devops23\") | not).DNSName") | |
#fix | |
CLUSTER_DNS=$(aws elb describe-load-balancers | jq -r ".LoadBalancerDescriptions[] | select(.DNSName | contains (\"api-devops23\")) | .DNSName" | |
echo $CLUSTER_DNS | |
kubectl create -f https://raw.githubusercontent.com/vfarcic/k8s-specs/master/aws/go-demo-2.yml | |
kubectl rollout status deployment go-demo-2-api | |
curl -i "http://$CLUSTER_DNS/demo/hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment