Replies: 1 comment 1 reply
-
If used with K8S, it's pretty straighforward
apiVersion: v1
kind: Service
metadata:
name: vscode-service
spec:
selector:
app.kubernetes.io/name: MyApp
ports:
- protocol: TCP
port: 80
targetPort: 80
- protocol: TCP
port: 81
targetPort: 81
------
apiVersion: networking.k8s.io/v1
kind: Ingress
spec:
rules:
- host: example.net
http:
paths:
- path: /stable-fee1edb8d6d72a0ddff41e5f71a671c23ed924b9
pathType: Prefix
backend:
service:
name: vscode-service
port:
number: 80
- path: /stable-eaa41d57266683296de7d118f574d0c2652e1fc4
pathType: Prefix
backend:
service:
name: vscode-service
port:
number: 81 (not tested at all)
I don't think it can be considered as tricking VSCode, I'm even convinced that that prefix exists exactly for that reason
It's possible: in the workbenchConstructOptions (the parameter of the initialize method) you can provide a It's probably ok for patch version, but you can't really be sure there is no incompatibility
I can imagine 3 approaches:
|
Beta Was this translation helpful? Give feedback.
-
Hey guys, thank you for this awesome project!
I've been exploring the remote server functionality, and I have a question regarding version compatibility between the client and server, as mentioned in the "Production concerns" section:
My questions:
Can you provide a concrete example of how to set up the reverse proxy to handle multiple versions? How error prone is to trick vscode-server with such reverse proxy?
Is it possible to programmatically set the
<quality>-<commit>
on the client side? So we don't need a reverse proxy.Are there any best practices or recommended approaches for managing version compatibility in a production environment where client and server updates may not always be simultaneous?
Thank you for your time and for maintaining this project.
Beta Was this translation helpful? Give feedback.
All reactions