common 参数
使用
common 来定义入口主机子域,方法是使用向应用程序服务器公开的入口或路由。此外,使用 common 参数定义适用于所有 appServer 实例的常用入口和服务配置。
以下 YAML 文件是
common的样本模式: common:
ingress:
host: ""
# annotations: {}
# labels: {}
# className: ""
# skipDefaultAnnotations: false
# ssl:
# enabled: true
# identitySecretName: ""
# customDomains:
# - host: ""
# annotations: {}
# labels: {}
# className: ""
# skipDefaultAnnotations: false
# ssl:
# enabled: true
# identitySecretName: ""
# - host: ""
# annotations: {}
# labels: {}
# className: ""
# skipDefaultAnnotations: false
# ssl:
# enabled: true
# identitySecretName: ""
# pod:
# podAnnotations: {}
# podLabels: {}下表说明适用于
SIPEnvironment的 common 参数的属性。| 属性 | 缺省值 | 值类型 | 必需 | 描述 |
|---|---|---|---|---|
ingress |
对象 | 是 | 指定入口参数。 有关配置入口的更多信息,请参阅 入口参数。 | |
pod.podAnnotations |
对象 | False | 以键值对的形式为 pod 或部署指定任何附加注释。 | |
pod.podLabels |
对象 | False | 以键值对的形式为 pod 或部署指定任何附加标签。 切记请勿覆盖以下三个标签,因为它们由操作员内部使用。
|
ingress 参数
下表说明适用于
common的 ingress 参数的属性。| 属性 | 缺省值 | 值类型 | 必需 | 描述 |
|---|---|---|---|---|
host |
字符串 | 是 | 指定要用于创建入口或路由资源的集群的入口子域。 | |
annotations |
对象 | False | 指定入口或路由资源的任何其他注释作为键值对。 | |
className |
字符串 | False | 指定 ingress 类名。 如果有non-OpenShift Kubernetes集群,则默认为nginx。 |
|
customDomains |
array |
False | 指定 customDomains 列表,其中包含一个或多个完全合格域名 (FQDN),您的应用程序将通过这些域名进行公开。 有关配置的更多信息 customDomains请参阅在 SIPEnvironment 中配置 customDomains 和示例架构。 |
|
labels |
对象 | False | 指定入口或路由资源的任何其他标签作为键值对。 | |
skipDefaultAnnotations |
否 | 布尔型 | False | 如果想跳过操作符默认添加的所有注释,请将此属性指定为 true。 |
ssl |
对象 | False | 指定 SSL 参数。 有关更多信息,请参阅 ssl 参数。 |
ssl 参数
下表说明适用于
ingress的 ssl 参数的属性。| 属性 | 缺省值 | 值类型 | 必需 | 描述 |
|---|---|---|---|---|
enabled |
是 | 布尔型 | False | 将此值设置为 true 以针对入口启用 SSL。 |
identitySecretName |
字符串 | False | 指定保存要用作入口或路由的身份的 TLS 证书的私钥的名称。 入口或路由 URL 向客户端展示 TLS 证书。 |