Contents
Red Hat® OpenShift Container Platform is a secure, enterprise-grade platform that combines the industry-leading container orchestration engine with advanced application build and delivery automation features that can span infrastructures—private, public, and hybrid. OpenShift provides the application architectures, platforms, and services that let organizations bring development and operations together, while it provides the foundation for digital transformation.
官网:https://manage.openshift.com/accounts/auth/keycloak
简介
- Starter Plan有四个节点:
Starter US East (N. Virginia):*.1d35.starter-us-east-1.openshiftapps.com
Starter US West (California):*.a3c1.starter-us-west-1.openshiftapps.com
Starter US West (Oregon):*.7e14.starter-us-west-2.openshiftapps.com
Starter Canada (Central):*.193b.starter-ca-central-1.openshiftapps.com - 72小时“累计”休眠够18小时即可,不是连续
- Starter Plan不可自定义域名
- 支持websocket、http、https
前面已经写过两篇相关文章,可参考:
- http://shui.azurewebsites.net/2017/10/31/the-digital-garage/
- http://shui.azurewebsites.net/2017/10/31/openshift-enterprise-3/
服务器配置
v2ray可以部署三种模式:WebSocket、HTTP和HTTPS。这里以WebSocket模式为例。
查找应用
登陆面板,进入project。
右上角Add to Project–>Deploy Image
查找镜像b1nitp7iw/v2ray
设置环境变量
b1nitp7iw/v2ray镜像默认使用WebSocket模式。只需设置变量UUID即可。
UUID可以通过网站https://www.uuidgenerator.net/生成,用于服务器连接验证。
点击Deploy。完成部署之后,访问应用HTTPS地址,显示Bad Request,说明部署成功了。
创建Route
TLS Termination选择Edge
更改配置
Kubernetes支持两种配置扩展,一种是水平扩展,即增加Pods数量,实现均衡负载;一种是垂直扩展,增加单个Pod的配置。垂直扩展以前的文章介绍过,这里介绍水平扩展。
客户端配置
security随意,端口443。
PC配置
PC段的配置文件如下,将其中的address和id改成自己的应用地址和UUID即可。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
{ "log": { "loglevel": "warning" }, "inbound": { "port": 8080, "protocol": "http", "listen": "127.0.0.1", "settings": { } }, "inboundDetour": [], "outbound": { "protocol": "vmess", "settings": { "vnext": [ { "address": "*******.****.starter-ca-central-1.openshiftapps.com", "port": 443, "users": [ { "id": "2eb5e581-****-****-****-2dd2775973eb", "alterId": 64, "security": "aes-128-gcm" } ] } ] }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "allowInsecure": true } }, "mux": { "enabled": true, "concurrency": 8 } }, "outboundDetour": [ { "protocol": "freedom", "settings": {}, "tag": "direct" } ], "dns": { "servers": [ "localhost" ] } } |
设置代理插件或程序:127.0.0.1:8080@HTTP
批处理切换配置
v2ray目前还没有图形界面,因此可以用批处理实现快速切换配置,也可以使用第三方的客户端。
将下面内容保存成v2ray.bat,放置在v2ray目录下,需要切换配置的时候,运行输入相关配置文件名就可以了。
1 2 3 4 5 6 7 8 9 10 11 12 13 |
@echo off echo ---------- dir /b *.json echo ---------- echo 默认配置config.json,直接回车即可 echo 如需选择us.json,输入 us 即可 echo 选择配置: set "config=config" set /p config= echo 已选择%config%.json taskList|findstr /i "wv2ray.exe" && taskkill /f /im wv2ray.exe start "" "%cd%\wv2ray.exe" -config %config%.json ping -n 2 127.0.0.1>nul |
IOS配置
Tips:
-
1Unable to load details about the server. If the problem continues, please contact your system administrator.
进入console出现这种错误提示,说明节点使用人数比较多,换个时间再试试 - 一旦选择节点创建console,就不能再更改
- 目前Canada的节点部署较快,California容易出错
just wonder if it is possible to use api for the container image to add or remove multiple users from an external database? i.e. instead of just allowing one user, how is it configured to allow at least 20 users without hard coding those 20 uuid and alterid in the config.json .
发现问题了,8080端口换一下就好了,权限问题
请问如何修改客户端配置?
修改?如果文中的配置觉得不够,可以参考v2ray的帮助文档,有比较详细的说明和举例
谢谢,其实我是出现了这个问题
设置好代理之后出现:
Access Error: 404 — Not Found
Cannot locate document: /
之前操作:
客户端配置
security随意,端口443。
不知道如何操作