Comments (3)
values.yml 里面有 ingress 相关配置,直接开启即可
https://github.com/jumpserver/helm-charts/blob/main/charts/jumpserver/values.yaml#L49
from helm-charts.
使用helm3 部署的jumpserver websocket 还是异常 我的环境是 microk8s v1.27.2 1.27/stable
根据日志判断是请求websocket 时 ingress upgrade 失败。导致流量并没有转发到websocket的处理程序,所以返回404错误。
我用port forward 直接访问服务是正常的。
下面是helm自动部署生成的ingress
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: jumpserver-ingress namespace: jumpserver uid: 9952c44c-167c-400c-bda9-8620915eba96 resourceVersion: '85259' generation: 1 creationTimestamp: '2023-06-05T06:36:58Z' labels: app.kubernetes.io/instance: jumpserver app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: jumpserver app.kubernetes.io/version: v3.3.1 helm.sh/chart: jumpserver-3.3.1 annotations: kubernetes.io/ingress.class: nginx meta.helm.sh/release-name: jumpserver meta.helm.sh/release-namespace: jumpserver nginx.ingress.kubernetes.io/configuration-snippet: | proxy_set_header Upgrade "websocket"; proxy_set_header Connection "Upgrade"; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; nginx.ingress.kubernetes.io/proxy-body-size: 4096m managedFields: - manager: helm operation: Update apiVersion: networking.k8s.io/v1 time: '2023-06-05T06:36:58Z' fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: .: {} f:kubernetes.io/ingress.class: {} f:meta.helm.sh/release-name: {} f:meta.helm.sh/release-namespace: {} f:nginx.ingress.kubernetes.io/configuration-snippet: {} f:nginx.ingress.kubernetes.io/proxy-body-size: {} f:labels: .: {} f:app.kubernetes.io/instance: {} f:app.kubernetes.io/managed-by: {} f:app.kubernetes.io/name: {} f:app.kubernetes.io/version: {} f:helm.sh/chart: {} f:spec: f:rules: {} f:tls: {} selfLink: >- /apis/networking.k8s.io/v1/namespaces/jumpserver/ingresses/jumpserver-ingress status: loadBalancer: {} spec: ingressClassName: public tls: - hosts: - jumpserver.tetest.pro secretName: jumpserver-xxx-pro-tls rules: - host: jumpserver.xxx.pro http: paths: - path: / pathType: Prefix backend: service: name: jumpserver-jms-web port: number: 80
from helm-charts.
已踩坑,这个地方需要删除helm开启ingress 后自动生成的以下内容,不然的话wss协议会被ingress的nginx和jms-web服务里的nginx upgrade两次。删除后测试正常。websokcet连接正常。
from helm-charts.
Related Issues (20)
- [Question] K8S 应用没有客户端,KOKO 容器端应该如何解决? HOT 1
- [Question] Persistence Access Mode HOT 1
- [Question] Celery和Core的Pod使用相同的Label HOT 1
- [Question] 为啥helm的版本不同步啊?隔壁都3.2.1了 HOT 2
- [Question] docker image 没有更新 HOT 1
- [Question] jms-core 能否使用minio,不使用pvc HOT 2
- Question: How to modify the ansible.cfg file ? 🤔 HOT 1
- [Bug] web一直启动失败,service-chen.yaml没有创建
- [Bug] 组件kael有配置项决定启用还是禁用,但禁用后,web启动不了 HOT 3
- [Question] helm 升级时 jms-init-db 报错 'acls_connectmethodacl' already exists HOT 3
- [Bug] 从2.8.5升级至2.8.20时失败 HOT 8
- [Bug] 登录日志的IP为局域网IP HOT 14
- [Bug] 3.8.2升级到3.9.1失败,升级到3.9.0也不行,查看pod似乎是升级数据库失败 HOT 6
- [Question] helm repo add 報錯 HOT 1
- [Feature] k8s離線部署jumpserver HOT 1
- [Feature] Ingress apiVersion变成变量 HOT 1
- [Question] helm部署core组件一直启动不起来 HOT 5
- [Bug] helm安装不能正常部署 HOT 1
- [Bug] HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.