Skip to content

Commit 3b88c53

Browse files
committed
fix: webhook service configuration
1 parent cb3561b commit 3b88c53

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

charts/tensor-fusion/templates/admission-webhooks/mutating-webhook.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ webhooks:
77
- v1
88
clientConfig:
99
service:
10-
name: webhook-service
11-
namespace: system
10+
name: {{ include "tensor-fusion.fullname" . }}-webhook
11+
namespace: {{ include "tensor-fusion.namespace" . }}
1212
path: /mutate-v1-pod
1313
failurePolicy: Fail
1414
name: mpod-v1.kb.io

charts/tensor-fusion/templates/controller-deployment.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ spec:
4141
- name: cert
4242
readOnly: true
4343
mountPath: /tmp/k8s-webhook-server/serving-certs
44+
items:
45+
- key: tls.crt
46+
path: cert
47+
- key: tls.key
48+
path: key
4449
- name: config
4550
mountPath: /etc/tensor-fusion
4651
volumes:

charts/tensor-fusion/templates/hypervisor-daemonset.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ spec:
2828
emptyDir: {}
2929
containers:
3030
- name: tensor-fusion-hypervisor
31-
image: tensorfusion/tensor-fusion-hypervisor:1.8.1_amd64
31+
image: "{{ .Values.hypervisor.image.repository }}:{{ .Values.hypervisor.image.tag }}"
3232
command:
3333
- /home/app/tensor-fusion-hypervisor
34-
- '--sock-path'
34+
- --sock-path
3535
- /tensor-fusion/worker/sock/
36-
- '--gpu-metrics-file'
36+
- --gpu-metrics-file
3737
- /logs/metrics.log
38+
- --scheduler
39+
- random1
3840
env:
3941
- name: NVIDIA_VISIBLE_DEVICES
4042
value: all

charts/tensor-fusion/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ serviceAccount:
2121

2222
hypervisor:
2323
greptimedbEendpoint: greptimedb-standalone.greptimedb.svc.cluster.local:4001
24+
image:
25+
repository: tensorfusion/tensor-fusion-hypervisor
26+
# Overrides the image tag whose default is the chart appVersion.
27+
tag: "1.9.0_amd64"
2428
affinity:
2529
nodeAffinity:
2630
requiredDuringSchedulingIgnoredDuringExecution:

cmd/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,7 @@ func main() {
104104
}
105105

106106
webhookServer := webhook.NewServer(webhook.Options{
107-
CertName: "cert",
108-
KeyName: "key",
109-
ClientCAName: "ca",
110-
TLSOpts: tlsOpts,
107+
TLSOpts: tlsOpts,
111108
})
112109

113110
// Metrics endpoint is enabled in 'config/default/kustomization.yaml'. The Metrics options configure the server.

0 commit comments

Comments
 (0)