-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certificate-less bootstrap tokens #93
Conversation
Great work @edigaryev - the worker has now been able to re-register. I did a quick test and everything seems to be working so far, but there is a recurring message around a 400 error:
|
Also having issues with
|
@ruimarinho can you check if the following ingress configuration works for you: apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: orchard-ingress
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: orchard
port:
number: 6120
ingressClassName: nginx
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: orchard-ingress-grpc
annotations:
nginx.ingress.kubernetes.io/backend-protocol: "GRPCS"
spec:
rules:
- http:
paths:
- path: /Controller
pathType: Prefix
backend:
service:
name: orchard
port:
number: 6120
ingressClassName: nginx It most certainly will need to be adapter for your environment, but the main idea is that without I've tried this on a local Kubernetes cluster and port-forwarding/SSH seem to work just fine. |
@edigaryev I've tested your suggestion but I'm getting a 504 timeout:
I'm using 443 for the Theoretically, it's being forwarded correctly because nginx is complaining about a If you have any suspicion, let me know, otherwise I'll keep digging. Thanks! |
@edigaryev after testing with a few more settings (
After some investigation, it seems like nginx has an issue multiplexing HTTP/1.1 and gRPC, although I'm not entirely sure it's related with that here. My suggestion would be to add a flag -- even a test build -- to run the gRPC server on a different port to see if that helps. There is nothing on the controller logs related to Any other ideas you may have? Below is the nginx configuration block generated for
```
location = /Controller {
|
In #86, Orchard was starting to create certificate-less contexts for Controllers that are using PKI-compatible certificates.
However, I've overlooked the fact the we also need to add the certificate-less support to the bootstrap tokens.
Resolves #86.