mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-07 11:35:36 +00:00
Add priority class into templates
This commit is contained in:
parent
bedecdb080
commit
660fa1c3c1
@ -328,6 +328,7 @@ type TapConfig struct {
|
|||||||
Tolerations TolerationsConfig `yaml:"tolerations" json:"tolerations" default:"{}"`
|
Tolerations TolerationsConfig `yaml:"tolerations" json:"tolerations" default:"{}"`
|
||||||
Auth AuthConfig `yaml:"auth" json:"auth"`
|
Auth AuthConfig `yaml:"auth" json:"auth"`
|
||||||
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
||||||
|
PriorityClass string `yaml:"priorityClass" json:"priorityClass" default:""`
|
||||||
Routing RoutingConfig `yaml:"routing" json:"routing"`
|
Routing RoutingConfig `yaml:"routing" json:"routing"`
|
||||||
IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"`
|
IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"`
|
||||||
Debug bool `yaml:"debug" json:"debug" default:"false"`
|
Debug bool `yaml:"debug" json:"debug" default:"false"`
|
||||||
|
@ -25,6 +25,9 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
||||||
|
{{- if .Values.tap.priorityClass }}
|
||||||
|
priorityClassName: {{ .Values.tap.priorityClass | quote }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: hub
|
- name: hub
|
||||||
command:
|
command:
|
||||||
|
@ -175,3 +175,6 @@ spec:
|
|||||||
name: kubeshark-nginx-config-map
|
name: kubeshark-nginx-config-map
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
||||||
|
{{- if .Values.tap.priorityClass }}
|
||||||
|
priorityClassName: {{ .Values.tap.priorityClass | quote }}
|
||||||
|
{{- end }}
|
||||||
|
@ -331,6 +331,9 @@ spec:
|
|||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
hostNetwork: true
|
hostNetwork: true
|
||||||
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
||||||
|
{{- if .Values.tap.priorityClass }}
|
||||||
|
priorityClassName: {{ .Values.tap.priorityClass | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.tap.tolerations.workers }}
|
{{- if .Values.tap.tolerations.workers }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- range .Values.tap.tolerations.workers }}
|
{{- range .Values.tap.tolerations.workers }}
|
||||||
|
@ -10,6 +10,9 @@ spec:
|
|||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
||||||
|
{{- if .Values.tap.priorityClass }}
|
||||||
|
priorityClassName: {{ .Values.tap.priorityClass | quote }}
|
||||||
|
{{- end }}
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
containers:
|
containers:
|
||||||
- name: cleanup
|
- name: cleanup
|
||||||
|
@ -106,5 +106,7 @@ spec:
|
|||||||
secretName: kubeshark-dex-conf-secret
|
secretName: kubeshark-dex-conf-secret
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
dnsPolicy: ClusterFirstWithHostNet
|
||||||
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
serviceAccountName: {{ include "kubeshark.serviceAccountName" . }}
|
||||||
|
{{- if .Values.tap.priorityClass }}
|
||||||
|
priorityClassName: {{ .Values.tap.priorityClass | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -139,6 +139,7 @@ tap:
|
|||||||
host: ks.svc.cluster.local
|
host: ks.svc.cluster.local
|
||||||
tls: []
|
tls: []
|
||||||
annotations: {}
|
annotations: {}
|
||||||
|
priorityClass: ""
|
||||||
routing:
|
routing:
|
||||||
front:
|
front:
|
||||||
basePath: ""
|
basePath: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user