Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following Hello World Tutorial on Kubernetes not working #18

Open
24 tasks
tkrausjr opened this issue May 13, 2021 · 0 comments
Open
24 tasks

Following Hello World Tutorial on Kubernetes not working #18

tkrausjr opened this issue May 13, 2021 · 0 comments

Comments

@tkrausjr
Copy link

Following instructions here - https://github.com/ibm-datapower/datapower-tutorials/blob/master/using-datapower-in-kubernetes/getting-started-datapower-in-gke.md on an OpenSource Kubernetes 1.20.2 Cluster with Persistence Volume Support and external Load Balancer. Everything deployed fine except my curl command against the Datapower service Fails to Connect. Steps I followed.

`- [ ] git clone https://github.com/ibm-datapower/datapower-tutorials.git

  • cd datapower-tutorials/using-datapower-in-kubernetes/
  • kubectl create configmap datapower-config --from-file=datapower/config/ --from-file=datapower/config/foo
  • kubectl create configmap datapower-local-foo --from-file=datapower/local/foo
  • kubectl describe configmap
  • cd kubernetes/deployments
  • Update Deployment Manifests with new K8s API
    • vi backend-deployment.yaml
      • Change first line to: apiVersion: apps/v1
    • vi datapower-deployment.yaml
      • Change first line to: apiVersion: apps/v1
      • Add Selector for apps/v1 API
      • selector:
      • matchLabels:
      • app: datapower
      • track: stable
  • k apply -f backend-deployment.yaml
  • k apply -f datapower-deployment.yaml
  • cd ../services/
  • k apply -f .
  • k get svc
    • NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    • backend LoadBalancer 10.96.158.41 192.168.100.130 8080:31387/TCP 117s
    • datapower LoadBalancer 10.96.62.225 192.168.100.131 80:30556/TCP 117s
  • curl -k 192.168.100.131:80
    curl: (7) Failed to connect to 192.168.100.131 port 80: Connection refused `

I also noticed that nothing in the datapower container seems to be listening on port 8080. Does anyone know if this tutorial works ? Its a pretty standard K8s setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant