Consul gateway is not loading the application

My deployment and other yaml files for a sample app in consul: link The routing is not happening.

Could anyone please check them and suggest what need to be fixed.

The traffic is not entering the app at all.

The steps I followed to install consul:

I have installed consul on kubernetes (docker desktop) using this link.

git clone
cd learn-consul-kubernetes/service-mesh/deploy

helm repo add hashicorp
helm repo update
helm install -f config.yaml consul hashicorp/consul --version "0.31.1"

the config file is in the repo folder: learn-consul-kubernetes/service-mesh/deploy


  name: consul
  datacenter: dc1
  image: hashicorp/consul:1.9.7
  imageEnvoy: envoyproxy/envoy:v1.16.4
    enabled: true
    enableAgentMetrics: true
  replicas: 1
  enabled: true
  enabled: true
  default: true
  enabled: true
  enabled: true
  enabled: true

And the pods created:

 kubectl get pods --selector app=consul
    PS D:\consul\learn-consul-kubernetes\service-mesh\deploy> kubectl get pods --selector app=consul
    NAME                                                          READY   STATUS    RESTARTS   AGE
    consul-6lf6k                                                  1/1     Running   0          4h44m
    consul-connect-injector-webhook-deployment-86759499c6-st7jj   1/1     Running   0          4h44m
    consul-controller-5788b8f6c7-z4vmt                            1/1     Running   0          4h44m
    consul-server-0                                               1/1     Running   0          4h44m
    consul-webhook-cert-manager-5745cbb9d-7qft2                   1/1     Running   0          4h44m

to access this consul-ui:

kubectl port-forward service/consul-ui 18500:80 --address

And able to access: http://localhost:18500/

consul server members:

PS D:\consul\learn-consul-kubernetes\service-mesh> kubectl exec -it consul-server-0 -- consul members
Node             Address         Status  Type    Build  Protocol  DC   Segment
consul-server-0  alive   server  1.9.7  2         dc1  <all>
docker-desktop  alive   client  1.9.7  2         dc1  <default>

Applied zero trust in network:

kubectl apply -f “D:\consul\learn-consul-kubernetes\service-mesh\zero-trust-network\deny-all.yaml”

kind: ServiceIntentions
  name: deny-all
    name: '*'
    - name: '*'
      action: deny

Accessing consul-ui using:

kubectl port-forward service/consul-ui 18500:80 --address

http://localhost:18500/ui/dc1/intentions The intentions so far: zero intentions

Now, zero intentions are created, I will deploy a sample app.

PS D:\consul\learn-consul-kubernetes\service-mesh\onlytext\consul-testing\static-app2> 

kubectl apply -f . created created created
service/static-server2 created
serviceaccount/static created
deployment.apps/static-deployment created

Now, the deployed app is not connecting with ingress. Can you please suggest how to fix this?

My yaml files: consul-testing/static-app2 at main · thunderbirds-2021/consul-testing · GitHub

Hi @ukreddy-erwin

In your config.yaml you have to enable ingress gateway
you can follow this document: