Print

CloudOS E5103P01关闭http访问

1小时前 发表

组网及说明

CloudOS E5103P01版本

问题描述

对于CloudOS E5103P01版本默认开启了http访问方式,无法跳转使用https方式进行访问

过程分析

对于该问题为E5103P01版本引入ingress新组建导致http意外暴露

解决方法

1、配置过程

现场环境 ingress 名称可能不一致,请检查ingress 名称是否包含 portal annotations  

是否包含 /platform。如果符合请 增加 annotations  nginx.ingress.kubernetes.io/force-ssl-redirect: "true"

如果不符合,则说明平台版本不支持。

$ kubectl edit ingress ingress-portal

apiVersion: extensions/v1beta1

kind: Ingress

metadata:

  annotations:

    kubernetes.io/ingress.class: nginx

    nginx.ingress.kubernetes.io/app-root: /platform

    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"

2. 检测

chrome  浏览器隐身模式,F12 打开控制台,输入 http:// ${ip}  观察是否自动跳转到 https