Похожие чаты

Hello I am new to devops Problem: Unable to access the

ticketing.dev from browser (configured using nginx)
I am using nginx and use minikube (running everything locally)

this is my service and deployment file

apiVersion: apps/v1
kind: Deployment
metadata:
name: auth-depl
spec:
replicas: 1
selector:
matchLabels:
app: auth
template:
metadata:
labels:
app: auth
spec:
containers:
- name: auth
image: arshad/auth
---
apiVersion: v1
kind: Service
metadata:
name: auth-srv
spec:
type: NodePort
selector:
app: auth
ports:
- name: auth
protocol: TCP
port: 3000
targetPort: 3000

this is my ingress file

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-service
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
spec:
rules:
- host: ticketing.dev
http:
paths:
- path: /api/users/?(.*)
pathType: Prefix
backend:
service:
name: auth-serv
port:
number: 3000

NAME CLASS HOSTS ADDRESS PORTS AGE
ingress-service <none> ticketing.dev 192.168.99.101 80 45m

I also added the /etc/hosts ip like ticketing.dev 192.168.99.101 but still I am getting *503 Service Temporarily Unavailable*
Anyone please help.

4 ответов

13 просмотров

There can be multiple things that can go wrong. first you need to check if the ngnix redirect to the service is actually working fine. second if the minikube is accessible from you local machine. https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/

Varun Gandhi
Any good kubernetes video tutorial... Full

this might help https://www.youtube.com/watch?v=Gip-Q6AWpcY haven't gone in depth although looks complementary.

Not Available- Автор вопроса

Minikube is accessible from my local machine like I can access the service by using minukube ip:port but I can't access it by the url that I gave in the ingress can you please tell me how can I check "ngnix redirect to the service" this thing

Похожие вопросы

Обсуждают сегодня

Вопрос по диагностике ошибок (я знаю в чем, в данном конкретном примере, я знаю, как исправить, пример модельный, понятно, что в реальности бывает намного запутаннее). module...
ⰄⰎⰋⰐⰐⰑⰛⰤⰧⰧⰩⰄ ⰊⰑⰁⰓⰡⰛⰦⰕⰫ
10
А дальше что?.. Записать в файл, потом в Код?.. И потом разбирать как-то?..
Хаскель Моисеевич Гопник
14
Есть какой-нибудь для Delphi/FPC T*Compression(Decompression)Stream на базе LZ4/Zstd/любой другой быстрый(и хорошо сжимающий) алгоритм А ещё лучше в pure pascal А ещё лучше од...
notme
52
А чем вам питонисты не угодили?😂
.
79
Asus, норм фирма для ноутов?
Артем Записной
20
доброго времени. db, dw и прочие исполняются при трансляции или при выполнении программы?
lutayyy
10
И ещё - определить, имеет ли он доступ к интернету очень просто - смотрим всех пользователей сети. И да, как оно без сети передаст данные в куда то?
BytePixel 🐧
15
Ясн. Но я всеравно к кедам отношусь с опасением. Чисто субьективное кедосозерцание. Что касаемо "восторга изяшности кед" так и не вкурил, хотя много слышал, пока не поставил с...
Артем Записной
30
Hi guys which one is better ?
A
12
Hey guys, did you see the new announcement about $Fun? 🔥
Filip Murphy
55
Карта сайта