本文主要是介绍ocp openshift 部署prome-alert笔记 ocp-route入门,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
路由允许您在公共 URL 托管应用程序。根据应用程序的网络安全配置,它可以安全或不受保护。基于 HTTP 的路由是一个不受保护的路由,它使用基本的 HTTP 路由协议,并在未安全的应用程序端口上公开服务。
官方文档:
https://access.redhat.com/documentation/zh-cn/openshift_container_platform/4.11/html/networking/configuring-routes
参考文章1 :
https://blog.51cto.com/itrunner/2369482
TLS Termination有三种类型:edge、passthrough、reencrypt
edge 访问route使用https协议,route到内部网络为非加密的,如未配置证书则使用默认证书。
reencrypt 全部访问路径均是加密的
passthrough 加密通信直接发送到目标,route不需提供TLS Termination。
参考文章二 , http - route ok:
https://blog.csdn.net/frank0521/article/details/125476612
示例1 prome-alert:
kubectl create deployment dep-prome-alert --image=bqharbordd01.test.mtr.bj.cn:8443/it/prometheus-alert --replicas=2
kubectl expose deployment dep-prome-alert --port=8080 --target-port=8000 # 没指明名字默认是 dep-prome-alert
创建非https的 route
```yaml
apiVersion: route.openshift.io/v1
kind: Route
metadata:labels:app: dep-prome-alertname: route-dep-prome-alertnamespace: default
spec:host: prome-alert.apps.test.mtr.bj.cnport:targetPort: 8080to:kind: Servicename: dep-prome-alertweight: 100
status:ingress:- conditions:host: prome-alert.apps.test.mtr.bj.cnrouterCanonicalHostname: router-default.apps.test.mtr.bj.cnrouterName: default
这篇关于ocp openshift 部署prome-alert笔记 ocp-route入门的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!