1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-17 05:48:21 +00:00

helm: make master port configurable

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
This commit is contained in:
AhmedGrati 2023-01-26 15:37:33 +01:00
parent 1aa76029ac
commit 07d5ffe4b8
4 changed files with 8 additions and 4 deletions

View file

@ -39,7 +39,7 @@ spec:
exec: exec:
command: command:
- "/usr/bin/grpc_health_probe" - "/usr/bin/grpc_health_probe"
- "-addr=:8080" - "-addr=:{{ .Values.master.port | default "8080" }}"
{{- if .Values.tls.enable }} {{- if .Values.tls.enable }}
- "-tls" - "-tls"
- "-tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt" - "-tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt"
@ -52,7 +52,7 @@ spec:
exec: exec:
command: command:
- "/usr/bin/grpc_health_probe" - "/usr/bin/grpc_health_probe"
- "-addr=:8080" - "-addr=:{{ .Values.master.port | default "8080" }}"
{{- if .Values.tls.enable }} {{- if .Values.tls.enable }}
- "-tls" - "-tls"
- "-tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt" - "-tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt"
@ -63,7 +63,7 @@ spec:
periodSeconds: 10 periodSeconds: 10
failureThreshold: 10 failureThreshold: 10
ports: ports:
- containerPort: 8080 - containerPort: {{ .Values.master.port | default "8080" }}
name: grpc name: grpc
env: env:
- name: NODE_NAME - name: NODE_NAME
@ -78,6 +78,7 @@ spec:
{{- if .Values.master.instance | empty | not }} {{- if .Values.master.instance | empty | not }}
- "-instance={{ .Values.master.instance }}" - "-instance={{ .Values.master.instance }}"
{{- end }} {{- end }}
- "-port={{ .Values.master.port | default "8080" }}"
{{- if .Values.enableNodeFeatureApi }} {{- if .Values.enableNodeFeatureApi }}
- "-enable-nodefeature-api" - "-enable-nodefeature-api"
{{- end }} {{- end }}

View file

@ -9,7 +9,7 @@ metadata:
spec: spec:
type: {{ .Values.master.service.type }} type: {{ .Values.master.service.type }}
ports: ports:
- port: {{ .Values.master.service.port }} - port: {{ .Values.master.service.port | default "8080" }}
targetPort: grpc targetPort: grpc
protocol: TCP protocol: TCP
name: grpc name: grpc

View file

@ -13,6 +13,8 @@ namespaceOverride: ""
enableNodeFeatureApi: false enableNodeFeatureApi: false
master: master:
# The TCP port that nfd-master listens for incoming requests. Default: 8080
port: 8080
instance: instance:
featureApi: featureApi:
extraLabelNs: [] extraLabelNs: []

View file

@ -108,6 +108,7 @@ We have introduced the following Chart parameters.
| Name | Type | Default | description | | Name | Type | Default | description |
|-----------------------------|---------|-----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------| |-----------------------------|---------|-----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|
| `master.*` | dict | | NFD master deployment configuration | | `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.instance` | string | | Instance name. Used to separate annotation namespaces for multiple parallel deployments |
| `master.extraLabelNs` | array | [] | List of allowed extra label namespaces | | `master.extraLabelNs` | array | [] | List of allowed extra label namespaces |
| `master.resourceLabels` | array | [] | List of labels to be registered as extended resources | | `master.resourceLabels` | array | [] | List of labels to be registered as extended resources |