Created
March 19, 2018 11:31
-
-
Save vfarcic/6409171da5eebfd244aeb1966d8bd088 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
to figure out the CLUSTER_DNS
| not).DNSName)
wont work for me.This works in my case: