Skip to content

Following Hello World Tutorial on Kubernetes not working #18

Description

@tkrausjr

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions