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/

Reply via email to