mirror of https://github.com/linkerd/linkerd2.git
proxy injector: mwc match expressions admission-webhooks disabled (#3460)
When running linkerd in HA mode, a cluster can be broken by bringing down the proxy-injector. Add a label to MWC namespace selctor that skips any namespace. Fixes #3346 Signed-off-by: hasheddan <georgedanielmangum@gmail.com>
This commit is contained in:
parent
e30f5b2e00
commit
fa01b49998
|
|
@ -13,5 +13,6 @@ metadata:
|
|||
{{.ProxyInjectAnnotation}}: {{.ProxyInjectDisabled}}
|
||||
labels:
|
||||
{{.LinkerdNamespaceLabel}}: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
{{ end -}}
|
||||
{{- end -}}
|
||||
|
|
|
|||
|
|
@ -81,8 +81,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
|
|||
|
|
@ -67,6 +67,12 @@ metadata:
|
|||
{{.ControllerNamespaceLabel}}: {{.Namespace}}
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -130,5 +130,5 @@ LinkerdNamespaceLabel: linkerd.io/is-control-plane
|
|||
# you can disable its installation. In this case:
|
||||
# - The namespace created by the external tool must match the Namespace value above
|
||||
# - The external tool needs to create the namespace with the label:
|
||||
# linkerd.io/is-control-plane: "true"
|
||||
# config.linkerd.io/admission-webhooks: disabled
|
||||
InstallNamespace: true
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
# Source: linkerd2/templates/identity-rbac.yaml
|
||||
---
|
||||
|
|
@ -441,8 +442,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -525,6 +528,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
# Source: linkerd2/templates/identity-rbac.yaml
|
||||
---
|
||||
|
|
@ -441,8 +442,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -525,6 +528,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
ProxyInjectAnnotation: ProxyInjectDisabled
|
||||
labels:
|
||||
LinkerdNamespaceLabel: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
ControllerNamespaceLabel: Namespace
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ metadata:
|
|||
linkerd.io/inject: disabled
|
||||
labels:
|
||||
linkerd.io/is-control-plane: "true"
|
||||
config.linkerd.io/admission-webhooks: disabled
|
||||
---
|
||||
###
|
||||
### Identity Controller Service RBAC
|
||||
|
|
@ -419,8 +420,10 @@ webhooks:
|
|||
- name: linkerd-proxy-injector.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: linkerd.io/is-control-plane
|
||||
operator: DoesNotExist
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-proxy-injector
|
||||
|
|
@ -501,6 +504,12 @@ metadata:
|
|||
linkerd.io/control-plane-ns: linkerd
|
||||
webhooks:
|
||||
- name: linkerd-sp-validator.linkerd.io
|
||||
namespaceSelector:
|
||||
matchExpressions:
|
||||
- key: config.linkerd.io/admission-webhooks
|
||||
operator: NotIn
|
||||
values:
|
||||
- disabled
|
||||
clientConfig:
|
||||
service:
|
||||
name: linkerd-sp-validator
|
||||
|
|
|
|||
Loading…
Reference in New Issue