Skip to content

Commit

Permalink
Add NodeSelector support
Browse files Browse the repository at this point in the history
Signed-off-by: Beza <[email protected]>
  • Loading branch information
bezarsnba committed Jun 2, 2024
1 parent da68ff1 commit 5990704
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion charts/linkerd-failover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ Kubernetes: `>=1.20.0-0`
| namespaceMetadata.image.pullPolicy | string | `"IfNotPresent"` | Pull policy for the namespace-metadata instance |
| namespaceMetadata.image.registry | string | `"cr.l5d.io/linkerd"` | Docker registry for the namespace-metadata instance |
| namespaceMetadata.image.tag | string | `"v0.1.0"` | Docker image tag for the namespace-metadata instance |
| nodeSelector | object | `{}` | nodeSelector sections. For information on node selector sections, please refer [ K8s documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) for more details. |
| selector | string | `nil` | Determines which `TrafficSplit` instances to consider for failover. If empty, defaults to failover.linkerd.io/controlled-by={{ .Release.Name }} |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
Autogenerated from chart metadata using [helm-docs v1.13.1](https://github.com/norwoodj/helm-docs/releases/v1.13.1)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
labels:
linkerd.io/extension: failover
spec:
{{- if .Values.nodeSelector }}
nodeSelector:
{{ .Values.nodeSelector | toYaml }}
{{- end }}
serviceAccountName: linkerd-failover
containers:
- image: {{.Values.image.registry }}/{{.Values.image.name}}:{{.Values.image.tag }}
Expand Down
3 changes: 3 additions & 0 deletions charts/linkerd-failover/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ image:
# private registries
imagePullSecrets: []

# -- nodeSelector sections. For information on node selector sections, please refer [ K8s documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector) for more details.
nodeSelector: {}

# -- Determines which `TrafficSplit` instances to consider for failover. If
# empty, defaults to failover.linkerd.io/controlled-by={{ .Release.Name }}
selector:
Expand Down

0 comments on commit 5990704

Please sign in to comment.