Chapter 5. Using ingress control for a MicroShift node
Use the ingress controller options in the MicroShift configuration file to make pods and services accessible outside the node.
5.1. Using ingress control in MicroShift Copy linkLink copied to clipboard!
When you create your MicroShift node, each pod and service running on the node is allocated an IP address. These IP addresses are accessible to other pods and services running nearby by default, but are not accessible to external clients. MicroShift uses a minimal implementation of the OpenShift Container Platform IngressController API to enable external access to node services.
With more configuration options, you can fine-tune ingress to meet your specific needs. To use enhanced ingress control, update the parameters in the MicroShift configuration file and restart the service.
Ingress configuration is useful in a variety of ways, for example:
- Accommodate server response speed
-
If your application starts processing requests from clients but the connection closes before it can respond, you can set the
ingress.tuningOptions.serverTimeoutparameter in the configuration file to a higher value to accommodate the speed of the response from the server.
-
If your application starts processing requests from clients but the connection closes before it can respond, you can set the
- Closing router connections
-
If the router has many connections open because an application running on the node does not close connections properly, you can set the
ingress.tuningOptions.serverTimeoutandspec.tuningOptions.serverFinTimeoutparameters to a lower value, forcing those connections to close sooner.
-
If the router has many connections open because an application running on the node does not close connections properly, you can set the
- Verify client certificates
-
If you need to configure the ingress controller to verify client certificates, you can use the
ingress.clientTLSparameter to set a clientCA value, which is a reference to a config map. The config map contains the PEM-encoded CA certificate bundle that is used to verify a client’s certificate. Optionally, you can also configure a list of certificate subject filters.
-
If you need to configure the ingress controller to verify client certificates, you can use the
- Configure a TLS security profile
-
If you need to configure a TLS security profile for an ingress controller, you can use the
ingress.tlsSecurityProfileparameter to specify a default or custom individual TLS security profiles. The TLS security profile defines the minimum TLS version and the TLS ciphers for TLS connections for the ingress controllers. If a TLS security profile is not configured, the default value is based on the TLS security profile set for the API server.
-
If you need to configure a TLS security profile for an ingress controller, you can use the
- Create policies for new route claims
-
If you need to define a policy for handling new route claims, you can use the
routeAdmissionparameter to allow or deny claims across namespaces. Set therouteAdmissionparameter to describe how hostname claims across namespaces should be handled and to describe how the ingress controller handles routes with wildcard policies.
-
If you need to define a policy for handling new route claims, you can use the
- Customize error pages
- If you want more than the default error pages, which are usually empty and only return the HTTP status code, configure custom error pages.
- Capture HTTP headers or cookies
- If you want to include the capture of HTTP headers or cookies, configure them in the access logging.
5.2. Configuring ingress control in MicroShift Copy linkLink copied to clipboard!
You can use detailed ingress control settings by updating the MicroShift service configuration file or using a configuration snippet.
-
A
config.yamlconfiguration file takes precedence over built-in settings. Theconfig.yamlfile is read every time the MicroShift service starts. -
Configuration snippet YAMLs take precedence over both built-in settings and the
config.yamlconfiguration file.
Prerequisites
-
You installed the OpenShift CLI (
oc). - You have root access to the node.
- Your node uses the OVN-Kubernetes Container Network Interface (CNI) plugin.
Procedure
Apply ingress control settings in one of the two following ways:
-
Update the MicroShift
config.yamlconfiguration file by making a copy of the providedconfig.yaml.defaultfile in the/etc/microshift/directory, naming itconfig.yamland keeping it in the source directory. -
Use a configuration snippet to apply the ingress control settings you want. To do this, create a configuration snippet YAML file and put it in the
/etc/microshift/config.d/configuration directory.
-
Update the MicroShift
Replace the default values in the
ingresssection of the MicroShift YAML with your valid values, or create a configuration snippet file with the sections you need.Ingress controller configuration fields with default values
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Expand Table 5.1. Ingress controller configuration fields definitions table Parameter Description ingressThe
ingresssection of the MicroShiftconfig.yamlfile defines the configurable parameters for the implementation of the OpenShift Container PlatformIngressControllerAPI. All of the following parameters in this table are subsections in theingresssection of the MicroShiftconfig.yaml.accessLoggingThis
ingresssubsection describes how client requests are logged. If thestatusfield is empty, access logging is disabled. When the status field is set toEnabled, access requests are logged as configured with theaccessLoggingparameters and theaccessLogging.destination.typeis automatically set toContainer.-
When enabled, access logging is part of the
openshift-routerlogs. The sos report procedure for MicroShift captures logs from this pod.
accessLogging.destinationA destination for logs. The destination for logs can be a local sidecar container or remote. Default value is null.
accessLogging.destination.typeThe type of destination for logs. Valid values are
ContainerorSyslog.-
Setting this value to
Containerspecifies that logs should go to a sidecar container. When the destination type is set toContainer, a container calledlogsis automatically created. Using container logs means that logs might be dropped if the rate of logs exceeds the container runtime capacity or the custom logging solution capacity. You must have a custom logging solution that reads logs from this sidecar. -
Setting this value to
Syslogspecifies that logs are sent to a Syslog endpoint. You must configure a custom Syslog instance and specify an endpoint that can receive Syslog messages. You must have a custom Syslog instance. For example, Getting started with kernel logging.
accessLogging.destination.containerDescribes parameters for the
Containerlogging destination type. You must configure a custom logging solution that reads logs from this sidecar.accessLogging.destination.container.maxLengthOptional configuration. The default value is
1024bytes. Message length must be at least480and not greater than8192bytes.accessLogging.destination.syslogDescribes parameters for the
Sysloglogging destination type. You must configure a custom Syslog instance with an endpoint that can receive Syslog messages.accessLogging.destination.syslog.addressRequired configuration when the
Syslogdestination type is set. Valid value is the IP address of the syslog endpoint that receives log messages.accessLogging.destination.syslog.facilityOptional configuration when the
Syslogdestination type is set. Specifies the syslog facility of log messages. If this field is empty, the facility islocal1. Otherwise, the field must specify one of the following valid syslog facilities:kern,user,mail,daemon,auth,syslog,lpr,news,uucp,cron, auth2`,ftp,ntp,audit,alert,cron2,local0,local1,local2,local3,local4,local5,local6, orlocal7.accessLogging.destination.syslog.maxLengthOptional configuration when the
Syslogdestination type is set. The maximum length of theSyslogmessage. Message length must be at least480and not greater than4096bytes. If this field is empty, the maximum length is set to the default value of1024bytes.accessLogging.destination.syslog.portRequired configuration when the
Syslogdestination type is set. The UDP port number of the syslog endpoint that receives log messages. The default value is0.httpCaptureCookiesSpecifies HTTP cookies that you want to capture in access logs. If the
httpCaptureCookiesfield is empty, access logs do not capture the cookies. Default value is empty. Configuringingress.accessLogging.httpCaptureCookiesautomatically enables ingress access logging. For any cookie that you want to capture, you must also set thematchTypeandmaxLengthparameters.For example:
httpCaptureCookies: - matchType: Exact maxLength: 128 name: MYCOOKIEhttpCaptureCookies: - matchType: Exact maxLength: 128 name: MYCOOKIECopy to Clipboard Copied! Toggle word wrap Toggle overflow
httpCaptureCookies.matchTypeSpecifies whether the field name of the cookie exactly matches the capture cookie setting or is a prefix of the capture cookie setting. Valid values are
Exactfor an exact string match andPrefixfor a string prefix match.-
If you use the
Exactsetting, you must also specify a name in thehttpCaptureCookies.namefield. -
If you use the
Prefixsetting, you must also specify a prefix in thehttpCaptureCookies.namePrefixfield. For example, the settings ofmatchType: Prefixwhen thenamePrefixis "mush" captures a cookie named "mush" or "mushroom" but not one named "room". The first matching cookie is captured.
httpCaptureCookies.maxLengthSpecifies the maximum length of the cookie that is logged, which includes the cookie name, cookie value, and one-character delimiter. If the log entry exceeds this length, the value is truncated in the log message. The ingress controller might impose a separate bound on the total length of HTTP headers in a request. The minimum value is
1byte, maximum value is1024bytes. The default value is0.httpCaptureCookies.nameSpecifies the exact name used for a cookie name match as set in the
httpCaptureCookies.matchTypeparameter. The value must be a valid HTTP cookie name as defined in RFC 6265 section 4.1. The minimum length is1byte and the maximum length is1024bytes.httpCaptureCookies.namePrefixSpecifies the prefix for a cookie name match as set in the
httpCaptureCookies.matchTypeparameter. The value must be a valid HTTP cookie name as defined in RFC 6265 section 4.1. The minimum length is1byte and the maximum length is1024bytes.httpCaptureHeadersDefines the HTTP headers that should be captured in the access logs. This field is a list and allows capturing request and response headers independently. When this field is empty, headers are not captured. This option only applies to plain text HTTP connections and to secure HTTP connections for which the ingress controller terminates encryption: for example, edge-terminated or reencrypt connections. Headers cannot be captured for TLS
passthroughconnections. Configuring theingress.accessLogging.httpCaptureHeadersparameter automatically enables ingress access logging.httpCaptureHeaders.requestSpecifies which HTTP request headers to capture. When this field is empty, no request headers are captured.
httpCaptureHeaders.request.maxLengthSpecifies a maximum length for the header value. When a header value exceeds this length, the value is truncated in the log message. The minimum required value is
1byte. The ingress controller might impose a separate bound on the total length of HTTP headers in a request.httpCaptureHeaders.request.nameSpecifies a header name. The value must be a valid HTTP header name as defined in RFC 2616 section 4.2. If you configure this value, you must specify
maxLengthandnamevalues.httpCaptureHeaders.responseSpecifies which HTTP response headers to capture. If this field is empty, no response headers are captured.
httpCaptureHeaders.response.maxLengthSpecifies a maximum length for the header value. If a header value exceeds this length, the value is truncated in the log message. The ingress controller might impose a separate bound on the total length of HTTP headers in a request.
httpCaptureHeaders.response.nameSpecifies a header name. The value must be a valid HTTP header name as defined in RFC 2616 section 4.2.
httpLogFormatSpecifies the format of the log message for an HTTP request. If this field is empty, log messages use the default HTTP log format. For HAProxy default HTTP log format, see the HAProxy documentation.
statusSpecifies whether access is logged or not. Valid values are
EnabledandDisabled. Default value isDisabled.-
When you configure either
ingress.accessLogging.httpCaptureHeadersoringress.accessLogging.httpCaptureCookies, you must setingress.accessLogging.statustoEnabled. -
When you set the
ingress.statusfield toEnabled, theaccessLogging.destination.typeis automatically set toContainerand the router logs all requests in thelogscontainer. -
If you set this value to
Disabled, the router does not log any requests in the access log.
certificateSecretA reference to a
kubernetes.io/tlstype of secret that contains the default certificate that the MicroShift ingress controller serves. When routes do not specify their own certificate, thecertificateSecretparameter is used. All secrets used must containtls.keykey file contents andtls.crtcertificate file contents.-
When the
certificateSecretparameter is not set, a wildcard certificate is automatically generated and used. The wildcard certificate is valid for the ingress controller defaultdomainand itssubdomains. The generated certificate authority (CA) is automatically integrated with the truststore of the node. - In-use generated and user-specified certificates are automatically integrated with the MicroShift built-in OAuth server.
clientTLSAuthenticates client access to the node and services. As a result, mutual TLS authentication is enabled. If this parameter is not set, then client TLS is not enabled. You must set the
spec.clientTLS.clientCertificatePolicyandspec.clientTLS.clientCAparameters to use client TLS.clientTLS.AllowedSubjectPatternsOptional subfield that specifies a list of regular expressions that are matched against the distinguished name on a valid client certificate to filter requests. This parameter is useful when you have client authentication. Use this parameter to cause the ingress controller to reject certificates based on the distinguished name. The Perl Compatible Regular Expressions (PCRE) syntax is required. You must set the
spec.clientTLS.clientCertificatePolicyandspec.clientTLS.clientCAparameters to useclientTLS.AllowedSubjectPatterns.ImportantWhen configured, this field must contain a valid expression or the MicroShift service fails. At least one pattern must match a client certificate’s distinguished name; otherwise, the ingress controller rejects the certificate and denies the connection.
clientTLS.clientCASpecifies a required config map that is in the
openshift-ingressnamespace. Required to enable client TLS. The config map must contain a certificate authority (CA) bundle namedca-bundle.pemor the deployment of the default router fails.clientTLS.clientCA.nameThe
metadata.nameof the config map referenced in theclientTLS.clientCAvalue.clientTLS.ClientCertificatePolicyRequiredorOptionalare valid values. Set toRequiredto enable client TLS. The ingress controller only checks client certificates for edge-terminated and re-encrypted TLS routes. The ingress controller cannot check certificates for plain text HTTP or passthrough TLS routes.defaultHTTPVersionSets the HTTP version for the ingress controller. The default value is
1for HTTP 1.1. Setting up a load balancer for HTTP 2 and 3 is recommended.forwardedHeaderPolicySpecifies when and how the ingress controller sets the
Forwarded,X-Forwarded-For,X-Forwarded-Host,X-Forwarded-Port,X-Forwarded-Proto, andX-Forwarded-Proto-VersionHTTP headers. The following values are valid:-
Appendpreserves any existing headers by specifying that the ingress controller appends them. 'Append` is the default value. -
Replaceremoves any existing headers by specifying that the ingress controller sets the headers. -
IfNonesets the headers set by specifying that the ingress controller sets the headers if they are not already set. -
Neverpreserves any existing headers by specifying that the ingress controller never sets the headers.
httpCompressionDefines the policy for HTTP traffic compression.
httpCompression.mimeTypesDefines a list of MIME types to which compression should be applied.
-
For example,
text/css; charset=utf-8,text/html,text/*,image/svg+xml,application/octet-stream,X-custom/customsub, in the,type/subtype; [;attribute=value]format. -
Valid
typesare: application, image, message, multipart, text, video, or a custom type prefaced byX-. To see the full notation for MIME types and subtypes, see RFC1341 (IETF Datatracker documentation).
httpEmptyRequestsPolicyDescribes how HTTP connections are handled if the connection times out before a request is received. Allowed values for this field are
RespondandIgnore. The default value isRespond. Empty requests typically come from load-balancer health probes or preconnects and can often be safely ignored. However, network errors and port scans can also cause these requests. Therefore, setting this field toIgnorecan impede detection or diagnosis of network problems and detecting intrusion attempts.-
When the policy is set to
Respond, the ingress controller sends an HTTP400or408response, logs the connection if access logging is enabled, and counts the connection in the appropriate metrics. -
When the policy is set to
Ignore, thehttp-ignore-probesparameter is added to theHAproxyprocess configuration. After this parameter is added, the ingress controller closes the connection without sending a response, then either logs the connection or incrementing metrics.
logEmptyRequestsSpecifies connections for which no request is received and logged.
LogandIgnoreare valid values. Empty requests typically come from load-balancer health probes or preconnects and can often be safely ignored. However, network errors and port scans can also cause these requests. Therefore, setting this field toIgnorecan impede detection or diagnosis of network problems and detecting intrusion attempts. The default value isLog.-
Setting this value to
Logindicates that an event should be logged. -
Setting this value to
Ignoresets thedontlognulloption in theHAproxyconfiguration.
httpErrorCodePagesDescribes custom error code pages. To use this setting, you must configure the
httpErrorCodePages.nameparameter.httpErrorCodePages.nameSpecifies custom error code pages. You can only customize errors for
503and404page codes. To customize error code pages, specify aConfigMapname. TheConfigMapobject must be in theopenshift-ingressnamespace and contain keys in theerror-page-<error code>.httpformat where<error code>is an HTTP status code. Each value in theConfigMapmust be the full response, including HTTP headers. The default value of this parameter is null.portsDefines default router ports.
ports.httpDefault router http port. Must be in range 1-65535. Default value is
80.ports.httpsDefault router https port. Must be in range 1-65535. Default value is
443.routeAdmissionDefines a policy for handling new route claims, such as allowing or denying claims across namespaces.
routeAdmission.namespaceOwnershipDescribes how hostname claims across namespaces are handled. The default is
InterNamespaceAllowed. The following are valid values:-
Strictdoes not allow routes to claim the same hostname across namespaces. -
InterNamespaceAllowedallows routes to claim different paths of the same hostname across namespaces.
routeAdmission.wildcardPolicyControls how the ingress controller handles routes with configured wildcard policies.
WildcardsAllowedandWildcardsDisallowedare valid values. Default value isWildcardsDisallowed.-
WildcardPolicyAllowedmeans that the ingress controller admits routes with any wildcard policy. -
WildcardPolicyDisallowedmeans that the ingress controller admits only routes with a wildcard policy ofNone.
ImportantChanging the wildcard policy from
WildcardsAllowedtoWildcardsDisallowedcauses admitted routes with a wildcard policy ofsubdomainto stop working. The ingress controller only readmits these routes after they are recreated with a wildcard policy ofNone.statusDefault router status.
ManagedorRemovedare valid values.tlsSecurityProfiletlsSecurityProfilespecifies settings for TLS connections for ingress controllers. If not set, the default value is based on theapiservers.config.openshift.io/clusterresource. The TLS1.0version of anOldorCustomprofile is automatically converted to1.1by the ingress controller.Intermediateis the default setting.-
The minimum TLS version for ingress controllers is
1.1. The maximum TLS version is1.3.
NoteThe
TLSProfilestatus shows the ciphers and the minimum TLS version of the configured security profile. Profiles are intent-based and change over time when new ciphers are developed and existing ciphers are found to be insecure. The usable list can be reduced depending on which ciphers are available to a specific process.tlsSecurityProfile.customUser-defined TLS security profile. If you configure this parameter and related parameters, use extreme caution.
tlsSecurityProfile.custom.ciphersSpecifies the cipher algorithms that are negotiated during the TLS handshake. Operators might remove entries their operands do not support.
tlsSecurityProfile.custom.minTLSVersionSpecifies the minimal version of the TLS protocol that is negotiated during the TLS handshake. For example, to use TLS versions 1.1, 1.2 and 1.3, set the value to
VersionTLS11. The highest valid value forminTLSVersionisVersionTLS12.tlsSecurityProfile.intermediateYou can use this TLS profile for a majority of services. Intermediate compatibility (recommended).
tlsSecurityProfile.oldUsed for backward compatibility. Old backward compatibility.
tlsSecurityProfile.typeValid values are
Intermediate,Old, orCustom. TheModernvalue is not supported.tuningOptionsSpecifies options for tuning the performance of ingress controller pods.
tuningOptions.clientFinTimeoutSpecifies how long the ingress controller holds a connection open while waiting for a client response before the server closes the connection. The default timeout is
1s.tuningOptions.clientTimeoutSpecifies how long the ingress controller holds a connection open while waiting for a client response. The default timeout is
30s.tuningOptions.headerBufferBytesSpecifies how much memory is reserved, in bytes, for ingress controller connection sessions. This value must be at least
16384if HTTP/2 is enabled for the ingress controller. If not set, the default value is32768bytes.ImportantSetting this field not recommended because
headerBufferMaxRewriteBytesparameter values that are too small can break the ingress controller. Conversely, values forheaderBufferMaxRewriteBytesthat are too large could cause the ingress controller to use significantly more memory than necessary.tuningOptions.headerBufferMaxRewriteBytesSpecifies how much memory should be reserved, in bytes, from
headerBufferBytesfor HTTP header rewriting and appending for ingress controller connection sessions. The minimum value forheaderBufferMaxRewriteBytesis4096.headerBufferBytesmust be greater than theheaderBufferMaxRewriteBytesvalue for incoming HTTP requests. If not set, the default value is8192bytes.ImportantSetting this field is not recommended because
headerBufferMaxRewriteBytesvalues that are too small can break the ingress controller andheaderBufferMaxRewriteBytesthat are too large could cause the ingress controller to use significantly more memory than necessary.tuningOptions.healthCheckIntervalSpecifies how long the router waits between health checks, set in seconds. The default is
5s.tuningOptions.maxConnectionsSpecifies the maximum number of simultaneous connections that can be established for each
HAProxyprocess. Increasing this value allows each ingress controller pod to handle more connections at the cost of additional system resources. Permitted values are0,-1, any value within the range2000and2000000, or the field can be left empty.-
If this field is empty or has the value
0, the ingress controller uses the default value of50000. -
If the field has the value of
-1, then theHAProxyprocess dynamically computes a maximum value based on the availableulimitsin the running container. This process results in a large computed value that incurs significant memory usage compared to the current default value of50000. -
If the field has a value that is greater than the current operating system limit, the
HAProxyprocesses do not start. -
If you choose a discrete value and the router pod is migrated to a new node, it is possible that the new node does not have an identical
ulimitconfigured. In such cases, the pod fails to start. -
You can monitor memory usage for router containers with the
container_memory_working_set_bytes{container="router",namespace="openshift-ingress"}metric. -
You can monitor memory usage of individual
HAProxyprocesses in router containers with thecontainer_memory_working_set_bytes{container="router",namespace="openshift-ingress"}/container_processes{container="router",namespace="openshift-ingress"}metric.
tuningOptions.serverFinTimeoutSpecifies how long a connection is held open while waiting for the server response to the client that is closing the connection. The default timeout is
1s.tuningOptions.serverTimeoutSpecifies how long a connection is held open while waiting for a server response. The default timeout is
30s.tuningOptions.threadCountSpecifies the number of threads to create per HAProxy process. Creating more threads allows each ingress controller pod to handle more connections, at the cost of using more system resources. The HAProxy load balancer supports up to
64threads. If this field is empty, the ingress controller uses the default value of4threads.ImportantSetting this field is not recommended because increasing the number of
HAProxythreads allows ingress controller pods to use more CPU time under load, and prevent other pods from receiving the CPU resources they need to perform. Reducing the number of threads can cause the ingress controller to perform poorly.tuningOptions.tlsInspectDelaySpecifies how long the router can hold data to find a matching route. Setting this value too low can cause the router to fall back to the default certificate for edge-terminated, re-encrypted, or passthrough routes, even when using a better-matched certificate. The default inspect delay is
5s.tuningOptions.tunnelTimeoutSpecifies how long a tunnel connection, including websockets, remains open while the tunnel is idle. The default timeout is
1h.-
When enabled, access logging is part of the
Complete any other configurations you require, then start or restart MicroShift by running one the following commands:
sudo systemctl start microshift
$ sudo systemctl start microshiftCopy to Clipboard Copied! Toggle word wrap Toggle overflow sudo systemctl restart microshift
$ sudo systemctl restart microshiftCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
After making ingress configuration changes and restarting MicroShift, you can check the age of the router pod to ensure that changes are applied.
To check the status of the router pod, run the following command:
oc get pods -n openshift-ingress
$ oc get pods -n openshift-ingressCopy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
NAME READY STATUS RESTARTS AGE router-default-8649b5bf65-w29cn 1/1 Running 0 6m10s
NAME READY STATUS RESTARTS AGE router-default-8649b5bf65-w29cn 1/1 Running 0 6m10sCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.1. Creating a secret for the ingress controller certificateSecret Copy linkLink copied to clipboard!
Use this procedure to create a secret that is referenced by the certificateSecret parameter value in the MicroShift configuration file. This secret contains the default certificate served by the ingress controller.
Any in-use certificates is automatically integrated with the MicroShift built-in OAuth server.
Prerequisites
- You have root access to MicroShift.
-
You installed the OpenShift CLI (
oc). - Your private key is not encrypted or you have decrypted it for importing into MicroShift.
Procedure
Create a secret that contains the wildcard certificate chain and key:
oc create secret tls <secret>
$ oc create secret tls <secret>1 --cert=</path/to/cert.crt>2 --key=</path/to/cert.key>3 -n openshift-ingressCopy to Clipboard Copied! Toggle word wrap Toggle overflow ImportantThe certificate must include the
subjectAltNameextension showing*.apps.<nodename>.<domain>.-
Update the
certificateSecretparameter value in the MicroShift configuration YAML with the newly created secret. Complete any other configurations you require, then start or restart MicroShift by running one the following commands:
sudo systemctl start microshift
$ sudo systemctl start microshiftCopy to Clipboard Copied! Toggle word wrap Toggle overflow sudo systemctl restart microshift
$ sudo systemctl restart microshiftCopy to Clipboard Copied! Toggle word wrap Toggle overflow
5.2.2. Configuring the TLS security profile for the ingress controller Copy linkLink copied to clipboard!
You can configure the TLS security profile for the ingress controller to use by setting the type in MicroShift configuration YAML.
Prerequisites
- You have root access to the MicroShift node.
Procedure
Add the
spec.tlsSecurityProfilefield to the MicroShift YAML configuration file.Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- Specify the TLS security profile type (
Old,Intermediate, orCustom). The default isIntermediate. - 2
- Specify the appropriate field for the selected type:
-
old: {} -
intermediate: {} -
custom:
-
- 3
- For the
customtype, specify a list of TLS ciphers and minimum accepted TLS version.WarningIf you choose a
customTLS configuration, use extreme caution. Using self-signed TLS certificates can introduce security risks.
- Save the file to apply the changes.
Restart MicroShift by running the following command:
sudo systemctl restart microshift
$ sudo systemctl restart microshiftCopy to Clipboard Copied! Toggle word wrap Toggle overflow