Last active
March 8, 2018 02:37
-
-
Save tamalsaha/10c2c888ba8dfd7cf01a324c29a9d7b4 to your computer and use it in GitHub Desktop.
Voyager test
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
$ kubectl get pods,svc | |
NAME READY STATUS RESTARTS AGE | |
po/nginx-8586cf59-s8ml8 1/1 Running 0 1m | |
po/voyager-test-ingress-7c9f7b66cb-vwltz 1/1 Running 0 1m | |
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
svc/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4m | |
svc/meteor ClusterIP 10.102.63.216 <none> 80/TCP 1m | |
svc/voyager-test-ingress NodePort 10.103.43.13 <none> 80:30818/TCP 1m | |
$ minikube ip | |
192.168.99.100 | |
$ curl -vv http://192.168.99.100:30818 | |
* Rebuilt URL to: http://192.168.99.100:30818/ | |
* Trying 192.168.99.100... | |
* Connected to 192.168.99.100 (192.168.99.100) port 30818 (#0) | |
> GET / HTTP/1.1 | |
> Host: 192.168.99.100:30818 | |
> User-Agent: curl/7.47.0 | |
> Accept: */* | |
> | |
< HTTP/1.1 200 OK | |
< Server: nginx/1.13.9 | |
< Date: Thu, 08 Mar 2018 02:37:01 GMT | |
< Content-Type: text/html | |
< Content-Length: 612 | |
< Last-Modified: Tue, 20 Feb 2018 12:21:20 GMT | |
< ETag: "5a8c12c0-264" | |
< Accept-Ranges: bytes | |
< | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to nginx!</title> | |
<style> | |
body { | |
width: 35em; | |
margin: 0 auto; | |
font-family: Tahoma, Verdana, Arial, sans-serif; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Welcome to nginx!</h1> | |
<p>If you see this page, the nginx web server is successfully installed and | |
working. Further configuration is required.</p> | |
<p>For online documentation and support please refer to | |
<a href="http://nginx.org/">nginx.org</a>.<br/> | |
Commercial support is available at | |
<a href="http://nginx.com/">nginx.com</a>.</p> | |
<p><em>Thank you for using nginx.</em></p> | |
</body> | |
</html> | |
* Connection #0 to host 192.168.99.100 left intact |
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
#!/bin/bash | |
kubectl run nginx --image=nginx | |
kubectl expose deployment nginx --name=meteor --port=80 --target-port=80 |
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
apiVersion: voyager.appscode.com/v1beta1 | |
kind: Ingress | |
metadata: | |
name: test-ingress | |
namespace: default | |
annotations: | |
ingress.appscode.com/type: NodePort | |
ingress.appscode.com/use-node-port: 'false' | |
spec: | |
backend: | |
serviceName: meteor | |
servicePort: "80" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment