TykTechnologies / tyk-operator

Tyk Operator for Kubernetes
https://tyk.io
Other
198 stars 41 forks source link

tyk gateway ingress doesn't work #365

Closed tirelibirefe closed 2 years ago

tirelibirefe commented 3 years ago

Hello, Tyk gateway ingress doesn't work.

values.yaml

...
  ingress:
    enabled: true
    annotations:
      nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
      nginx.ingress.kubernetes.io/ssl-redirect: "false"
      kubernetes.io/ingress.class: "nginx"

    # kubernetes.io/ingress.class: nginx
    # kubernetes.io/tls-acme: "true"

    path: /tyk
    hosts:
      - xxxxxxxxxxxxxxxxx-a7959cf644b3a244.elb.eu-central-1.amazonaws.com
    tls: []
    #  - secretName: chart-example-tls
    #    hosts:
...

services

tirelibirefe@vm-tirelibirefe-01:~/tyk-operator/helm$ k get svc -n tyk
NAME                              TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)         AGE
gateway-svc-tyk-ce-tyk-headless   NodePort    10.100.147.153   <none>        443:32245/TCP   53m
tyk-redis-headless                ClusterIP   None             <none>        6379/TCP        61m
tyk-redis-master                  ClusterIP   10.100.116.247   <none>        6379/TCP        61m
tyk-redis-replicas                ClusterIP   10.100.98.243    <none>        6379/TCP        61m

ingress

tirelibirefe@vm-tirelibirefe-01:~/tyk-operator/helm$ k get ingress -n tyk
NAME                              CLASS    HOSTS                                                                              ADDRESS
                   PORTS   AGE
gateway-ing-tyk-ce-tyk-headless   <none>   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-a7959cf644b3a244.elb.eu-central-1.amazonaws.com   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-a7959cf644b3a244.elb.eu-central-1.amazonaws.com   80      3m9s

ingress describe

tirelibirefe@vm-tirelibirefe-01:~/tyk-operator/helm$ k describe ing gateway-ing-tyk-ce-tyk-headless -n tyk
Name:             gateway-ing-tyk-ce-tyk-headless
Namespace:        tyk
Address:          xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-a7959cf644b3a244.elb.eu-central-1.amazonaws.com
Default backend:  default-http-backend:80 (<error: endpoints "default-http-backend" not found>)
Rules:
  Host                                                                              Path  Backends
  ----                                                                              ----  --------
  xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-a7959cf644b3a244.elb.eu-central-1.amazonaws.com
                                                                                    /tyk   gateway-svc-tyk-ce-tyk-headless:http (192.168.55.127:8080)
Annotations:                                                                        kubernetes.io/ingress.class: nginx
                                                                                    meta.helm.sh/release-name: tyk-ce
                                                                                    meta.helm.sh/release-namespace: tyk
                                                                                    nginx.ingress.kubernetes.io/force-ssl-redirect: false
                                                                                    nginx.ingress.kubernetes.io/ssl-redirect: false
Events:
  Type    Reason  Age                    From                      Message
  ----    ------  ----                   ----                      -------
  Normal  Sync    2m43s (x2 over 3m27s)  nginx-ingress-controller  Scheduled for sync

ingress -o yaml

tirelibirefe@vm-tirelibirefe-01:~/tyk-operator/helm$ k get ing gateway-ing-tyk-ce-tyk-headless -n tyk -o yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
    meta.helm.sh/release-name: tyk-ce
    meta.helm.sh/release-namespace: tyk
    nginx.ingress.kubernetes.io/force-ssl-redirect: "false"
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
  creationTimestamp: "2021-09-24T21:25:46Z"
  generation: 1
  labels:
    app: gateway-ing-tyk-ce-tyk-headless
    app.kubernetes.io/managed-by: Helm
    chart: tyk-headless-0.9.3
    heritage: Helm
    release: tyk-ce
  name: gateway-ing-tyk-ce-tyk-headless
  namespace: tyk
  resourceVersion: "1883224"
  uid: 2a717b9b-2ff1-4ede-9dca-2a53f1c506fa
spec:
  rules:
  - host: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-a7959cf644b3a244.elb.eu-central-1.amazonaws.com
    http:
      paths:
      - backend:
          service:
            name: gateway-svc-tyk-ce-tyk-headless
            port:
              name: http
        path: /tyk
        pathType: ImplementationSpecific
status:
  loadBalancer:
    ingress:
    - hostname: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-a7959cf644b3a244.elb.eu-central-1.amazonaws.com

image

tyktestytyk commented 3 years ago

Hello Tireli Thanks for getting in touch. In the past we can see that you have posted similar questions on Tyk Community Forum. This is definitely the best place to ask these types of questions. Expect a response on Community within 2 business days

asoorm commented 2 years ago

Closing as appears to not be a defect and seems to have been resolved in community forum.