ultd / run-tyk-k8s

9 stars 1 forks source link

Port Forwarding Section(s) Error. #1

Open NiallJude opened 3 years ago

NiallJude commented 3 years ago

Hi,

This might just be myself, but for me the PF commands did not work and required manual intervention. With this:

kubectl port-forward service/gateway-control-svc-tyk-ce-tyk-headless 9696:9696 -n tyk\
& kubectl port-forward service/gateway-svc-tyk-ce-tyk-headless 8080:443 -n tyk

Instead of this:

kubectl -n tyk port-forward service/gateway-control-svc-tyk-headless 9696:9696 \
& kubectl -n tyk port-forward service/gateway-svc-tyk-headless 8080:443

I believe that gateway-svc-tyk-headless has been replaced by gateway-svc-tyk-ce-tyk-headless. Same Service, but with -ce-tyk- added to the name. If you concur, I can draw up a PR to correct and fix this. Thank you!

kubectl get all -n tyk output for reference:

NAME                                    READY   STATUS    RESTARTS   AGE
pod/gateway-tyk-ce-tyk-headless-cjvx2   1/1     Running   0          38m
pod/tyk-redis-master-0                  1/1     Running   0          38m
pod/tyk-redis-replicas-0                1/1     Running   0          38m
pod/tyk-redis-replicas-1                1/1     Running   0          37m
pod/tyk-redis-replicas-2                1/1     Running   0          37m

NAME                                              TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)         AGE
service/gateway-control-svc-tyk-ce-tyk-headless   ClusterIP   10.111.74.91    <none>        9696/TCP        38m
service/gateway-svc-tyk-ce-tyk-headless           NodePort    10.100.79.77    <none>        443:31257/TCP   38m
service/tyk-redis-headless                        ClusterIP   None            <none>        6379/TCP        38m
service/tyk-redis-master                          ClusterIP   10.106.4.92     <none>        6379/TCP        38m
service/tyk-redis-replicas                        ClusterIP   10.101.63.148   <none>        6379/TCP        38m

NAME                                         DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR   AGE
daemonset.apps/gateway-tyk-ce-tyk-headless   1         1         1       1            1           <none>          38m

NAME                                  READY   AGE
statefulset.apps/tyk-redis-master     1/1     38m
statefulset.apps/tyk-redis-replicas   3/3     38m
NiallJude commented 3 years ago

I am unable to create a PR on the Repo - but if you want to take a look then I added a GIST:

https://gist.github.com/NiallJude/04e45706e49b45486321fde3447a851a