Prerequisites

Security Contexts

  • Do not run applications with the user ID (UID) value of 1500. This is reserved for the Envoy proxy sidecar container injected into pods by OSM’s sidecar injector.
  • If security context runAsNonRoot is set to true at the pod level, a runAsUser value must be provided either for the pod or for each container. For example:

    1. securityContext:
    2. runAsNonRoot: true
    3. runAsUser: 1200

    If the UID is omitted, application containers may attempt to run as root user by default, causing conflict with the pod’s security context.

  • Additional capabilities are not required.

Note: the OSM init container is programmed to run as root and add capability NET_ADMIN as it requires these security contexts to finish scheduling. These values are not changed by application security contexts.

Ports

Do not use the following ports as they are used by the Envoy sidecar.

PortDescription
15000Envoy Admin Port
15001Envoy Outbound Listener Port
15003Envoy Inbound Listener Port
15010Envoy Prometheus Inbound Listener Port