You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The config.linkerd.io/default-inbound-policy annotation may be set on a pod or namespace; otherwise the cluster-wide default applies (from .Values.policyController.defaultAllowPolicy). If the annotation is not set on an injected pod, we must always set it with the next-most-specific-scoped value.
Possible values include all-unauthenticated, all-authenticated, cluster-unauthenticated, cluster-authenticated, and deny. If an invalid value is specified proxies will fail during initialization (so it may be best to do this validation in the injector to fail before the pod is scheduled).
The the LINKERD2_PROXY_INBOUND_DEFAULT_POLICY environment configuration must be set with the value of this annotation so that the proxy can discover its own default.
The the LINKERD2_PROXY_POLICY_CLUSTER_NETWORKS environment configuration must be set with the value of .Values.clusterNetworks.
olix0r
changed the title
injector: Configure the config.linkerd.io/default-inbound-policy
injector: Configure config.linkerd.io/default-inbound-policyAug 20, 2021
The proxy injector now adds the `config.linkerd.io/default-inbound-policy` annotation to all injected pods.
Closes#6720.
If the pod has the annotation before injection then that value is used. If the pod does not have the annotation but the namespace does, then it inherits that. If both the pod and the namespace do not have the annotation, then it defaults to `.Values.policyController.defaultAllowPolicy`.
Upon injecting the sidecar container into the pod, this annotation value is used to set the `LINKERD2_PROXY_INBOUND_DEFAULT_POLICY` environment variable. Additionally, `LINKERD2_PROXY_POLICY_CLUSTER_NETWORKS` is also set to the value of `.Values.clusterNetworks`.
Signed-off-by: Kevin Leimkuhler <kevin@kleimkuhler.com>
config.linkerd.io/default-inbound-policy
annotation may be set on a pod or namespace; otherwise the cluster-wide default applies (from.Values.policyController.defaultAllowPolicy
). If the annotation is not set on an injected pod, we must always set it with the next-most-specific-scoped value.all-unauthenticated
,all-authenticated
,cluster-unauthenticated
,cluster-authenticated
, anddeny
. If an invalid value is specified proxies will fail during initialization (so it may be best to do this validation in the injector to fail before the pod is scheduled).LINKERD2_PROXY_INBOUND_DEFAULT_POLICY
environment configuration must be set with the value of this annotation so that the proxy can discover its own default.LINKERD2_PROXY_POLICY_CLUSTER_NETWORKS
environment configuration must be set with the value of.Values.clusterNetworks
.Related to linkerd/linkerd2-proxy#1210
The text was updated successfully, but these errors were encountered: