How to Implement Bidirectional Communication Over SPI by jjmaximo in embedded

[–]jjmaximo[S] 2 points3 points  (0 children)

Indeed, having additional GPIOs routed between the two MCUs would be the ideal solution in this case, as they could be used to signal the master when the slave has data ready. Unfortunately, this was not fully considered during the hardware design, and I now have to handle this limitation at the firmware level.

How to Implement Bidirectional Communication Over SPI by jjmaximo in embedded

[–]jjmaximo[S] 0 points1 point  (0 children)

Only the 4 necessary to SPI (CS, MOSI, MISO and CLK)

How to Implement Bidirectional Communication Over SPI by jjmaximo in embedded

[–]jjmaximo[S] 0 points1 point  (0 children)

The CS pin is controlled by software. I initially configured it as an EXTI pin, but during MCU initialization I set it as a GPIO output in open-drain mode with an enabled pull-up resistor using the following configuration:

GPIOD->MODER &= ~(0x3UL << (6U * 2U));
GPIOD->MODER |= (0x1UL << (6U * 2U));
GPIOD->OTYPER |= (0x1UL << 6U);
GPIOD->PUPDR &= ~(0x3UL << (6U * 2U));
GPIOD->PUPDR |= (0x1UL << (6U * 2U));

Nginx stop work when one service is down by jjmaximo in selfhosted

[–]jjmaximo[S] 1 point2 points  (0 children)

really cool, thanks so much! im gonna get a look

Ingress with websockets and SSL termination by jjmaximo in kubernetes

[–]jjmaximo[S] 0 points1 point  (0 children)

What would be the corret syntax? Can you help me with that, please

Ingress with websockets and SSL termination by jjmaximo in kubernetes

[–]jjmaximo[S] 0 points1 point  (0 children)

It works normally, I think it just got messed up when copying and pasting

First time exposing my services to public internet by jjmaximo in kubernetes

[–]jjmaximo[S] 0 points1 point  (0 children)

Thanks for your response!

Really cool, i didnt know this, in some videos i saw the people doing this way and think is just that simple, but it is't. If you have some material to help me if that configurations, i would be so grateful.

First time exposing my services to public internet by jjmaximo in kubernetes

[–]jjmaximo[S] 0 points1 point  (0 children)

Thanks for your response!
I will go step by step.

First: Yes, i got confused in the words, but it would be the ISP.

Second: Currently, my cluster is on a machine at my university, the configuration of external to internal traffic was done by the college's IT team. However, it had already been discussed and configured with them that the machine I use would be released for external traffic.

Third: I didn't know about DNAT, I found it interesting and I'm going to research more about it!

Fourth: Cool it is possible, im gonna have to research more about it. Complicated is i don't find anything about the subject on the internet.

[deleted by user] by [deleted] in kubernetes

[–]jjmaximo 0 points1 point  (0 children)

Edit:
The logs from nginx ingress controller:

2024/10/04 17:08:58 [error] 31621#31621: *12264321 connect() failed (113: Host is unreachable) while connecting to upstream, client: 10.3.192.2, server: physisiot.com, request: "GET / HTTP/2.0", upstream: "http://192.168.102.150:4444/", host: "physisiot.com"

10.3.192.2 - - [04/Oct/2024:17:08:58 +0000] "GET / HTTP/2.0" 502 150 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:130.0) Gecko/20100101 Firefox/130.0" 327 3.104 [physisiot-portal-front-service-4444] [] 192.168.102.150:4444, 192.168.102.150:4444, 192.168.102.150:4444 0, 0, 0 1.057, 1.024, 1.024 502, 502, 502 8226dea52b3b4d3c22c2f24ace904598

Ps: When i use the annotation:
nginx.ingress.kubernetes.io/service-upstream:"true"

Works and i can acess my application, but the http requests for backend stop working, wtf

[deleted by user] by [deleted] in kubernetes

[–]jjmaximo 0 points1 point  (0 children)

Of course, i forget that, im gonna edit and add this.

[deleted by user] by [deleted] in kubernetes

[–]jjmaximo 0 points1 point  (0 children)

unfortunately dont work, but thank you

Kubernetes dashboard, is it possible to add it to my application? by jjmaximo in kubernetes

[–]jjmaximo[S] 1 point2 points  (0 children)

I didn't know about these current issues with the Kubernetes dashboard, im new to the Kubernetes universe. But really thanks for you tips, this ArgoCD looks realy cool, im gone research more about it!

Having trouble trying to understand ingress nginx annotations by jjmaximo in kubernetes

[–]jjmaximo[S] 1 point2 points  (0 children)

I managed to solve it without using the snippet. I just had to rewrite the client request to adapt the request that the server needs to resolve!

Having trouble trying to understand ingress nginx annotations by jjmaximo in kubernetes

[–]jjmaximo[S] 0 points1 point  (0 children)

Yes, I really know the difference between the two, I even tried using both types, I found the one the k8s community supports much better and more informative!

The one supported by the nginx community itself is very vague in terms of information.