Change hostNetwork to auto (#758)
This commit is contained in:
@@ -118,7 +118,7 @@ A Helm chart to install the SPIRE agent.
|
||||
| `telemetry.datadog.port` | The port of the datadog service to send metrics to | `8125` |
|
||||
| `kubeletConnectByHostname` | (DEPRECATED) Use kubeletAddress.mode instead. If true, connect to kubelet using the nodes hostname. If false, uses localhost. If unset, defaults to true on OpenShift and false otherwise. | `""` |
|
||||
| `kubeletAddress.mode` | How to connect to kubelet for workload attestation | `auto` |
|
||||
| `hostNetwork` | Enable hostNetwork for the DaemonSet. If empty, auto-disables when kubeletAddress.mode is hostname/hostip. Set true/false to override. | `""` |
|
||||
| `hostNetwork` | Enable hostNetwork for the DaemonSet. If auto or empty, auto-disables when kubeletAddress.mode is hostname/hostip. Set true/false to override. | `""` |
|
||||
| `dnsPolicy` | DNS policy for the DaemonSet. If empty, uses ClusterFirstWithHostNet when hostNetwork is enabled. See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy | `""` |
|
||||
| `socketPath` | The unix socket path to the spire-agent | `/run/spire/agent-sockets/spire-agent.sock` |
|
||||
| `socketAlternate.names` | List of alternate names for the socket that workloads might expect to be able to access in the driver mount. | `["socket","spire-agent.sock","api.sock"]` |
|
||||
|
||||
@@ -30,8 +30,9 @@
|
||||
{{- $resolvedMode := include "spire-agent.kubelet-address-mode-resolved" . }}
|
||||
{{- $cbh := or (eq $resolvedMode "hostname") (eq $resolvedMode "hostip") }}
|
||||
{{- $hostNetwork := not $cbh }}
|
||||
{{- if ne (.Values.hostNetwork | toString) "" }}
|
||||
{{- $hostNetwork = eq (.Values.hostNetwork | toString) "true" }}
|
||||
{{- $hostNetworkValue := .Values.hostNetwork | toString }}
|
||||
{{- if and (ne $hostNetworkValue "") (ne $hostNetworkValue "auto") }}
|
||||
{{- $hostNetwork = eq $hostNetworkValue "true" }}
|
||||
{{- end }}
|
||||
{{- $dnsPolicy := .Values.dnsPolicy }}
|
||||
{{- if (and (eq $dnsPolicy "") $hostNetwork) }}
|
||||
|
||||
@@ -294,8 +294,8 @@ kubeletAddress:
|
||||
## provided at runtime or SPIRE agent will fail to start.
|
||||
mode: auto
|
||||
|
||||
## @param hostNetwork [string] Enable hostNetwork for the DaemonSet. If empty, auto-disables when kubeletAddress.mode is hostname/hostip. Set true/false to override.
|
||||
hostNetwork: ""
|
||||
## @param hostNetwork [string] Enable hostNetwork for the DaemonSet. If auto or empty, auto-disables when kubeletAddress.mode is hostname/hostip. Set true/false to override.
|
||||
hostNetwork: auto
|
||||
## @param dnsPolicy [string] DNS policy for the DaemonSet. If empty, uses ClusterFirstWithHostNet when hostNetwork is enabled. See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
|
||||
dnsPolicy: ""
|
||||
## @param socketPath The unix socket path to the spire-agent
|
||||
|
||||
Reference in New Issue
Block a user