Closed jondkelley closed 3 years ago
I0817 20:59:46.300659 1 request.go:668] Waited for 1.0455664s due to client-side throttling, not priority and fairness, request: GET:https://10.233.0.1:443/apis/discovery.k8s.io/v1beta1?timeout=32s
{"level":"info","ts":1629233987.2252128,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":9388"}
{"level":"info","ts":1629233987.2283497,"logger":"setup","msg":"starting manager"}
{"level":"info","ts":1629233987.232593,"logger":"controller-runtime.manager.controller.addressblock","msg":"Starting EventSource","reconciler group":"coil.cybozu.com","reconciler kind":"AddressBlock","source":"kind source: /, Kind="}
{"level":"info","ts":1629233987.2332098,"logger":"controller-runtime.manager.controller.addressblock","msg":"Starting Controller","reconciler group":"coil.cybozu.com","reconciler kind":"AddressBlock"}
{"level":"info","ts":1629233987.2358675,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
{"level":"info","ts":1629233989.3575451,"logger":"controller-runtime.manager.controller.addressblock","msg":"Starting workers","reconciler group":"coil.cybozu.com","reconciler kind":"AddressBlock","worker count":1}
I0817 20:59:46.280108 1 request.go:668] Waited for 1.044655991s due to client-side throttling, not priority and fairness, request: GET:https://10.233.0.1:443/apis/extensions/v1beta1?timeout=32s
{"level":"info","ts":1629233987.2199273,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":9386"}
{"level":"info","ts":1629233987.2632246,"logger":"controller-runtime.builder","msg":"skip registering a mutating webhook, admission.Defaulter interface is not implemented","GVK":"coil.cybozu.com/v2, Kind=AddressPool"}
{"level":"info","ts":1629233987.2635157,"logger":"controller-runtime.builder","msg":"Registering a validating webhook","GVK":"coil.cybozu.com/v2, Kind=AddressPool","path":"/validate-coil-cybozu-com-v2-addresspool"}
{"level":"info","ts":1629233987.2641158,"logger":"controller-runtime.webhook","msg":"registering webhook","path":"/validate-coil-cybozu-com-v2-addresspool"}
{"level":"info","ts":1629233987.2646642,"logger":"controller-runtime.builder","msg":"Registering a mutating webhook","GVK":"coil.cybozu.com/v2, Kind=Egress","path":"/mutate-coil-cybozu-com-v2-egress"}
{"level":"info","ts":1629233987.265002,"logger":"controller-runtime.webhook","msg":"registering webhook","path":"/mutate-coil-cybozu-com-v2-egress"}
{"level":"info","ts":1629233987.2653246,"logger":"controller-runtime.builder","msg":"Registering a validating webhook","GVK":"coil.cybozu.com/v2, Kind=Egress","path":"/validate-coil-cybozu-com-v2-egress"}
{"level":"info","ts":1629233987.2657044,"logger":"controller-runtime.webhook","msg":"registering webhook","path":"/validate-coil-cybozu-com-v2-egress"}
{"level":"info","ts":1629233987.266029,"logger":"setup","msg":"starting manager"}
{"level":"info","ts":1629233987.267568,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}
I0817 20:59:47.267754 1 leaderelection.go:243] attempting to acquire leader lease kube-system/coil-leader...
{"level":"info","ts":1629233987.2693503,"logger":"controller-runtime.webhook.webhooks","msg":"starting webhook server"}
{"level":"info","ts":1629233987.271229,"logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"}
{"level":"info","ts":1629233987.2719083,"logger":"controller-runtime.webhook","msg":"serving webhook server","host":"","port":9443}
{"level":"info","ts":1629233987.2722394,"logger":"controller-runtime.certwatcher","msg":"Starting certificate watcher"}
root@node1:/home/k8s# kubectl logs coil-controller-5f84d47464-thdpn -n kube-system
I0817 20:59:46.292722 1 request.go:668] Waited for 1.042046902s due to client-side throttling, not priority and fairness, request: GET:https://10.233.0.1:443/apis/node.k8s.io/v1beta1?timeout=32s
{"level":"info","ts":1629233987.222262,"logger":"controller-runtime.metrics","msg":"metrics server is starting to listen","addr":":9386"}
{"level":"info","ts":1629233987.2576647,"logger":"controller-runtime.builder","msg":"skip registering a mutating webhook, admission.Defaulter interface is not implemented","GVK":"coil.cybozu.com/v2, Kind=AddressPool"}
{"level":"info","ts":1629233987.2579515,"logger":"controller-runtime.builder","msg":"Registering a validating webhook","GVK":"coil.cybozu.com/v2, Kind=AddressPool","path":"/validate-coil-cybozu-com-v2-addresspool"}
{"level":"info","ts":1629233987.2587316,"logger":"controller-runtime.webhook","msg":"registering webhook","path":"/validate-coil-cybozu-com-v2-addresspool"}
{"level":"info","ts":1629233987.259258,"logger":"controller-runtime.builder","msg":"Registering a mutating webhook","GVK":"coil.cybozu.com/v2, Kind=Egress","path":"/mutate-coil-cybozu-com-v2-egress"}
{"level":"info","ts":1629233987.2594967,"logger":"controller-runtime.webhook","msg":"registering webhook","path":"/mutate-coil-cybozu-com-v2-egress"}
{"level":"info","ts":1629233987.259736,"logger":"controller-runtime.builder","msg":"Registering a validating webhook","GVK":"coil.cybozu.com/v2, Kind=Egress","path":"/validate-coil-cybozu-com-v2-egress"}
the server could not find the requested resource
This seems that AddressPool CRD is not applied yet.
my coil.yaml
It is just a plain copy of v2/kustomization.yaml
.
Would you check your kustomize
version?
We are using version 4.1.3.
My apologies, here's the kustomize rendered coil.yaml, I only provided my config for kustomize.
https://gist.github.com/jondkelley/635cf4815e0ef134abb6359ad0670ae6
The CRD for addresspools.coil.cybozu.com
is in the cluster currently, but still has the strange webhook CRD error.
$ sudo kubectl get crd | grep cybozu
addressblocks.coil.cybozu.com 2021-08-17T20:59:40Z
addresspools.coil.cybozu.com 2021-08-17T20:59:40Z
blockrequests.coil.cybozu.com 2021-08-17T20:59:40Z
egresses.coil.cybozu.com 2021-08-17T20:59:40Z
I'm on kustomize/v4.2.0 as well on my side.
There are some anomalies in the rendered coil.yaml
like this: https://gist.github.com/jondkelley/635cf4815e0ef134abb6359ad0670ae6#file-coil-yaml-L367-L371
Could you check the MutatingWebhookConfiguration and Service?
$ kubectl -n kube-system get svc coilv2-webhook-service -o wide
$ kubectl -n kube-system get svc coilv2-webhook-service -o yaml
$ kubectl get mutatingwebhookconfigurations coilv2-mutating-webhook-configuration -o yaml
Thanks for looking, let me know if I can provide additional detail around the current state.
kubectl -n kube-system get svc coilv2-webhook-service -o wide
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
coilv2-webhook-service ClusterIP 10.233.52.121 <none> 443/TCP 8h app.kubernetes.io/component=coil-controller,app.kubernetes.io/name=coil
kubectl -n kube-system get svc coilv2-webhook-service -o yaml
apiVersion: v1
kind: Service
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"app.kubernetes.io/name":"coil"},"name":"coilv2-webhook-service","namespace":"kube-system"},"spec":{"ports":[{"port":443,"protocol":"TCP","targetPort":9443}],"selector":{"app.kubernetes.io/component":"coil-controller","app.kubernetes.io/name":"coil"}}}
creationTimestamp: "2021-08-17T20:59:41Z"
labels:
app.kubernetes.io/name: coil
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:labels:
.: {}
f:app.kubernetes.io/name: {}
f:spec:
f:ports:
.: {}
k:{"port":443,"protocol":"TCP"}:
.: {}
f:port: {}
f:protocol: {}
f:targetPort: {}
f:selector:
.: {}
f:app.kubernetes.io/component: {}
f:app.kubernetes.io/name: {}
f:sessionAffinity: {}
f:type: {}
manager: kubectl-client-side-apply
operation: Update
time: "2021-08-17T20:59:41Z"
name: coilv2-webhook-service
namespace: kube-system
resourceVersion: "61620"
uid: b6afdf9c-778d-4fa4-a26f-8ad135478ede
spec:
clusterIP: 10.233.52.121
clusterIPs:
- 10.233.52.121
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
app.kubernetes.io/component: coil-controller
app.kubernetes.io/name: coil
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
kubectl get mutatingwebhookconfigurations coilv2-mutating-webhook-configuration -o yaml
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"admissionregistration.k8s.io/v1","kind":"MutatingWebhookConfiguration","metadata":{"annotations":{},"labels":{"app.kubernetes.io/name":"coil"},"name":"coilv2-mutating-webhook-configuration"},"webhooks":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1hVcW5tSUpKVXJnWXExcFphV1BGWERaOVN2VGo1VEZ3R1FrTUY5CjBCTmVQNjlhTXpXbmFEdHM2aUt6RWpyWlVtcVhCTmZwTGJaQjJORS9HWlB1Q3NBVk52clZKZE5ZcXZzYWt6a04Kei9NT3ozTVFYbWM0ZDRiSEg1Z0hTZXY2bjJwSTlDWUd1bjRBUnJ1WDFrV1lNSzAxRE9wYU9xVjZ5b0VKUGF1UgpITGFYaTRBYXpZL1BSMFJ2N3l4cjBvejVvU1N1L24rVDJydlJEL1NpQXZDdmhCZDhmTmhVRFBRRWJ5eXZMRVRDCk1nMGZZS2I5a0lRSkNHR0Qwb0pDV2h4QUwvYml4T1RvM1dPY0tQd0FtcVJMU2Rnek5aTXdpdHZjSzYySitZSHUKc3Q5VkVYcDQ1S3I2MlZjc1NMRG4wZUg2aU5hTEd3dU5zb25WM1VjVEFOVVlwZnB2cnRvY1ptVT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","service":{"name":"coilv2-webhook-service","namespace":"kube-system","path":"/mutate-coil-cybozu-com-v2-addresspool"}},"failurePolicy":"Fail","name":"maddresspool.kb.io","rules":[{"apiGroups":["coil.cybozu.com"],"apiVersions":["v2"],"operations":["CREATE"],"resources":["addresspools"]}],"sideEffects":"None"},{"admissionReviewVersions":["v1","v1beta1"],"clientConfig":{"caBundle":"LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZaVENDQTAyZ0F3SUJBZ0lCQVRBTkJna3Foa2lHOXcwQkFRc0ZBREFoTVI4d0hRWURWUVFERXhaamIybHMKZGpJdGQyVmlhRzl2YXkxelpYSjJhV05sTUNBWERUSXhNRGd4TmpFNU1qVXpNRm9ZRHpJeE1qRXdOekl6TVRreQpOVE13V2pBaE1SOHdIUVlEVlFRREV4WmpiMmxzZGpJdGQyVmlhRzl2YXkxelpYSjJhV05sTUlJQ0lqQU5CZ2txCmhraUc5dzBCQVFFRkFBT0NBZzhBTUlJQ0NnS0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0FtcVJMU2Rnek5aTXdpdHZjSzYySitZSHUKc3Q5VkVYcDQ1S3I2MlZjc1NMRG4wZUg2aU5hTEd3dU5zb25WM1VjVEFOVVlwZnB2cnRvY1ptVT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=","service":{"name":"coilv2-webhook-service","namespace":"kube-system","path":"/mutate-coil-cybozu-com-v2-egress"}},"failurePolicy":"Fail","name":"megress.kb.io","rules":[{"apiGroups":["coil.cybozu.com"],"apiVersions":["v2"],"operations":["CREATE"],"resources":["egresses"]}],"sideEffects":"None"}]}
creationTimestamp: "2021-08-17T20:59:42Z"
generation: 1
labels:
app.kubernetes.io/name: coil
managedFields:
- apiVersion: admissionregistration.k8s.io/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:labels:
.: {}
f:app.kubernetes.io/name: {}
f:webhooks:
.: {}
k:{"name":"maddresspool.kb.io"}:
.: {}
f:admissionReviewVersions: {}
f:clientConfig:
.: {}
f:caBundle: {}
f:service:
.: {}
f:name: {}
f:namespace: {}
f:path: {}
f:port: {}
f:failurePolicy: {}
f:matchPolicy: {}
f:name: {}
f:namespaceSelector: {}
f:objectSelector: {}
f:reinvocationPolicy: {}
f:rules: {}
f:sideEffects: {}
f:timeoutSeconds: {}
k:{"name":"megress.kb.io"}:
.: {}
f:admissionReviewVersions: {}
f:clientConfig:
.: {}
f:caBundle: {}
f:service:
.: {}
f:name: {}
f:namespace: {}
f:path: {}
f:port: {}
f:failurePolicy: {}
f:matchPolicy: {}
f:name: {}
f:namespaceSelector: {}
f:objectSelector: {}
f:reinvocationPolicy: {}
f:rules: {}
f:sideEffects: {}
f:timeoutSeconds: {}
manager: kubectl-client-side-apply
operation: Update
time: "2021-08-17T20:59:42Z"
name: coilv2-mutating-webhook-configuration
resourceVersion: "61643"
uid: 2419f26c-0890-4ea4-9416-5ba0ec0643db
webhooks:
- admissionReviewVersions:
- v1
- v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1BGWERaOVN2VGo1VEZ3R1FrTUY5CjBCTmVQNjlhTXpXbmFEdHM2aUt6RWpyWlVtcVhCTmZwTGJaQjJORS9HWlB1Q3NBVk52clZKZE5ZcXZzYWt6a04Kei9NT3ozTVFYbWM0ZDRiSEg1Z0hTZXY2bjJwSTlDWUd1bjRBUnJ1WDFrV1lNSzAxRE9wYU9xVjZ5b0VKUGF1UgpITGFYaTRBYXpZL1BSMFJ2N3l4cjBvejVvU1N1L24rVDJydlJEL1NpQXZDdmhCZDhmTmhVRFBRRWJ5eXZMRVRDCk1nMGZZS2I5a0lRSkNHR0Qwb0pDV2h4QUwvYml4T1RvM1dPY0tQd0FtcVJMU2Rnek5aTXdpdHZjSzYySitZSHUKc3Q5VkVYcDQ1S3I2MlZjc1NMRG4wZUg2aU5hTEd3dU5zb25WM1VjVEFOVVlwZnB2cnRvY1ptVT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
service:
name: coilv2-webhook-service
namespace: kube-system
path: /mutate-coil-cybozu-com-v2-addresspool
port: 443
failurePolicy: Fail
matchPolicy: Equivalent
name: maddresspool.kb.io
namespaceSelector: {}
objectSelector: {}
reinvocationPolicy: Never
rules:
- apiGroups:
- coil.cybozu.com
apiVersions:
- v2
operations:
- CREATE
resources:
- addresspools
scope: '*'
sideEffects: None
timeoutSeconds: 10
- admissionReviewVersions:
- v1
- v1beta1
clientConfig:
caBundle: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZaVENDQTAyZ0F3SUJBZ0lCQVRBTkJna3Foa2lHOXcwQkFRc0ZBREFoTVI4d0hRWURWUVFERXhaamIybHMKZGpJdGQyVmlhRzl2YXkxelpYSjJhV05sTUNBWERUSXhNRGd4TmpFNU1qVXpNRm9ZRHpJeE1qRXdOekl6TVRreQpOVE13V2pBaE1SOHdIUVlEVlFRREV4WmpiMmxzZGpJdGQyVmlhRzl2YXkxelpYSjJhV05sTUlJQ0lqQU5CZ2txCmhraUc5dzBC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0pDV2h4QUwvYml4T1RvM1dPY0tQd0FtcVJMU2Rnek5aTXdpdHZjSzYySitZSHUKc3Q5VkVYcDQ1S3I2MlZjc1NMRG4wZUg2aU5hTEd3dU5zb25WM1VjVEFOVVlwZnB2cnRvY1ptVT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
service:
name: coilv2-webhook-service
namespace: kube-system
path: /mutate-coil-cybozu-com-v2-egress
port: 443
failurePolicy: Fail
matchPolicy: Equivalent
name: megress.kb.io
namespaceSelector: {}
objectSelector: {}
reinvocationPolicy: Never
rules:
- apiGroups:
- coil.cybozu.com
apiVersions:
- v2
operations:
- CREATE
resources:
- egresses
scope: '*'
sideEffects: None
timeoutSeconds: 10
It looks perfectly normal. I have no ideas.
I could be on the wrong path, but I might have more info.
I ran
kubectl port-forward coil-controller-5f84d47464-4gk9l 9443:9443 -n kube-system
and tried to test the endpoint https://github.com/cybozu-go/coil/blob/a68ea5cae2f0748a553ef545a9e5e3324d117374/v2/config/webhook/manifests.v1.yaml#L16
Doesn't seem to have a resource for address pool (see below), so this maybe why I get failed calling webhook "maddresspool.kb.io": the server could not find the requested resource
curl https://localhost:9443/mutate-coil-cybozu-com-v2-addresspool -k
Handling connection for 9443
404 page not found
Otherwise, things like the egress CRD webhook works but I presume it's because the webhook endpoint works in the coil-controller
curl https://localhost:9443/mutate-coil-cybozu-com-v2-egress -k
Handling connection for 9443
{"response":{"uid":"","allowed":false,"status":{"metadata":{},"message":"contentType=, expected application/json","code":400}}}
@jondkelley
Hi.
The mutating webhook of AddressPool is a recently implemented feature. It is not included in the released version of Coil.
The container image you are using is 2.0.9 of ghcr.io/cybozu-go/coil. To use this image, please checkout v2.0.9 tag of the Coil repository and run kustomize build . > coil.yaml
on that tag.
@morimoto-cybozu Thanks. Would you please consider releasing a new version including this?
Install worked on tag 2.0.9, thanks for checking!
Describe the bug
When applying an example addresspool pool, it just shows the webhook is a 404
kubectl apply -f addresspool.yaml
Error from server (InternalError): error when creating "0101_addresspool.yaml": Internal error occurred: failed calling webhook "maddresspool.kb.io": the server could not find the requested resource
Environments
To Reproduce Steps to reproduce the behavior:
Expected behavior A new
addresspool
resource should be created so I can use theaddressblock
resource (I think) within myegress
resource so the pod can run with an external address from the pool. (Otherwise my egress SNAT pod gets a CNI error about "network: failed to allocate address")Additional context my coil.yaml