Skip to content
This repository has been archived by the owner on Feb 9, 2022. It is now read-only.

Ingress not working #1067

Open
rajashekhargundeti opened this issue Jan 25, 2021 · 1 comment
Open

Ingress not working #1067

rajashekhargundeti opened this issue Jan 25, 2021 · 1 comment

Comments

@rajashekhargundeti
Copy link

AKS: 1.16.15
BKPR: 1.16.1

Deployment, service, and ingress are getting created without issues.
But Ingress is unable to communicate to the service for whatever i deployed.
Its working for built-in deployments like kibana, grafana, prometheus and etc.

I tried redeploying kibana in another namespace, its not taking that as well.
Pasting my manifest here:

apiVersion: v1
kind: ConfigMap
metadata:
name: mspwb-api-env-config
namespace: mspwb
data:
SWAGGER_SCHEMES: https

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: mspwb-api
name: mspwb-api
namespace: mspwb
spec:
replicas: 1
selector:
matchLabels:
name: mspwb-api
template:
metadata:
labels:
name: mspwb-api
spec:
containers:
- name: mspwb-api
image: "xxxxx.azurecr.io/mspwb-api:development-1.0"
ports:
- containerPort: 3000
envFrom:
- configMapRef:
name: mspwb-api-env-config

apiVersion: v1
kind: Service
metadata:
labels:
name: mspwb-api-svc
name: mspwb-api-svc
namespace: mspwb
spec:
ports:

  • name: "http"
    port: 80
    targetPort: 3000
    selector:
    name: mspwb-api

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: mspwb-api-ingress
namespace: mspwb
annotations:
kubecfg.ksonnet.io/garbage-collect-tag: kube_prod_runtime
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
labels:
kubecfg.ksonnet.io/garbage-collect-tag: kube_prod_runtime
name: mspwb-api-ingress
spec:
tls:
- hosts:
- "api-mspwb.pro.abc.com"
secretName: api-mspwb-tls
rules:
- host: "api-mspwb.pro.abc.com"
http:
paths:
- path: /
backend:
serviceName: mspwb-api-svc
servicePort: 80

@javsalgar
Copy link
Contributor

Hi,

Which is the error that appears. Do the domain names resolve correctly or is it an error in the ingress controller side? Do the ingress logs show anything meaningful?

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

No branches or pull requests

2 participants