Tye deploy, ingress issue
mpp opened this issue · comments
Hi!
I'm starting with kubernetes (I know a very little) and tye.
I get no ingress rules when running tye deploy
tye.yml:
name: kubernetes-test
ingress:
- name: date-ingress
bindings:
- port: 8080
protocol: http
ip: "*"
rules:
- path: /Date
preservePath: true
service: date-service
registry: localhost:32000
services:
- name: date-service
project: /KubeTest/KubeTest.csproj
$ kubectl get ingress -A
NAMESPACE NAME CLASS HOSTS ADDRESS PORTS AGE
default date-ingress <none> * 80 2m16s
Am I missing something or this is not supported (https://github.com/dotnet/tye/blob/main/docs/tutorials/hello-tye/01_deploy.md)?
Thanks in advance!
I I would delete the ip: *
Hi David,
If I delete the line ip: *
then the ingress rule won't work from outside/remote when I run tye run
as it opens the port only on localhost.
Is this expected?
Also it does not change the result of tye deploy
.
My guess is that I messed up or forgot something on the microk8s configuration.
Edit:
Specifically I get this text when I run tye deploy
:
Processing Ingress 'date-ingress'...
Validating Ingress...
Verifying kubectl installation...
Verifying kubectl connection to cluster...
Found existing ingress controller 'ingress-nginx-controller' in namespace 'ingress-nginx'.
Is the last line a symptom of my issue?
Hi, I confirm that the issue was in the configuration of microk8s.
I did not enable the load balancer metallb
.
After I did that the ingress rules started to work.
Also I skipped (or read it too fast when I did not really know what I was looking at) this part of the documentation that led me to the solution:
https://github.com/dotnet/tye/blob/main/docs/recipes/ingress.md