You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by radha <ja...@gmail.com> on 2018/12/19 05:05:40 UTC

unable to access ignite through ingress endpoints on k8s

Hi,
   Inorder to access the ignite rest port from outside, i am using
kubernetes ingress.

ignite-ingress.yaml:
===============
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: test-ign-ignite
  annotations:
    ingress.kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/rewrite-target: /

spec:
  rules:
  - http:
       paths:
         - path: /access
           backend:
              serviceName: ignite-service-test
              servicePort: 8080


ignite-srevice.yaml
============

apiVersion: v1
kind: Service
metadata:
  name: ignite-service-test
  namespace: default
spec:
  clusterIP: None
  selector:
    app: ignite-app
  ports:
    - name: ignite-rest-port
      port: 8080
   

Rest Api call using service name is working fine, and responding with the
version:
curl 
"http://ignite-service-test.default.svc.cluster.local:8080/ignite?cmd=version"

When i try to access the ignite through ingress endpoint :
curl "http://edge_node_ip:80/access/ignite?cmd=version"
Getting below things
<html>
<head><title>308 Permanent Redirect</title></head>
<body bgcolor="white">
<center>
308 Permanent Redirect
</center>
<hr><center>nginx</center>
</body>
</html>

Please let me know where things went wrong.

Regards
Krupa





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: unable to access ignite through ingress endpoints on k8s

Posted by radha jai <ja...@gmail.com>.
It was a mistake in my ingress side. I am able to access the ignite rest
endpoint through ingress endpoints.

Regards
radha

On Wed, 19 Dec 2018 at 10:43, radha <ja...@gmail.com> wrote:

> Hi,
>    Inorder to access the ignite rest port from outside, i am using
> kubernetes ingress.
>
> ignite-ingress.yaml:
> ===============
> apiVersion: extensions/v1beta1
> kind: Ingress
> metadata:
>   name: test-ign-ignite
>   annotations:
>     ingress.kubernetes.io/ingress.class: nginx
>     nginx.ingress.kubernetes.io/rewrite-target: /
>
> spec:
>   rules:
>   - http:
>        paths:
>          - path: /access
>            backend:
>               serviceName: ignite-service-test
>               servicePort: 8080
>
>
> ignite-srevice.yaml
> ============
>
> apiVersion: v1
> kind: Service
> metadata:
>   name: ignite-service-test
>   namespace: default
> spec:
>   clusterIP: None
>   selector:
>     app: ignite-app
>   ports:
>     - name: ignite-rest-port
>       port: 8080
>
>
> Rest Api call using service name is working fine, and responding with the
> version:
> curl
> "
> http://ignite-service-test.default.svc.cluster.local:8080/ignite?cmd=version
> "
>
> When i try to access the ignite through ingress endpoint :
> curl "http://edge_node_ip:80/access/ignite?cmd=version"
> Getting below things
> <html>
> <head><title>308 Permanent Redirect</title></head>
> <body bgcolor="white">
> <center>
> 308 Permanent Redirect
> </center>
> <hr><center>nginx</center>
> </body>
> </html>
>
> Please let me know where things went wrong.
>
> Regards
> Krupa
>
>
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>