Hi,

I'm seeing

dispatcher.go:142] Failed calling webhook, failing open
admission-webhook.yunikorn.validate-conf: failed calling webhook
"admission-webhook.yunikorn.validate-conf": failed to call webhook:
Post 
"https://yunikorn-admission-controller-service.yunikorn.svc:443/validate-conf?timeout=10s":
context deadline exceeded

dispatcher.go:184] failed calling webhook
"admission-webhook.yunikorn.mutate-pods": failed to call webhook: Post
"https://yunikorn-admission-controller-service.yunikorn.svc:443/mutate?timeout=10s":
service "yunikorn-admission-controller-service" not foundE0316
01:11:35.199066 10 dispatcher.go:184] failed calling webhook
"admission-webhook.yunikorn.mutate-pods": failed to call webhook: Post
"https://yunikorn-admission-controller-service.yunikorn.svc:443/mutate?timeout=10s":
service "yunikorn-admission-controller-service" not found

when I checked the admission controller host, I saw:

~ $ lsof
1 /opt/yunikorn/bin/scheduler-admission-controller 0 /dev/null
1 /opt/yunikorn/bin/scheduler-admission-controller 1 pipe:[139398380]
1 /opt/yunikorn/bin/scheduler-admission-controller 2 pipe:[139398381]
1 /opt/yunikorn/bin/scheduler-admission-controller 3 anon_inode:[eventpoll]
1 /opt/yunikorn/bin/scheduler-admission-controller 4 pipe:[139298745]
1 /opt/yunikorn/bin/scheduler-admission-controller 5 pipe:[139298745]
1 /opt/yunikorn/bin/scheduler-admission-controller 6 socket:[139358013]
1 /opt/yunikorn/bin/scheduler-admission-controller 7 socket:[139358014]
1 /opt/yunikorn/bin/scheduler-admission-controller 8 socket:[139365004]
37 /bin/busybox 0 /dev/pts/0
37 /bin/busybox 1 /dev/pts/0
37 /bin/busybox 2 /dev/pts/0
37 /bin/busybox 10 /dev/tty

Supposedly I should see port 443 but it's not there.

Opening /etc/services shows:

https 443/tcp # http protocol over TLS/SSL
https 443/udp # HTTP/3

And I saw the following

helm-charts/yunikorn/templates/admission-controller-service.yaml

{{ if .Values.embedAdmissionController }}
apiVersion: v1
kind: Service
metadata:
  name: yunikorn-admission-controller-service
  labels:
    app: yunikorn-admission-controller-service
    chart: {{ include "yunikorn.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  type: {{ .Values.admissionController.service.type }}
  ports:
    - port: 443
      targetPort: webhook-api
  selector:
    app: yunikorn
    component: yunikorn-admission-controller
    release: {{ .Release.Name }}
{{ end }}

Wonder if I missed some configs to set, would you please take a look and
help?

I'm using yunikorn-1.2.0.

Thanks.

--Yongjun

Reply via email to