1.2. MicroShift 网络配置列表
下表总结了作为默认值、配置支持或者 MicroShift 服务不可用的网络功能和功能的状态:
| 网络功能 | 可用性 | 支持配置 |
|---|---|---|
| 公告地址 | 是 | 是 |
| Kubernetes 网络策略 | 是 | 是 |
| Kubernetes 网络策略日志 | 不可用 | N/A |
| 负载平衡 | 是 | 是 |
| 多播 DNS | 是 | 是 |
| 网络代理 | 是 | CRI-O |
| 网络性能 | 是 | MTU 配置 |
| 出口 IP | 不可用 | N/A |
| 出口防火墙 | 不可用 | N/A |
| 出口路由器 | 不可用 | N/A |
| 防火墙 | 否 | 是 |
| 硬件卸载 | 不可用 | N/A |
| 混合网络 | 不可用 | N/A |
| 集群内通信的 IPsec 加密 | 不可用 | N/A |
| IPv6 | 支持 | N/A |
| 入口路由器 | 是 | 是 |
| 多个网络插件 | 是 | 是 |
- 有关网络功能的更多详情
-
公告地址:如果未设置,则默认值会在服务网络后设置为下一个直接子网。例如,当服务网络为10.43.0.0/16时,advertiseAddress被设置为10.44.0.0/32。 -
多播 DNS:您可以使用多播 DNS 协议(mDNS)来允许使用5353/UDP端口上公开的多播在局域网(LAN)中进行名称解析和服务发现。 -
网络代理: MicroShift 中没有内置透明代理的出口流量。必须手动配置出口。 -
防火墙: RHEL for Edge 支持设置 firewalld 服务。 -
IPv6:在带有 OVN-Kubernetes 网络插件的单堆栈和双栈网络中均受支持。您还可以通过使用 MicroShift Multus CNI 插件连接到其他网络来使用 IPv6。 -
Ingress router:使用 MicroShiftconfig.yaml文件进行配置。
-
1.2.1. 默认设置 复制链接链接已复制到粘贴板!
如果您没有创建 config.yaml 文件或使用配置片断 YAML 文件,则会使用默认值。以下示例显示了默认配置设置。
要查看默认值,请运行以下命令:
$ microshift show-configYAML 格式输出的默认值
apiServer: advertiseAddress: 10.44.0.0/321 auditLog: maxFileAge: 0 maxFileSize: 200 maxFiles: 10 profile: Default namedCertificates: - certPath: "" keyPath: "" names: - "" subjectAltNames: [] tls: cipherSuites: - "" minVersion: VersionTLS12 debugging: logLevel: "Normal" dns: baseDomain: microshift.example.com etcd: memoryLimitMB: 0 ingress: certificateSecret: router-certs-default clientTLS: allowedSubjectPatterns: clientCA: name: "" clientCertificatePolicy: "" defaultHTTPVersion: 1 forwardedHeaderPolicy: "" httpCompression: mimeTypes: - "" httpEmptyRequestsPolicy: Respond listenAddress: - "" logEmptyRequests: Log ports: http: 80 https: 443 routeAdmissionPolicy: namespaceOwnership: InterNamespaceAllowed wildcardPolicy: WildcardPolicyAllowed status: Managed tlsSecurityProfile: type: Intermediate tuningOptions: clientFinTimeout: "1s" clientTimeout: "30s" headerBufferBytes: 0 headerBufferMaxRewriteBytes: 0 healthCheckInterval: "5s" maxConnections: 0 serverFinTimeout: "1s" serverTimeout: "30s" threadCount: 0 tlsInspectDelay: "5s" tunnelTimeout: "1h" kubelet: manifests: kustomizePaths: - /usr/lib/microshift/manifests - /usr/lib/microshift/manifests.d/* - /etc/microshift/manifests - /etc/microshift/manifests.d/* network: clusterNetwork: - 10.42.0.0/16 cniPlugin: "" multus: status: Disabled2 serviceNetwork: - 10.43.0.0/16 serviceNodePortRange: 30000-32767 node: hostnameOverride: "" nodeIP: ""3 nodeIPv6: "" storage: driver: ""4 optionalCsiComponents:5 - "" telemetry: endpoint: https://infogw.api.openshift.com proxy: "" status: Enabled