Skip to content

Instantly share code, notes, and snippets.

@vfarcic
Created March 19, 2018 11:31
Show Gist options
  • Save vfarcic/6409171da5eebfd244aeb1966d8bd088 to your computer and use it in GitHub Desktop.
Save vfarcic/6409171da5eebfd244aeb1966d8bd088 to your computer and use it in GitHub Desktop.
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
CLUSTER_DNS=$(aws elb describe-load-balancers | jq -r ".LoadBalancerDescriptions[] | select(.DNSName | contains (\"api-devops23\") | not).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"
@cccaternberg
Copy link

Hi,
to figure out the CLUSTER_DNS | not).DNSName) wont work for me.
This works in my case:

CLUSTER_DNS=$(aws elb describe-load-balancers | jq -r ".LoadBalancerDescriptions[] | select(.DNSName | contains (\"api-devops23\")) | .DNSName")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment