Skip to content

Commit

Permalink
Merge pull request #1135 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1044-to-release-0.12

[release-0.12] helm: make master port configurable
  • Loading branch information
k8s-ci-robot authored Apr 14, 2023
2 parents 221359a + 4a29e93 commit 83484b2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
7 changes: 4 additions & 3 deletions deployment/helm/node-feature-discovery/templates/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
exec:
command:
- "/usr/bin/grpc_health_probe"
- "-addr=:8080"
- "-addr=:{{ .Values.master.port | default "8080" }}"
{{- if .Values.tls.enable }}
- "-tls"
- "-tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt"
Expand All @@ -52,7 +52,7 @@ spec:
exec:
command:
- "/usr/bin/grpc_health_probe"
- "-addr=:8080"
- "-addr=:{{ .Values.master.port | default "8080" }}"
{{- if .Values.tls.enable }}
- "-tls"
- "-tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt"
Expand All @@ -63,7 +63,7 @@ spec:
periodSeconds: 10
failureThreshold: 10
ports:
- containerPort: 8080
- containerPort: {{ .Values.master.port | default "8080" }}
name: grpc
env:
- name: NODE_NAME
Expand All @@ -78,6 +78,7 @@ spec:
{{- if .Values.master.instance | empty | not }}
- "--instance={{ .Values.master.instance }}"
{{- end }}
- "-port={{ .Values.master.port | default "8080" }}"
{{- if .Values.enableNodeFeatureApi }}
- "-enable-nodefeature-api"
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
spec:
type: {{ .Values.master.service.type }}
ports:
- port: {{ .Values.master.service.port }}
- port: {{ .Values.master.service.port | default "8080" }}
targetPort: grpc
protocol: TCP
name: grpc
Expand Down
2 changes: 2 additions & 0 deletions deployment/helm/node-feature-discovery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ namespaceOverride: ""
enableNodeFeatureApi: false

master:
# The TCP port that nfd-master listens for incoming requests. Default: 8080
port: 8080
instance:
featureApi:
extraLabelNs: []
Expand Down
1 change: 1 addition & 0 deletions docs/deployment/helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ We have introduced the following Chart parameters.
| Name | Type | Default | description |
|-----------------------------|---------|-----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| `master.*` | dict | | NFD master deployment configuration |
| `master.port` | integer | | Specifies the TCP port that nfd-master listens for incoming requests. |
| `master.instance` | string | | Instance name. Used to separate annotation namespaces for multiple parallel deployments |
| `master.extraLabelNs` | array | [] | List of allowed extra label namespaces |
| `master.resourceLabels` | array | [] | List of labels to be registered as extended resources |
Expand Down

0 comments on commit 83484b2

Please sign in to comment.