mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-14 14:43:46 +00:00
Add dns config (#1698)
* Add dnsconfig * Update templates * Add dns configuration values * readme
This commit is contained in:
parent
0e3f137a69
commit
ad10212ba5
@ -111,6 +111,17 @@ type DockerConfig struct {
|
|||||||
OverrideTag OverrideTagConfig `yaml:"overrideTag" json:"overrideTag"`
|
OverrideTag OverrideTagConfig `yaml:"overrideTag" json:"overrideTag"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DnsConfig struct {
|
||||||
|
Nameservers []string `yaml:"nameservers" json:"nameservers" default:"[]"`
|
||||||
|
Searches []string `yaml:"searches" json:"searches" default:"[]"`
|
||||||
|
Options []DnsConfigOption `yaml:"options" json:"options" default:"[]"`
|
||||||
|
}
|
||||||
|
|
||||||
|
type DnsConfigOption struct {
|
||||||
|
Name string `yaml:"name" json:"name"`
|
||||||
|
Value string `yaml:"value" json:"value"`
|
||||||
|
}
|
||||||
|
|
||||||
type ResourcesConfig struct {
|
type ResourcesConfig struct {
|
||||||
Hub ResourceRequirementsHub `yaml:"hub" json:"hub"`
|
Hub ResourceRequirementsHub `yaml:"hub" json:"hub"`
|
||||||
Sniffer ResourceRequirementsWorker `yaml:"sniffer" json:"sniffer"`
|
Sniffer ResourceRequirementsWorker `yaml:"sniffer" json:"sniffer"`
|
||||||
@ -244,6 +255,7 @@ type TapConfig struct {
|
|||||||
StorageLimit string `yaml:"storageLimit" json:"storageLimit" default:"5000Mi"`
|
StorageLimit string `yaml:"storageLimit" json:"storageLimit" default:"5000Mi"`
|
||||||
StorageClass string `yaml:"storageClass" json:"storageClass" default:"standard"`
|
StorageClass string `yaml:"storageClass" json:"storageClass" default:"standard"`
|
||||||
DryRun bool `yaml:"dryRun" json:"dryRun" default:"false"`
|
DryRun bool `yaml:"dryRun" json:"dryRun" default:"false"`
|
||||||
|
DnsConfig DnsConfig `yaml:"dns" json:"dns"`
|
||||||
Resources ResourcesConfig `yaml:"resources" json:"resources"`
|
Resources ResourcesConfig `yaml:"resources" json:"resources"`
|
||||||
Probes ProbesConfig `yaml:"probes" json:"probes"`
|
Probes ProbesConfig `yaml:"probes" json:"probes"`
|
||||||
ServiceMesh bool `yaml:"serviceMesh" json:"serviceMesh" default:"true"`
|
ServiceMesh bool `yaml:"serviceMesh" json:"serviceMesh" default:"true"`
|
||||||
|
@ -148,6 +148,9 @@ Example for overriding image names:
|
|||||||
| `tap.storageLimit` | Limit of either the `emptyDir` or `persistentVolumeClaim` | `500Mi` |
|
| `tap.storageLimit` | Limit of either the `emptyDir` or `persistentVolumeClaim` | `500Mi` |
|
||||||
| `tap.storageClass` | Storage class of the `PersistentVolumeClaim` | `standard` |
|
| `tap.storageClass` | Storage class of the `PersistentVolumeClaim` | `standard` |
|
||||||
| `tap.dryRun` | Preview of all pods matching the regex, without tapping them | `false` |
|
| `tap.dryRun` | Preview of all pods matching the regex, without tapping them | `false` |
|
||||||
|
| `tap.dnsConfig.nameservers` | Nameservers to use for DNS resolution | `[]` |
|
||||||
|
| `tap.dnsConfig.searches` | Search domains to use for DNS resolution | `[]` |
|
||||||
|
| `tap.dnsConfig.options` | DNS options to use for DNS resolution | `[]` |
|
||||||
| `tap.resources.hub.limits.cpu` | CPU limit for hub | `""` (no limit) |
|
| `tap.resources.hub.limits.cpu` | CPU limit for hub | `""` (no limit) |
|
||||||
| `tap.resources.hub.limits.memory` | Memory limit for hub | `5Gi` |
|
| `tap.resources.hub.limits.memory` | Memory limit for hub | `5Gi` |
|
||||||
| `tap.resources.hub.requests.cpu` | CPU request for hub | `50m` |
|
| `tap.resources.hub.requests.cpu` | CPU request for hub | `50m` |
|
||||||
|
@ -103,6 +103,30 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
{{- toYaml .Values.tap.nodeSelectorTerms.hub | nindent 12 }}
|
{{- toYaml .Values.tap.nodeSelectorTerms.hub | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if or .Values.tap.dns.nameservers .Values.tap.dns.searches .Values.tap.dns.options }}
|
||||||
|
dnsConfig:
|
||||||
|
{{- if .Values.tap.dns.nameservers }}
|
||||||
|
nameservers:
|
||||||
|
{{- range .Values.tap.dns.nameservers }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tap.dns.searches }}
|
||||||
|
searches:
|
||||||
|
{{- range .Values.tap.dns.searches }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tap.dns.options }}
|
||||||
|
options:
|
||||||
|
{{- range .Values.tap.dns.options }}
|
||||||
|
- name: {{ .name | quote }}
|
||||||
|
{{- if .value }}
|
||||||
|
value: {{ .value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: saml-x509-volume
|
- name: saml-x509-volume
|
||||||
|
@ -114,6 +114,30 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
{{- toYaml .Values.tap.nodeSelectorTerms.front | nindent 12 }}
|
{{- toYaml .Values.tap.nodeSelectorTerms.front | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if or .Values.tap.dns.nameservers .Values.tap.dns.searches .Values.tap.dns.options }}
|
||||||
|
dnsConfig:
|
||||||
|
{{- if .Values.tap.dns.nameservers }}
|
||||||
|
nameservers:
|
||||||
|
{{- range .Values.tap.dns.nameservers }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tap.dns.searches }}
|
||||||
|
searches:
|
||||||
|
{{- range .Values.tap.dns.searches }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tap.dns.options }}
|
||||||
|
options:
|
||||||
|
{{- range .Values.tap.dns.options }}
|
||||||
|
- name: {{ .name | quote }}
|
||||||
|
{{- if .value }}
|
||||||
|
value: {{ .value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-config
|
- name: nginx-config
|
||||||
|
@ -292,6 +292,30 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
nodeSelectorTerms:
|
nodeSelectorTerms:
|
||||||
{{- toYaml .Values.tap.nodeSelectorTerms.workers | nindent 12 }}
|
{{- toYaml .Values.tap.nodeSelectorTerms.workers | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if or .Values.tap.dns.nameservers .Values.tap.dns.searches .Values.tap.dns.options }}
|
||||||
|
dnsConfig:
|
||||||
|
{{- if .Values.tap.dns.nameservers }}
|
||||||
|
nameservers:
|
||||||
|
{{- range .Values.tap.dns.nameservers }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tap.dns.searches }}
|
||||||
|
searches:
|
||||||
|
{{- range .Values.tap.dns.searches }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tap.dns.options }}
|
||||||
|
options:
|
||||||
|
{{- range .Values.tap.dns.options }}
|
||||||
|
- name: {{ .name | quote }}
|
||||||
|
{{- if .value }}
|
||||||
|
value: {{ .value | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
|
@ -37,6 +37,12 @@ tap:
|
|||||||
storageLimit: 5000Mi
|
storageLimit: 5000Mi
|
||||||
storageClass: standard
|
storageClass: standard
|
||||||
dryRun: false
|
dryRun: false
|
||||||
|
dns:
|
||||||
|
nameservers: []
|
||||||
|
searches: []
|
||||||
|
options:
|
||||||
|
- name: ndots
|
||||||
|
value: "2"
|
||||||
resources:
|
resources:
|
||||||
hub:
|
hub:
|
||||||
limits:
|
limits:
|
||||||
@ -159,6 +165,7 @@ tap:
|
|||||||
- ws
|
- ws
|
||||||
- ldap
|
- ldap
|
||||||
- radius
|
- radius
|
||||||
|
- diameter
|
||||||
customMacros:
|
customMacros:
|
||||||
https: tls and (http or http2)
|
https: tls and (http or http2)
|
||||||
metrics:
|
metrics:
|
||||||
|
Loading…
Reference in New Issue
Block a user