Skip to content

Instantly share code, notes, and snippets.

@cccaternberg
Forked from vfarcic/kops-access.sh
Last active June 5, 2018 13:31
Show Gist options
  • Save cccaternberg/293b39a767e866e2532b5dba97d0d746 to your computer and use it in GitHub Desktop.
Save cccaternberg/293b39a767e866e2532b5dba97d0d746 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
#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